LEC_10_Week_10_Server_Configuration_in_Linux.pdf

MahtabAhmedQureshi 15 views 76 slides May 02, 2024
Slide 1
Slide 1 of 76
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76

About This Presentation

server config in linux


Slide Content

System and Network
AdministrationLinuxbased
ITEC3116
ServerConfigurationinLinux
Lecture10

RecapofthepreviousLecture
❑WhatisPipe
❑Commands withPipe
❑HowtousefilterinLinux
❑TheconceptofGrepCommand

AgendaforToday’sClass
❑ServerConfigurationinLinux
❑Requirements
❑Models

NetworkModel
representsthe□Anetworkmodel
architectureofcomputernetwork.
Themostpopularnetworkmodelsare
describedbelow:
❑Client-ServerModel
❑Peer-to-PeerModel
❑HybridModel

1-Client-ServerModel
❑WhatisaClient?
❑WhatisaServer?

□Client
Aclientisapieceofhardwareor
softwareusedtocommunicatewithadata
providerbysendingarequest.
□Server
Aserverisapieceofhardwareor
softwarethatmustbecapableofproviding
responsetoaspecifiedrequestorquery.
Client-ServerModel…

□Anetworkarchitectureinwhichmanyclients
requestandreceiveservicesfromaserveris
calledClient-Servermodel.
■Usersendsrequesttotheserver
■Serverreceivestherequestfromclientcomputer
andtakes properaction onit.
■Theresultoftherequest(responsefromserver)
issentto theclient.
□TheWorldWideWeb(WWW) usesthis
client/servermodeltoallowmillionsofusers
toaccessWebsitesallovertheworld.
Client-ServerModel….

2-Peer-to-PeerModel
□Anetworkarchitectureinwhichall
computersonthenetworkhaveequal
statusiscalledPeer-to-Peermodel.
□Inpeer-to-peernetwork,thereisno
centralcomputertocontrolother
computersonthenetwork.
□Eachcomputercan
anddevice(orresources)
sharethedata
ofother
computersinthenetwork.

3-HybridNetworkModel
□Thehybrid
combined
networkmodelhas
features of both
Client-Server and peer-2-peer
networkmodels.
■Italsohasoneormoreservers.
■Theuserscanalsosharedataand
resources.
■Eachnodecanstoreitsowndatafiles
andprograms.

ServerandWeb-Server
Is there any difference between
ServerandWeb-Server?????

Web-Server
□AWebserverisaspecifictypeof
server thatknows how to
communicatewithclientsusingthe
HyperTextTransferProtocol(HTTP).
□Aprotocolisjustastandardsetof
rulesthatallowaclientandserverto
communicate.
□Foraclientandserverto
thecommunicate,theymustspeak
sameprotocol.

NetworkConnectionsandPorts
□Toconnecttoaserver,theclientmust
beabletocommunicatewithitover
thenetwork.
□ComputersconnectedtotheInternet
typicallycommunicateusingTCP/IP.
typesof
atalow
□TCP/IPallowsdifferent
computerstocommunicate
level;itisuptoapplications.

PortNumber
□Eachservicehasauniquenumber
assignedtoitknownasaportnumber.
□Differentprotocolsworksatdifferentport
number
□Followingisalistofsomewell-known
protocolsandtheirportnumbers:
■FTP
■Telnet
20,21
23
■SMTP(e-mail)25
■HTTP 80

LinuxServerTypes
□LinuxInternetServers(web,databases,ftp,DNS)
□LinuxVirtualization(VMware,usermodeLinux)
□LinuxRemoteAccess(openVPN,SSh)
□Linux Security (SSL/TLS encryption, network
monitoring)
□Linux Internal Network Servers (file
server-samba,DHCP,Routing)
□LinuxDistributions(CentOS,Fedora)

LinuxWeb-Server
□WeknowthatLinuxOperatingSystem
isanOpenSourceoperatingsystem.
□WeuseApacheasaweb-serverfor
Linux.
□Nginx(pronounced"engineX")isthe
secondmostpopularopensourceweb
server.
□Lighttpd(pronounced"lighty")isthe
thirdmostpopularopensourceweb
server.

ApacheWebServer
□Releasedin1995,mostpopularwebserver
acrosstheentireWorldWideWeb.
□Currentlyusedaround60%ofwebdomains.
□Common languagessupportedbythe
ApacheserverincludePerl,Python,andPHP
etc.
□Corefunctionalityoftheservercanbe
extendedwithmodules
□ addserver-sideprogramming language
support,authenticationschemes,andother
features.

NginxWebServer
□LightweightHTTPserve.
□ServeasareverseproxyandIMAP/POP3
proxyserver.
□Handletenthousandclientssimultaneously.
□More scalable and uses less, and more
predictable,amountsofmemory.
□Supports name-based and IP-based virtual
servers,keep-aliveandpipelinedconnections.
□Reconfiguredandupgradedonlinewithout
interruptionoftheclientprocessing.

LighttpdWebServer
speed-critical
remaining
secure and
□Optimized for
environments while
standards-compliant,
flexible.
□Handle10,000connectionsinparallel
ononeserver.
□Verylowmemoryfootprintcompared
tootherwebserversandtakescareof
cpu-load.

WhyApache..??
□Anopensourcewebserver.
□MostlyforUnix,LinuxandSolaris
platforms.
□Apacheisthemostpopularwebserver
onthe net.
□Itisverysecure,fast,andreliable.
□Thename"Apache"derivesfromthe
word"patchy“thattheApache
developersusedtodescribeearly
versionsoftheirsoftware.

FeaturesofApache
Implementsmanyfrequentlyrequestedfeatures,including:
□DBMdatabasesauthentication
□Password and digitalcertificateauthentication
□Customizedresponsestoerrorsandproblems
□SupportGraphicaluserinterfaces(GUIs)
□SupportVirtualHosts
□Support Handling of static files, index files,
auto-indexingandcontentnegotiation
□It is Highly scalable (easily handles more than 10,000
simultaneousconnections)
□It has been tested thoroughly by both developers and
users.
Apache…

ApacheWeb-Server
□Apacheisaprocess-basedserver,unlike
manyofitsrivalsthatareevent-basedor
asynchronousinnature.
■Inaprocess-basedserver,
eachsimultaneousconnectionrequiresaseparate
threadandthisincurssignificantoverhead.
■Anasynchronousserver,ontheotherhand,is
event-drivenandhandlesrequestsinasingleor
veryfewthreads.
□ApacheisfrequentlycomparedtoMSWord–
anextremelyfeature-richapplicationinwhich
90%ofusersonlyuseabout10%ofthe
featuresonaregularbasis.

□ItprovidesafullrangeofWeb
server features, including
CGI(Common GatewayInterface),
SSL(SecureSocketLayer),and
virtualdomains.
□Italsosupportsplug-inmodulesfor
extensibility.
ApacheWeb-Server…

NetworkModel
representsthe□Anetworkmodel
architectureofcomputernetwork.
Themostpopularnetworkmodelsare
describedbelow:
❑Client-ServerModel
❑Peer-to-PeerModel
❑HybridModel

TheHTTPalsoincludes
❑ARP(AddressResolutionProtocol)
❑DHCP(DynamicHostConfigurationProtocol)
❑FTP(FileTransferProtocol)
HTTP(HyperTextTransfer
Protocol)

ARP
ARPconvertsanInternetProtocol
(IP)addresstoitscorresponding
physicalnetworkaddress.
□ARPisalow-levelnetworkprotocol,
operatingatLayer2oftheOSI
model.
□ARPisimplemented usuallyinthe
devicedriversofnetworkoperating
systems.
□Itismostcommonly seenonEthernet
networks, Token Ring,andother
physicalnetworks.

DHCP
□DHCPallowsacomputertojoinan
IP-basednetworkwithouthavinga
pre-configuredIPaddress.
□DHCPisaprotocolthatassigns
uniqueIPaddressestodevices,then
releasesandrenewstheseaddresses
asdevicesleaveandre-jointhe
network.

FTP(FileTransferProtocol)
betweentwocomputerson
□FTPallowsyoutotransferfiles
the
Internet.
□FTPisasimplenetworkprotocol
basedonInternetProtocol.

SSL(SecureSocketLayer)
□SSLsecuritytechnologyhelpstoimprove
thesafetyofInternetcommunications.
□SSL is
client/servercommunication
astandardforencrypted
between
networkdevices.
TCP/IP.
□Anetworkprotocol,SSLrunsontopof
□SSLutilizesseveralstandardnetwork
securitytechniquesincludingpublickeys,
symmetrickeys,andcertificates.
□Websitescommonly useSSLtoguard
privateinformationsuchascreditcard
numbers.

Requirements
□RequirementsToConfigureApache:
InstallType CPU RAM HardDriveSpace
Server(Standard) 1GHz 512MB 1.5GB
Server(Minimal) 300MHz 384MB 150MB

WhyServerEdition??
□TheServerEditionprovidesa
commonbaseforallsortsofserver
applications.
□Simpledesignprovidingplatformfor
thedesiredservices,suchasfile/print
services,webhosting,emailhosting,
etc.

Difference b/w Server &
Desktop Edition
□Thereareafewdifferencesbetweenthe
UbuntuServerEditionandtheUbuntu
DesktopEdition.
□Itshouldbenotedthatbotheditionsusethe
sameaptrepositories,makingitjustaseasy
toinstallaserverapplicationontheDesktop
EditionasitisontheServerEdition.
□Thedifferencebetweenthetwoeditionsare
thelackofanXwindowenvironmentinthe
ServerEditionandtheinstallationprocess.

DefinitionofNetwork
Anetworkisasetofcomputersconnectedtogetherforthepurposeofsharing
resources.Themostcommonresourcesharedtodayisconnectiontothe
Internet.Othersharedresourcescanincludeaprinterorafileserver.

TypesofNetworks
Therearemanytypesofcomputernetworks,includingthefollowing:
Local-areanetworks(LANs):Thecomputersaregeographicallyclosetogether
(thatis, in the same building).
Home-areanetworks(HANs):Anetworkcontainedwithinauser'shomethat
connectsaperson's digital devices.
Campus-areanetworks(CANs):Thecomputersarewithinalimitedgeographic
area,such asacampus ormilitary base.
Metropolitan-areanetworksMANs):Adatanetworkdesignedforatownorcity.
Wide-areanetworks(WANs):Thecomputersarefartherapartandare
connectedby telephone lines orradio waves.

NetworkManagement
❑Networkmanagementistheprocessofadministeringandmanagingcomputer
networks.Various services providedby this disciplineinclude:
❑faultanalysis,
❑performancemanagement,
❑provisioningofnetworks,
❑maintainingthequalityofservice,andsoon.

NetworkManagementRequirements
FCAPS isaNetworkManagementModelbyISOthatdefinesRequirements.
FaultManagement
Configuration of Network
Accounting Management
PerformanceManagement
SecurityManagement
Reference:https://www.cisco.com/networkers/nw04/presos/docs/NMS-1N01.pdf

FaultManagement
Tomaintainproperoperationofanetwork,weneedtoresolvethefaultsas
soonaspossible. We need todetermine
▪Determineexactlywherethefaultis.
▪Isolatetherestofthenetworkfromthefailuresothatitcancontinueto
functionwithout interference.
▪Reconfigureormodifythenetworkinsuchawayastominimizetheimpact
of operationwithout the failedcomponent or components.
▪Repairorreplacethefailedcomponentstorestorethenetworktoits
initial state.

ProcessofFaultManagement

FaultManagementSoftware
PRTGPaesslerRouterTrafficGrapher.
It can monitor routers, switches, servers, hardware, software, operating
systems, applications, virtualized environments, websites, Internet & its
protocols, email servers, databases, VoIP and QoS, logs, events, performance,
NetFlow/IPFIX, sFlow, and jFlow, packet sniffing, SNMP, WMI, temperature,
humidity,andmanymore,usingapprox.200predefinedsensortypes.Network
PerformanceMonitorby Solarwinds.

AccountingManagement
In an enterprise network, we need to manage the system resources and their
cost.We need to monitor
▪A user or group of users may be abusing their access privileges and burdening
thenetwork atthe expense ofother users.
▪Users may be making inefficient use of the network, and the network manager
canassistin changingprocedures to improveperformance.
▪The network manager is in a better position to plan for network growth if user
activityis known in sufficient detail.

AccountingManagementSoftware
PRTGcanalsomonitorServeroverloadsandusersbandwidthusagetocontrol
systemresourcesandcost.
OpenNMSisafreeandopen-sourceenterprisegradenetworkmonitoringand
networkmanagementplatform.Itisdevelopedandsupportedbyacommunityof
usersanddevelopersandbytheOpenNMSGroup.
The goal is for OpenNMS to be a truly distributed, scalable management application
platform for all aspects of the FCAPS network management model whileremaining
100% free andopen source.

PerformanceManagement
Anetworkiscomposedofmanycomponentswhichmustintercommunicate
and share data and resources. For their performance, we manage two functions.
“Monitoring”and“Controlling.”
Monitoringisthefunctionthattracksactivitiesonthenetwork.
Controlling function enables performance management to make adjustments to
improvenetwork performance.

PerformanceManagement
Some of the performance issues of concern to the network manager are as
follows:
▪Whatisthelevelofcapacityutilization?
▪Isthereexcessivetraffic?
▪Hasthroughputbeenreducedtounacceptablelevels?
▪Aretherebottlenecks?
▪Isresponsetimeincreasing?

PerformanceManagementProcess

SecurityManagement
Security management is concerned with generating, distributing, and storing
encryptionkeys.
Passwords and other authorization or access control information must be
maintainedanddistributed.
Security management is also concerned with monitoring and controlling access
to computer networks and access to all or part of the network management
informationobtained from the networknodes.

SecurityManagement
Logs are an important security tool, and therefore security
management is very much involved with the collection,
storage, and examination of audit records and security logs,
as well as with the enabling and disabling of these logging
facilities.

SecurityManagementSoftware
Log&EventManagerbySolarwinds;
Managedeviceconfigurationsandtrackchanges:Backup andrestorenetworkdevice
configurations,andmonitor erroneousor unauthorized changes.
Automatesoftwareupdatestoserversandworkstations:KeepMicrosoft andthird-partyapps onservers
andworkstations upto date, andavoidvulnerabilities.
RemoteMonitoring&Management bySolarwinds;
The web-based console provides integrated patch management, antivirus, web content filtering, backup
andrecovery,remote access,automatedmonitoring andmaintenance.
SecurityManagementbyCheckpoint.
Spiceworks Network Monitor For Real-time monitoring, email alerts, monitor multiple devices in one
dashboard, easy-to-use for WindowsandLinux servers &switches.

InstallingUbuntuServer
❑FirstdownloadubuntoserverIdownloaded ubunto
serverfromthe followinglink
❑http://mirrors.nayatel.com/ubuntu -
releases/16.04.3/ubuntu -16.04.3-server-amd64.iso
❑Go to the Virtual Box/ VMware made a new Virtual
Machine and allocate space,ram,processors for Ubunto
Server, Ubunto server needs 2.5GB space so its better
to allocate 10GB for Ubuntu server.
After that setting start the new created Virtual
machine and give the path of the server After
that the following screen will shown in Virtual
Box

SelectLanguage

Select install Ubuntu Server
and press EnterKey

SelectLocation

KeyBoardLayout
Selection

ServerHostname

EnterUserNameusedtobeasserver

Enter
Password

Select nothere/Not encrypt
your Directory

Select Partitioning Method/ Go
for defaultselection

Select Yes to write and apply
the changestoharddisk

Select the amount of volume group to use for
guided partitioning andentertoContinueand
select yes to write changestodisk

No proxy server needed yet
so left blank

SelectNoautomaticupdatesand
press enter

Press space bar to select
more than oneyouneeded

Select Yes to install the GRUB
boot loaderonaharddisk.

Finally the Ubuntu server
installation hasbeenfinished
successfully.

Configurationof
Ubuntu Server

Advantages of
Linux Server

Stability
LINUX SERVER Are well known for their ability to run for years
without failure; many Linux servers never seen a crash. That’s great
for usersofEveryKindbut its particularly valuable for small and
medium-sized business for which downtime can have disastrous
consequences.

Security
Linuxisalsonaturallymoresecurethan
Windowsiswhetherontheserveroran
embedded environment.That’sdue
largelyfactthatlinuxwhichisbased
onUnixwasdesignedfromthestartto
bemultiuseroperatingsystem.

Hardware
Whereas Windows typically requires frequent hardware upgrades to
accommodate its ever-increasing resources demand. Linux is a slim
trimflexible andscalable.

TCO
ThereisnobeatingLinuxtotalcostand
ownership sincethe software is
generallyfree.EvenanEnterpriseversion
purchased withcorporatesupportwillbe
cheaperoverallthanwindows orother
proprietary software which generally
involveusersoflicense.

Freedom
WITH Linux, There is no commercial vendor trying to lock you into
certain products or protocols. Instead you are free to mix and match
andchoose what worksbest for yourbusiness.

VulnerabletoMalware
Because most computer malware are designed to attack Windows
through Active X these odds are considerably less for linux to be
infectedwith avirus thanWindows.

DonotSlowdown
Unlikewindows,Linuxdoesnoteasily
become boggeddownwithspyware,
viruses,Trojans,whichcangreatly
reduceacomputer Performance.Also
Linuxdoesnothavearegistrylike
Windows itisnotplaguedwithregistry
errors.

Disadvantages

SmallerPeripherals
There is smaller selection of Peripherals hardware drivers i.e
printersscanners,in Linuxascompared toWindows.
Though many new Linux hardware drivers are constantly
added.

LessAmountofApplications
ItismoreDifficulttofindApplicationstosupportyouneeds.Thisis
anissueformostlybusinessbutmoreprogrammersaredeveloping
applicationsthataresupportedbylinux.

LectureEnd
Tags