LINUX - Course Presentation - Text
LINUX - Course Presentation - Text
TECHNOLOGIES
Course Presentation
0
LINUX
System Administration
Course Presentation
0
© 2015 Zoom Technologies India Pvt. Ltd.
All rights reserved. No part of this book or related material may be reproduced in any
form or by any means without prior permission from Zoom Technologies India Pvt.
Ltd. All precautions have been take to make this book and related material error-free.
However, Zoom Technologies India Pvt. Ltd. is not liable for any errors or omissions.
The contents of this book are subject to change without notice.
DISCLAIMER: RHCE is the registered trademark of RED HAT Inc.
0
0 1
History of Unix
LINUX
0 2
History of Linux ZOOM
V TECHNOLOGIES
])
• In 1990, Linus Torvalds, a graduate student form University of Helsinky designed a
UNIX like kernel on 386 Intel machine and gave this to Open Source Foundation(OSF).
orLinux
Mandrake
red hat ^
0ubuntu detail
turbolinux
©slackware
I 1 i a « x
£
0 3
Red Hat Linux Versions
Fedora core 3
RHEL3
Fedora core 4
Fedora core 6
RHEL5
Fedora 7
• Open Source
Free software along with the source code and documentation.
• Multitasking
- Capable of running multiple applications and process at the same time.
• Multi-user
- Allows multiple users to login and use the resources at the same time.
• Portability
0 4
Features of Linux ZOOM
^TECHNOLOGIES
U
• Scalability
- Same operating system can be used on a desktop to a super computer.
• Reliability
- Large servers have been successfully being running without a single second of
down time.
• Security
Inbuilt firewall (iptables) and SELinux
/ (Jut-,"
¥ -
romax
Gooole CtlP NASA t CJ
« Tft (
yi !
-i
notiing H-eaivting
'V »
f^icebook ■NYSE
YNL 5t«l Utility
WIKIPEDIA
If UnlonBank
SONY
ievs
amazon.com
vi< London
McDonald's Stock A L’ Jl 1 A M
Exchange
0 5
Reference Books ZOOM
'J
TECHNOLOGIES
• Red Hat Linux Network and Administration by Terry Codings and Kurt Wall.
0 6
Hardware Requirement
Minimum
Text 512 MB
RAM
GUI 1GB
Text 10 GB
Hard Disk Space
GUI 15 GB
Partition Size
/boot 200 MB
/ 8000 MB
/usr 10000 MB
/var 10000 MB
/home 2000 MB
0 7
Installation steps ZOOM
'J
^TECHNOLOGIES
- Languages selection
- Installation source
- Installation destination(Partitioning)
- Software selection
CRntOS "7
Install CcntOS 7
Test: til is media « install UentUil V
0 8
Installation steps ZOOM
Installation steps
CENTOS 7 INSTALLATION
EES u»
What language would you like to use during the installation process?
English English
Afrikaans A frikaans
A-Tcsr Amhanc
1 Arabic
-‘TMTI’JT Assamese
Asturlanu Asturian
Ee/iapyc Kan Bela rusian
BtyirapcKM Bulgarian
srr^srr Bengali
Quir Continue
9
Installation steps
INSTALLATION SUMMARY CENTOS 7 INSTALLATION
ZOOM
^TECHNOLOGIES
D
E3J us
CentOS LOCALIZATION
LANGUAGE SUPPORT
Engl ish (United S ta tes)
SOFTWARE
(SYSTEM
Qu it Begin Installation
Installation steps
CONFIGURATION CENTOS 7 INSTALLATION
us
10
File System Hierarchy Standard
and Basic Commands - Part I
wm
ZOOM
~=r*\OLOG FS
0 11
• This directory is called as the "root7 directory.
0 12
/root ZOOM
^TECHNOLOGIES'J
• This is the default home directory of the root.
ZOOM
u
TECHNOLOGIES,
• It contains the home directories of all users (similar to 'Documents and Setting' folder
in Windows).
• When any user logs in the current working directory by default is the users home
directory.
0 13
/boot ZOOM
'J
^TECHNOLOGIES
• It also contains the files related for booting the OS such as the boot loader.
ZOOM
D
TECHNOLOGIES,
• It contains essential system commands which can only be used by the superuser
(root).
0 14
/bin ZOOM
^TECHNOLOGIES 'J
• bin stands for binary
ZOOM
')
TECHNOLOGIES,
• It contains the programs and applications which are available for users (similar to
program files in Windows).
0 15
ZOOM
ks ])
TECHNOLOGIES
ZOOM
')
TECHNOLOGIES,
0 16
/etc ZOOM
'J
^TECHNOLOGIES
ZOOM
')
TECHNOLOGIES,
0 17
/media ZOOM
'J
TECHNOLOGIES
• It is the default mount point for removable storage media such as cdrom/dvd and
pendrives, etc.
0 18
0 19
Print Working Directory ZOOM
lJ
^TECHNOLOGIES
f N
Print the name of the current working directory
[root@comp1 -]# pwd
l )
f ~ \
To find partitions and size
[root@comp1 -]# gnome-system-monitor
v )
( ; \
To see the list of files and directories
[root@comp1 -]# Is <options> <arguments>
v /
Options
-I Long list including attributes
0 20
Creation of Files ZOOM
'J
^TECHNOLOGIES
Files can be created by using any of the three commands given below:
• cat command
• touch command
• vi editor
ZOOM
Cat (Concatenation) Command
V 'J
TECHNOLOGIES,
( ; A
Creating and displaying text files
[root@comp1 -]# cat <options> <arguments>
^ <filename>
( A
To create a file
[root@comp1 -]# cat > <filename>
v J
r A
To view the contents of a file
[root@comp1 ~]# cat <filename>
\ /
0 21
Creating a file by using cat command ZOOM
U
^TECHNOLOGIES
f \
To append or add to an existing file
[root@comp1 -]# cat » <filename>
V )
( To combine the data of two or more files into a third file
>>
E 22
Creating a file by using vi command ZOOM
U
^TECHNOLOGIES
/ \
To create file
[root@comp1-]# vi <filename>
\ )
( \
To create a directory
[root@comp1 -]# mkdir <directory name>
v )
( ' \
To create multiple directories
[root@comp1 -]# mkdir <first dir> <second dir> <third
i dir> ,
/ \
To create nested directories
[root@comp1 -]# mkdir -p <first dir>/<second
^ dir>/<third dir> y
0 23
Navigation of Directories ZOOM
U
^TECHNOLOGIES
[root@comp1 ~]# cd
( \
To change to the last working directory
[root@comp1 -]# cd -
V /
f \
To change to the users home directory
[root@comp1 -]# cd
V
0 24
Help and Command Records ZOOM
'J
^TECHNOLOGIES
0 25
Copying ZOOM
U
^TECHNOLOGIES
( ; \
To copy a file or directory
[root@comp1 -]# cp <options> <source file>
i <destination> >
Options
-r Recursive (To copy the directory along with its
contents)
-v Verbose
/ \
To move a file or directory to a different location
[root@comp1 -]# mv <source file or directory>
s. <destination> j
( : \
Rename a file or directory
[root@comp1 -]# mv <old name> <new name>
v )
0 26
Deleting ZOOM
'J
^TECHNOLOGIES
f N
To remove or delete an empty directory
[root@comp1 -]# rmdir <directory name>
v
f : >>
To remove or delete a file or directory
[root@comp1 -]# rm <options> <file or directory name>
v
Options
-r Recursive (Directory along with contents)
-f Forcefully
r \
To check date and time
[root@comp1 -]# date
v J
( N
To change the date and time
[root@comp1 ~J# date -s “day month date hours min
i seconds”
( \
To see the calendar
[root@comp1 -]# cal | less or # cal | more
V /
0 27
File Viewing Commands ZOOM
U
^TECHNOLOGIES
( :
To find the location of file or directory
'N
r ; \
To count the words, lines and characters of file
[root@compl ~]# wc install.log
V )
0 28
Editors ZOOM
TECHNOLOGIES,
• Windows :notepad
• DOS :edit
• Linux/Unix
- GUI based : emacs, gedit, nedit, nano, notepad, kwrite and pico, etc.
0 29
Editors ZOOM
'J
^TECHNOLOGIES
• This is the most commonly used editor for editing files in Linux.
• Command Mode
• Insert Mode
0 30
VI Editor modes ZOOM
U
^TECHNOLOGIES
Press Press i, I, a, A, o, O
to go into Ex Comman or NSERT to enter
mode into the insert mode
d Mode from the command
mode
You can
'I your
savf
sav Pre° PrPQC
here
te
to return fr to return from the
insert mot excute mode to
command me command mode
0 31
Extended mode
• :w Write (save)
dd
Command Mode
- Deletes a line
ZOOM
u
TECHNOLOGIES,
• yy - Copies a line
Ctrl+r - Redo
0 32
Users ZOOM
TECHNOLOGIES,
• A user will have a user account that identifies the user by a username.
resource management.
0 33
ZOOM
Users Database Files
•J
TECHNOLOGIES,
- /etc/passwd
- /etc/shadow
0 34
User Properties ZOOM
'J
^TECHNOLOGIES
file /etc/passwd
ravi:x:1000:1000:prog:/home/ravi:/bin/bash
Mask Home
Password Directory
by default:
0 35
ZOOM
User Password Properties
•J
^TECHNOLOGIES
• Passwords are encrypted using SHA 512 default which can even be
change /etc/shadow
ravi:hjkadfhs8974ut/:16682:0:99999:7:::
i i I Number of Maximum life
days since
of the password
. 1970
. * *
Minimum life
of the password
Adding a user
[root@comp1 -]# useradd <username>
or
[root@compl -]# useradd <options> <arguments>
V.<username>
Options
-u UID -c Comment
-o Override -s Shell
-G Secondary group
0 36
User Properties Viewing Commands ZOOM
U
^TECHNOLOGIES
f \
To find a user’s password encryption tool
[root@comp1 ~]# passwd -S <username>
v y
0 37
Modifying User Properties ZOOM
'J
^TECHNOLOGIES
( ; ; \
Modifying user properties
[root@comp1 -]# usermod <options> <arguments>
^ <username> j
Options
/ ;
Deleting a user
[root@compl -]# userdel <options> <username>
v )
Options
-r recursively
0 38
Adding users on GUI Mode ZOOM
])
TECHNOLOGIES
f ; \
Adding, Modifying and Deleting a user
[root@comp1 -]# system-config-users &
v /
0 39
Group ZOOM
')
TECHNOLOGIES,
Primary
- Secondary
0 40
Groups ZOOM
^TECHNOLOGIES
sales:x:1000:sachin, kumar
I i
Masl<
Secondary
Password Members
0 41
ZOOM
Group password properties
'J
^TECHNOLOGIES
Algorithm /etc/gshadow
sales:hjkadfhs8:admin:sachin,kumar
List of List of
administrative members
members
Encrypted
Password
Creating a group
[root@comp1 -]# groupadd <groupname>
or
[root@comp1 -]# groupadd <options> <arguments>
^<groupname>
Options
-g GID
-o Override
0 42
Modifying a Group ZOOM
'J
^TECHNOLOGIES
Modifying a group
[root@comp1 -]# groupmod <option> <arguments>
<groupname>
Options
-g GID
-o Override
-n Group name
/ N
Deleting a group
[root@comp1 -]# groupdel <group name>
v )
Note: A group cannot be deleted if it has primary
members.
0 43
Group Membership ZOOM
'J
^TECHNOLOGIES
( \
Group membership
[root@comp1 -]# gpasswd <option> <arguments>
^ <grpname> y
Options
-M Add multiple users to the group
( \
Managing groups using (gui)
[root@comp1 -]# system-config-users &
v )
0 44
Permissions ZOOM
TECHNOLOGIES,
called Umask.
0 45
ZOOM
File and Directory Attributes
•J
^TECHNOLOGIES
command
—
Note: Only the owner or the root can change the permissions
0 46
Access Modes ZOOM
TECHNOLOGIES,
0 47
Modifying the Permissions ZOOM
TECHNOLOGIES,
Options
Permissions r w X
Weights 4 2 1
0 48
Example of Permission - Absolute ZOOM
2J
^TECHNOLOGIES
• Applying permission to Owner (u), Group (g) and Others (o) on the file
reports
• Applying permission to Owner (u). Group (g) and Others (o) on the file
ZOOM
V! y
TECHNOLOGIES,
reports
0 49
Changing permissions of an objects ZOOM
'J
^TECHNOLOGIES
( \
Changing the permissions of an object by using Absolute Mode
[root@comp1 -]# chmod <646> <object>
v /
c ;
Changing the permissions of an object by using Symbolic mode
'N
0 50
Access Control List ZOOM
')
TECHNOLOGIES,
• Basic file permission can be applied only on the owner, owners primary group and
others.
• Access control list (ACL) are created to configure different permissions for different
users or groups.
• Note: From RHEL 5 Version onwards by default every partition is coming with ACL's.
0 51
Configuration of ACL ZOOM
'J
^TECHNOLOGIES
( ;— \
Assigning permissions for a user
[root@comp1 -]# setfacl -m
^ u:<username>:<permission> <file or directory>
r
To list the applied ACLs on a file or directory
[root@comp1 -]# getfacl <file or directory>
v )
r
To remove an ACL for a user from a file or directory
[root@comp1 -]# setfacl -x u:<username><file or
directory>
J
To remove an ACL for a group from a file or directory
[root@comp1 -]# setfacl -x g:<group name> <file or
di recto ry>
0 52
Changing ownership and group ownership ZOOM
'J
^TECHNOLOGIES
f ; ■\
Changing the ownership of a file or directory
[root@comp1 -]# chown <username> <file /dir>
v J
( :
Changing the group ownership of a file or directory
^
[root@comp1 -]# chgrp <groupname> <file /dir>
v )
0 53
Partitions ZOOM I
^TECHNOLOGIES^
• Partition is use to secure data and also to appearance of having separate hard drives
for file management and multiple users.
• In Linux there are some default file systems to format the partitions such as ext2, ext3
ext4, xfs and vfat, etc.
• In Linux there are some default tools to update new changes of partitions to the kernel
such as partx, kpartx and partprobe.
• Pre-Installation tool
Disk Druid
• Post-Installation tools
- fdisk
- parted
0 54
Naming Convention of Hardware Devices ZOOM I
TECHNOLOGIES^
DVD-RW /dev/srO
( \
View the list of partitions
[root@comp1 -]# fdisk -I <device name>
v )
0 55
Disk Management Using fdisk ZOOM
'J
^TECHNOLOGIES
f \
Disk Management
[root@comp1 -]# fdisk <device name>
v /
Disk Management
d delete a partition
m print this menu
n add a new partition
p print the partition table
q quit without saving changes
w write table to disk and exit
LINUX
0 56
Updating the Partition Table ZOOM
^TECHNOLOGIES
( \
Update the partition table without restarting
[root@comp1 -]# partprobe <device name>
v )
Formatting ZOOM
')
TECHNOLOGIES,
0 57
Mounting ZOOM
'U
^TECHNOLOGIES
r
Mounting the partition on the directory created
[root@comp1 -]# mount <partition> <directory name>
/ ;
To view available free space of a disk
[root@comp1 -]# gnome-system-monitor &
v J
/
To view the free space in a partition
[root@comp1 -]# df -hT
v /
( \
To view the total amount of used space in a partition / directory
[root@comp1 ~]# du -sh
V /
E 58
Swap filesystem ZOOM
')
TECHNOLOGIES,
• Swap is a virtual file system which is use to increase the logical RAM memory.
• It's similar to the windows swap file only instead of using an actual file, Linux uses a
partition on the hard drive.
0 59
How Swap Works ZOOM
V u
TECHNOLOGIES,
Process D
Process B sda3
Process A
Hard Disk
0 60
Creating a Swap Partition ZOOM
U
^TECHNOLOGIES
r
Format the partition as swap
[root@comp1 -]# mkswap <partition>
Turn on swap
[root@comp1 -]# swapon <partition>
/ \
Check the status of swap used
[root@comp1 -]# swapon -s <partition>
v /
(
Turn off swap
[root@comp1 -]# swapoff <partition>
v J
0 61
Mounting a Partition Permanently ZOOM
'J
^TECHNOLOGIES
( \
To mount a partition permanently
[root@comp1 -]# vi /etc/fstab
\ /
0 62
Mounting Removable Devices ZOOM
'J
^^TECHNOLOGIES,
( \
To mount dvdrom drive
[root@comp1 -]# mount /dev/srO /media
v /
r N
To mount a pen drive
[root@comp1 -]# mount /dev/sdbl /mnt
v J
0 63
Disk Quotas ZOOM
')
TECHNOLOGIES,
• Quotas are used to restrict the amount of hard disk space occupied by a user or a
group.
• Users repeatedly exceed their quotas or consistently reach their soft limits, a system
administrator has a few choices to make depending on what type of users they are and
how much disk space impacts their work. The administrator can either help the user
determine how to use less disk space or increase the user's disk quota.
0 64
Disk Quotas ZOOM
^TECHNOLOGIES 'J
Quotas can be applied in two ways:
Quotas Limits
v
ZOOM
D
TECHNOLOGIES,
• Soft - Soft quota limits will only warn the user that they have reached their quota
limits.
• Hard - Hard quota limits will not allow the user to create any more files or directories
once the quota limit has been reached.
0 65
Steps to Apply Quotas ZOOM
'J
^TECHNOLOGIES
• Create an directory.
( “ \
To mount the partition with quotas enabled
[root@comp1 -]# mount -o usrquota,grpquota
^ <partition name> <mount point>
( \
Generate the quota database file
[root@comp1 -]# quotacheck -cugv cmount point>
v )
Options
-c Create new database -g Group
-u User -v Verbose
E 66
Applying Quotas on a Partition ZOOM
U
^TECHNOLOGIES
( \
Turn on the quota
[root@comp1 -]# quotaon <mount point>
/dev/hda9 0 0 0 0 0 0
0 67
Finding the result by login as a user ZOOM
'J
^TECHNOLOGIES
( ' \
To find result login as a user and try to add objects
[root@comp1 -]# su - username
V /
0 68
Logical Volume Manager (LVM) ZOOM
^TECHNOLOGIES 'J
• LVM is a method of allocating hard drive space into logical volumes that can be easily
resized.
• With LVM, the hard drive or set of hard drives is allocated to one or more physical
volumes.
• Each volume group is divided into logical volumes, which are formatted with a file
system like ext3 and are then mounted.
0 69
Creating Partitions ZOOM
y
TECHNOLOGIES,
0 70
Physical Volume ZOOM
'J
^TECHNOLOGIES
( \
Create a physical volume from the previously created partitions
[root@comp1 -]# pvcreate <partition1> <partition2>
<partition3>
f ; \
To see the physical volume details
[root@comp1 -]# pvdisplay |less
v /
( N
Create a volume group
[root@compl -]# vgcreate <volume group name>
^ <physical volume1> <physical volume 2>
( \
To see the volume group details
[root@comp1 -]# vgdisplay cvolume group name>
v /
0 71
Logical Volume ZOOM
^TECHNOLOGIES
'U
f i \
Create logical volume
[root@comp1 -]# Ivcreate -L <size> <volume group name> -n
<volume name>
v
( ; \
Format the logical volume
[root@comp1 -]# mkfs.ext4 <volume name>
V )
/ \
Create a mount point
[root@comp1 -]# mkdir <directory name>
v )
( " \
Mounting a logical volume
[root@comp1 -]# mount <volume name> <mount point>
v )
0 72
Logical Volume
f ' N
Resizing a logical volume
[root@comp1 -]# Ivresize -L <+sizeM> <logical volume name>
0 73
Redundant Array of Independent Disks (RAID) ZOOM
TECHNOLOGIES,
• RAID is a technology that employs the simultaneous use of two or more partitions on
the same or different hard disk drives to achieve greater levels of performance and
reliability.
• It is a fault tolerance mechanism in which the data is not lost even if one of the disk
fails.
0 74
Types of RAID ZOOM
V ])
TECHNOLOGIES
• Hardware RAID
• Software RAID
• RAID 4 (parity)
0 75
RAID 0 ZOOM
^TECHNOLOGIES
• Data is written simultaneously and evenly across the multiple hard disks.
0 76
ZOOM
RAID 1
'J
^TECHNOLOGIES
• Overhead is 50%
0 77
RAID 4 ZOOM
^TECHNOLOGIES
0 78
ZOOM
RAID 5
'J
^TECHNOLOGIES
0 79
ZOOM
Creating Partitions
’J
TECHNOLOGIES,
( ; \
Make multiple partitions
[root@comp1 -]# fdisk <device>
v /
f \
Update the partition table
[root@comp1 -]# partprobe <device>
J
0 80
RAID Commands ZOOM
lJ
^TECHNOLOGIES
0 81
RAID Commands ZOOM
lJ
^TECHNOLOGIES
r A
To assemble a RAID
[root@compl -]# mdadm -A /dev/mdO <partition1> <partition2>
<partition3>
0 82
Backup ZOOM
V ')
TECHNOLOGIES,
0 83
Commands for Backup ZOOM
^TECHNOLOGIES
• CPIO
f "N
To backup and restore using tar commands
[root@comp1 -]# tar <options> <destination>
^ <source> >
Options
-c Create -t Table of content
-v Verbose ■i bunzip
-f File
0 84
Backup using cpio Command ZOOM
lJ
^TECHNOLOGIES
/ \
To backup using cpio commands
[root@comp1 ~ ]# Is -d <file/dir> | cpio <option>> <destination>
Options
-o output -t Table of content
-i input
-v Verbose
-f File
( ; ; \
To read backup file using cpio commands
[r00t(5)C0mp1 ~]# cpio <option> < <destination>
V )
( ;
To restore the backup file using cpio commands
\
[r00t(2>C0mp1 ~]# cpio <option> < <destination>
V /
0 85
ZOOM
Hostname Configuration
'J
TECHNOLOGIES,
( \
Assigning a hostname - temporarily
[root@server -]# hostname <computer name>
v J
r \
Assigning a hostname - permanently
V J
0 86
IP Address Assignment ZOOM
'J
^TECHNOLOGIES
• Static IP Address
• Address that are manually assigned and do not change over time.
• Dynamic IP Address
• Addresses that are automatically assigned for a specific period of time and can
( \
To assign IP address - temporarily
[root@server -]# ifconfig enp1s7 <ip address>
v )
Assian an IP address - oermanentlv
[root@server ~]# nmtui
V J
0 87
ZOOM
')
.TECHNOLOGIES,
0 88
** Application* Places *• (ft Man 16:03 *3 root
root^loialheftt -
Edit connection
0 89
IP Address Configuration ZOOM
'J
^TECHNOLOGIES
( ; \
To find DNS ip address
[root@server -]# cat /etc/resolv.conf
V /
\
To find gateway
[root@server ~]# route -nv
v J
( ' \
To edit or to remove an ip address
[root@server -]# cd /etc/sysconfig/network-scripts
v /
E 90
91
Red Hat Package Manager (RPM)
• RPM packages were original created of Red Hat Linux, but now can be used on many
• Query packages
0 92
RPM Label Pattern ZOOM
'J
^^TECHNOLOGIES
Methods of Installation
• Standalone Method
ZOOM
y
TECHNOLOGIES,
0 93
Standalone Installation ZOOM
lJ
^TECHNOLOGIES
( \
Installing a package
[root@comp1 -]# rpm <options> <package name> --
i force j
Options
-i Install -U Update existing package
-v Verbose -force Install forcefully
-h Displays the progress in hashes
format
( \
Removing a package
[root@comp1 -]# rpm <options> <package name> --
s. nodeps j
Options
-e Erase (uninstall)
0 94
Querying an Installation ZOOM
'J
^TECHNOLOGIES
( \
Installing a package
[root@comp1 -]# rpm <options> <package name>
v >
Options
-q Query the availability of the package
-ql Displays all the files associated with the installed package
/ \
Create a directory
[root(5)comp1 -]# mkdir <directory name>
v J
Mount the NFS file system on the directory
[root@comp1 -]# mount <NFSserverip>:<path to the package>
<mount point>
/ \
To install the package
[root@compl -]# cd cmount point>
[root@comp1 -]# rpm <option> <package> -force
E 95
Yellowdog Updater Modified (YUM) ZOOM
')
TECHNOLOGIES,
• It automatically computes dependencies and figures out what things should occur to
install packages.
• It can be used to installed from a local media, ftp server or nfs server.
0 96
Updating the yum configuration file ZOOM
'J
^TECHNOLOGIES
( \
Provide server IP address and Applications directory in yum file
[root@comp1 -]# vi /etc/yum.repos.d/CentOS-Base.repo
v /
Installing a package
[root@comp1-]# yum <option> <package name1>*
<package name2>*
Options
list Displays the list of packages in the repository,
list installed Displays the packages that are already installed,
remove To erase or remove a packages.
install Installs the package from the repository.
Update To update existing packages
E 97
Dynamic Host Configuration Protocol (DHCP) ZOOM
')
TECHNOLOGIES,
0 98
Static vs Dynamic ZOOM
■
^TECHNOLOGIES
linux Client
0 99
ZOOM
^TECHNOLOGIES^
IP address Pool
192.168.0.1
broadcasts a DHCP Discover
a DHCP Offer
0 100
^^ ns
192.168.0.1
nuro O/M-II
Urlur berv Client broadcasts a DHCP Discover
192.168.0.2
1192.168.0.2 192.168.0.3 DHCP Server broadcasts a DHCP Offer
lU
\ \
192.168.0.100
I ^ 7
Client broadcasts a DHCP Request
DHCP Server broadcasts a DHCP ACK
a
linux Client
Windows Client
ZOOM
How DHCP Renewal Works?
va 'J
TECHNOLOGIES,
0 101
How DHCP Renewal Works? I ZOOM I
^TECHNOLOGIES^
IP address Pool
DHCP Sen Client sends a DHCP Request
DHCP Server sends a DHCP ACK
Assigning IP address dynamically has some disadvantage, every time the lease period
expires the client system may not get the same IP address.
0 102
DHCP Requirements
• Installation packages
ZOOM
U
^TECHNOLOGIES
- dhcp*
• Port numbers
- 67 Bootp/DHCP client
- 68 Bootp/DHCP server
• Configuration file
- /etc/dhcp/dhcpd.conf
• Daemon / Service
- dhcpd
0 103
DHCP Server Configuration ZOOM
lJ
^TECHNOLOGIES
# — default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;
0 104
DHCP Server Configuration ZOOM
lJ
^TECHNOLOGIES
range
((VOS dynamic-bootp 192.168.0.1 192.168.0.200;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed
address
host ns {
next-server marvin.zoom.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
( ' \
Restart the service temporary
[root@dhcpserver -]# service dhcpd restart
v /
C "
Restart the service permanent
\
0 105
DHCP Client Configuration - Linux ZOOM
'J
^TECHNOLOGIES
• Select properties
• Select properties
0 106
107
File Transfer Protocol (FTP) ZOOM
lJ
^TECHNOLOGIES
• File Transfer Protocol (FTP) is one of the oldest members of the TCP/IP
protocol.
0 108
FTP Requirements ZOOM
V u
TECHNOLOGIES,
- vsftpd* - vsftpd
• Configuration file
- /etc/vsftpd/vsftpd.conf
• Port numbers
- 20 Data transfer
- 21 Control Connection
0 109
Configuration - Anonymous Access ZOOM
U
^TECHNOLOGIES
/var/ftp/pub
0 110
FTP Server Configuration ZOOM
lJ
^TECHNOLOGIES
( \
Install the ftp package
[root@ftpserver-]# yum install vsftpd* -y
\ /
ZOOM
FTP Server Configuration - Anonymous Access
')
TECHNOLOGIES,
anonymous_enable=YES
local_enable=NO
anon_upload_enable=YES
ftpd_banner=Welcometo Linux FTP server
0 in
FTP Server Configuration - Anonymous Access ZOOM
'J
^TECHNOLOGIES
0 112
Accessing the FTP Server - Linux ZOOM
'J
^TECHNOLOGIES
(T\ ftp> Is
227 Entering Passive Mode
(192,168,0,253,80,246)
150 Here comes the directory listing.
drwxr-xr-x 20 0 4096 Mar 01 06:42
pub
drwxr-xrwx 20 0 4096 Mar 01 07:05
upload
226 Directory send OK.
ftp> bye
221 Goodbye.
[root@client1 -]#
bye To quit
0 113
Accessing the FTP Server - Linux ZOOM
'J
^TECHNOLOGIES.
0 114
Accessing the FTP Server - Windows ZOOM
'J
^TECHNOLOGIES
anonymous_enable=NO
local enable=YES
0 115
FTP Server Configuration - Local User ZOOM
'J
^TECHNOLOGIES
( \
Create a user
[root@ftpserver -]# useradd ravi
v J
( \
Assign the password
[root@ftpserver ~]# passwd ravi
v /
( \
Restart vsftpd service
[root@ftpserver -]# service vsftpd restart
v /
0 116
Accessing the FTP Server - Linux ZOOM
'J
^TECHNOLOGIES
rr ftp> pwd
227 Entering Passive Mode
(192,168,0,253,80,246)
150 Here comes the directory listing,
/home/ravi
226 Directory send OK.
ftp> bye
221 Goodbye.
[root@client1 -]#
0 117
ZOOM
Yum configuration
')
TECHNOLOGIES,
V /
V J
E 118
Yum configuration ZOOM
^TECHNOLOGIES
U
V /
( \
To define the path to the repository
[root@compl -]# vi /etc/yum.repos.d/CentOS-Base.repo
v )
f N
[core]
name=CentOS --base
baseurl=ftp://<self system ip>/pub/Packages
enabled=1
:wq
[root @comp1 -]# service vsftpd restart or
\ [root @compl -]# systemctl vsftpd enable /
0 119
Yum Configuration ZOOM
^TECHNOLOGIES
r N
Edit Yum file by providing yum server ip and directory name
[root @yum ~ ]# vi /etc/yum.repos.d/CentOS-Base.repo
v j
r
baseurl= ftp://<yum server ip>/pub/Packages
Enabled=1
\ J
r N
E 120
Network File System (NFS) ZOOM
TECHNOLOGIES,
0 121
Network File System (NFS) ZOOM
^TECHNOLOGIES
• NFS server
• NFS client
- A system that mounts the file resources shared over the network
0 122
NFS Requirements
• Installation packages
ZOOM
'J
^TECHNOLOGIES
nfs* • Service
- rpcbind* nfs
- rpcbind
• Port numbers
- 2049 nfs • Daemon
( \
Install the NFS packages
[root@nfsserver -]# yum install nfs* rpcbind* -y
v ^
0 123
NFS Client Configuration ZOOM
u
TECHNOLOGIES,
0 124
NFS Client Configuration ZOOM
'J
^TECHNOLOGIES
f
Enter into server share mount directory
[root@client1 -]# cd /mnt
V J
/ ■>\
Try to add data as a user
[root@client1 -]# mkdir client data{1..25}
v y
/ ■\
Check the user data in NFS server
[root@nfsserver -]# Is /project
\ y
0 125
Hostname Resolution ZOOM
'J
TECHNOLOGIES,
0 126
Hostname Resolution ZOOM
^TECHNOLOGIES,
LINUX
LINUX
127
Host File ZOOM
^TECHNOLOGIES
U
• The host file provides resolution of hostnames to IP addresses.
zoomgroup.com
(i LINUX
0 128
Host File Configuration ZOOM
U
^TECHNOLOGIES
'\
Add the entries required
Hostname Resolution
V
ZOOM
u
TECHNOLOGIES,
A
1
Ravi
Linux Clientl
192.168.0.1
0 129
ZOOM
Hostname Resolution
m root:* localhost
^TECHNOLOGIES
IS©®
'J
File Edit View Terminal Tabs Help
[root®clientl ~]#ping client2.zoomgroup.com
64 bytes from dient2.zoomgroup.com 192.168.0.2: icmp_seq-0 ttl-64 time-0.047 ms
64 bytes from client2.zoomgroup.com 192.168.0.2: icmp_seq-0 ttl-64 time^0.047 ms
64 bytes from client2.zoomgroup.com 192.168.0.2: icmp_seq-0 ttl-64 tinted).047 ms
64 bytes from client2.zoomgroup.com 192.168.0.2: icmp_seq-0 ttl-64 time-0.047 ms
[root®clientl -]#
addresses.
130
DNS Namespace ZOOM
'J
^TECHNOLOGIES
0 131
Zone ZOOM
U
^TECHNOLOGIES
sever 192.168.0.253
192.168.0.1 dientl
192.168.0.253 sever
f£ SA
A
J 'f
Ravi Linux Client 1 AM Linux Client 2
192.168.0.1 192.168.0.2
0 132
Records ZOOM
• SOA Record
- Start of Authority
• NS Record
- Name Server
• A Record
- Address
ZOOM
')
TECHNOLOGIES,
• CNAME Record
• PTR Record
- Pointer
• MX Record
- Mail Exchange
0 133
DNS Requirements ZOOM
U
^TECHNOLOGIES
- bind /var/named
- 53 DNS - named
• Configuration files
- /etc/named.conf
- /etc/named.rfcl912.zones
DNS Configuration
V
ZOOM
u
TECHNOLOGIES,
0 134
Installing DNS ZOOM
'J
^TECHNOLOGIES
Installing DNS
0 135
Configuration of named.rfcl912.zones ZOOM
'J
^TECHNOLOGIES
zone "zoomgroup.com" IN {
type master;
file “zoom.for";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
0 136
Configuration - Forward Lookup Zone
$TTL 86400
@ IN SOA dns.zoomgroup.com.
root.zoomgroup.com.(
0 serial (d. adams)
ID refresh
3H retry
1W expire
ID) minimum
IN NS dns.zoomgroup.com
dns IN A 192.168.0.252
clientl IN A 192.168.0.1
client2 IN A 192.168.0.2
WWW IN CNAME clientl
(i LINUX
0 137
Configuration - Reverse Lookup Zone
f \
ZOOM
U
^TECHNOLOGIES
IN NS dns.zoomgroup.com.
252 IN PTR dns.
1 IN PTR clientl.
2 IN PTR client2.
nameserver 192.168.0.253
0 138
Restart the Services ZOOM
'J
^TECHNOLOGIES
(
Restart the DNS service temporary
[root@dns -]# service named restart
v J
r "\
Restart the DNS service permanent
[root@dns -]# systemctl enable named
v J
/ ; \
To check the main configuration file
[root@dns -]# named-checkconf /etc/named.conf
v /
( \
To check the forward lookup zone file
[root@dns -]# named-checkzone zoomgroup.com
/var/named/zoom.for
r \
To check the reverse lookup zone file
[root@dns -]# named-checkzone zoomgroup.com
/var/named/zoom.rev
E 139
Checking the Configuration ZOOM
U
^TECHNOLOGIES
( \
Checking forward lookup
[root@dns -]# dig clientl .zoomgroup.com
[root@dns-]# dig client2.zoomgroup.com >
f \
Checking reverse lookup
[root@dns-]# dig -x 192.168.0.1
^ [root@dns ~]# dig -x 192.168.0.2
( \
Mount the remote file-system
[root@dns -]# ping clientl .zoomgroup.com
^ [root@dns ~]# ping client2.zoomgroup.com
Checking the Configuration ZOOM
U
^TECHNOLOGIES
( \
Checking forward lookup
[root@client1 -]# dig dns.zoomgroup.com
^ [root(g)client1 -]# dig client2.zoomgroup.com
/ ; \
Checking reverse lookup
[root@client1 -]# dig -x 192.168.0.2
^ [root@clientl ~]# dig -x 192.168.0.252
( \
Mount the remote file-system
[root@client1 -]# ping dns.zoomgroup.com
^ [root(g)clientl ~]# ping client2.zoomgroup.com
0 141
Unix / linux Based Mail Servers
• Sendmail
ZOOM
U
^TECHNOLOGIES
• Postfix
• Qmail
• Smail
• Exim
• Zimbra
0 142
How Mail Server Works? I ZOOM I
^TECHNOLOGIES^
C . httpV/192.168.0.252/webmail
.2 Mc*t !**«■! ^ Vttt-g Started *•_ l4t«» ►*•»!**«
W»h Mf? Nfi 04 lit G*nijp? mrrg *
Rrefox Start
Googkr
5«>":*i W the «*» O |I*Q*4 ftorn M-
| GoO#»Stq»C> 1
,f
i Cb feu Fceb»? We t ounl on ptopb Ik* you to » »crJ *i'»d ou»
>OU CblMp
*M-u1 M&2IU
Mail Server
192.168.0.25
zoomgroup.com
linux Client
192.168.0.1
0 143
How Mail Server Works? OM I
ZOOM
V^TECHN OLOGIES^
Name: |ravi
Password: «
Login
144
How Mail Server Works?
Drafts HCX “
Sent Suhjeci Test Mail
Trash Priority) Normal ~ Receipt: On Read I- On Delivery
Signature | Acdresses J Save Draft | Send | Check Spelling
Hello,
Regards
Ravi
Mail Server
192.168.0.25
zoomgroup.com
linux Client
192.168.0.1
0 145
How Mail Server Works? ZOOM
U
^TECHNOLOGIES
c
, .. >
-
0
'(■ Forward zone gmail.com mx record
zoomgroup.com
linux Client
192.168.0.1
0 146
How Mail Server Works? ZOOM
lJ
^TECHNOLOGIES
ZOOM
* MO/IIU
0W Et4L
Hr#f0H start Pag*
VW* Horary
M«/HU
bcshnvh
Nrffox
Tccii Hap
u
TECHNOLOGIES.
http://www.gmail.com
t-fcMlVWtad L«at* twin..
GOiiglr*
I ag>an«4 atJ'A
1
I rnHitr.it
5»ach © ttw w»b O page* from IniN*
[ Google Seardi ]
Do you ICKTQ Fitvfou? VVB count on poapia like you to spioad tha mord find out how
you con help
Aitcul Manila
0 147
How Mail Server Works? ZOOM
} Oman x
Go* >gle
John
[email protected]
Skjn In
NMKI help?
Google ♦ John
O El £
COMPOSE
a P rimary
Social
>300<)to~ RX| Cov LmhAdlf). SR.KAN
^
^
Promotions f-'-U.1".1*
OlOfftytnm ireo HDffC Ban* SBl Car
| Inbox (1.083)
Starred
import an*
Tom Test Mail. Hi John please find the attachment of Linux related project 11:49 am
sent Man
Drafts (IB)
► Circles
bag
Personal
Travel
More -
148
Postfix Requirements ZOOM
U
^TECHNOLOGIES
• Port Numbers
• Configuration File
- /etc/postfix/main.cf
DNS Server
■
Ravi
Clientl linux Client2
192.168.0.1 192.168.0.2
0 149
Mail Server Configuration ZOOM
'J
^TECHNOLOGIES
( ; \
Install the Postfix packages
[root@mailserver -]# yum install postfix* -y
\ /
0 150
Postfix Server Configuration ZOOM
VJECHN
])
OLOGIES
Cc:
[root@mailserver ~]#
0 151
Testing the Mail Server ZOOM
'J
^TECHNOLOGIES
f ^
To check if the mail has been received
[root@mailserver -]# su - ravi
[ravi@mailserver~]$ mail
V y
( \
Install the DNS packages
[root@dns -]# yum install bind* -y
v /
0 152
DNS Server Configuration ZOOM
lJ
^TECHNOLOGIES
0 153
DNS Server Configuration ZOOM
'J
^TECHNOLOGIES
( \
Copy with permissions the forward lookup zone file for editing
[root@dns -]# cd /var/named
[root@dns named]# cp -p named.localhost zoom.for
ft LINUX
0 154
DNS Server Configuration ZOOM
VJECHN
])
OLOGIES
nameserver 192.168.0.253
0 155
SquirrelMail ZOOM
V ')
TECHNOLOGIES,
Packages - tmpwatch
- squirrelmail*.rpm
- dovecot-*.rpm
- curl*
- php-5*
- perl-5*
- httpd*
- modssl*
- hunspell-en*
0 156
Mail Server Configuration ZOOM
^TECHNOLOGIES
V /
0 157
Postfix Server Configuration ZOOM
U
^TECHNOLOGIES
\
Change the below options
10: disable_plaintext_auth = no
100: auth_mechanisms = plain login
:wq!
0 158
Mail Server Configuration ZOOM
'J
^TECHNOLOGIES
/
Start the dovecot restart
[root@mailserver -]# service dovecot restart
V y
V y
0 159
Sending mails with Squirrelmail ZOOM
'J
^TECHNOLOGIES
A
To find send mail on GUI mode
[root@dns -]# firefox &
/
http://mail.zoomgroup.com
0 160
Unix / Linux Based Web Servers ZOOM
^TECHNOLOGIES 'J
• TUX - In-Kernel web server that supports only text.
Apache
• The application is available for a wide variety of operating systems, including Unix,
• The majority of all web servers using Apache are Linux web servers.
0 161
Web Browsing I ZOOM I
^TECHNOLOGIES^
http://www.zoomgroup.com ♦ • a-
*M <A**i + >tny)9imt»d ±. l4t«»
Rrefox Start
Googkr
I 1 *u>nual :§M1.
S» >w>i t») O p*g#9 ftom M -
| GoO#»Stq»C> 1
,f
i Cb jr»» ltr«» Fiwto*? We t ounl on pec pH- ike you to ;t"»>d » »crJ finil eu»
>0U 8*1 Nip
A-bcufl M&Hli
Webserver 192.168.0.253
zoomgroup.co
Linux Client
192.168.0.1 192.168.0.2
0 162
Web Browsing ZOOM
V^T^CHNOLOGIES
U
J l 0wr»:tw l-* ***
i.n9n » r*W
f C roorngroupcon ei-u £
i'i *«(» L &>*«•
Homo Oniino Training TrainingFAQ Projoctc Our Sorvicoc Nowc t Fvontc • Corporate Training Contact Uo
r lill’ fm>'M
We are total Network Security experts
Since 1996. Zoom Has Provided Futuristic And Reliable Security
it mg • T"
And Networking Solutions To Clients Spread
Across The Spectrum. •»
m ViVtVl
(i n'Kr
/ *****i rH%
• Packages
- httpd*.rpm
• Port Numbers
• Configuration File
- /etc/httpd/conf/httpd.conf
• Service / Daemon
- httpd
0 163
Configuration ZOOM
HJ
^TECHNOLOGIES
0 164
Apache Web Server Configuration ZOOM
'J
^TECHNOLOGIES
( \
Install the Apache packages
[root@webserver -]# yum install httpd*-y
\ y
0 165
Apache Web Server Configuration ZOOM
lJ
^TECHNOLOGIES
( ; \
Restart the web service temporary
[root@webserver -]# service httpd restart
\
C '
Restart the web service permanent
^
( \
Install the DNS packages
[root@dns -]# yum install bind* -y
v /
0 166
DNS Server Configuration ZOOM
lJ
^TECHNOLOGIES
zone "zoomgroup.com" IN {
type master;
file “zoom.for";
0 167
DNS Server Configuration ZOOM
'J
^TECHNOLOGIES
(
Copy the forward lookup zone file for editing
[root@dns ~]# cd /var/named
[root@dns named]# cp -p named.localhost zoom.for
V J
0 168
DNS Server Configuration ZOOM
VJECHN
])
OLOGIES
nameserver 192.168.0.252
0 169
Linux Client Configuration ZOOM
^TECHNOLOGIES
U
nameserver 192.168.0.252
0 170
Windows Client Configuration ZOOM
U
^TECHNOLOGIES
f >
To access the website
Configure the DNS IP address in the TCP/IP properties
Open a browser (Internet Explore, FireFox, etc).
In the URL address box type
http://www.zoomgroup.com or http://192.168.0.253
v J
<Directory /var/www/html>
AuthUserFile /etc/httpd/conf/htpasswd
AuthName "WebAuthentication"
AuthType Basic
Require valid-user
\^/Directory>
0 171
Authentication Configuration ZOOM
^TECHNOLOGIES
( \
Restart the web service temporary
[root@webserver -]# service httpd restart
v
( ' ^
Restart the web service permanent
[root@webserver -]# systemctl enable httpd
\ /
0 172
Linux Client Configuration ZOOM
])
TECHNOLOGIES
0 173
Virtual Hosting ZOOM
•J
^TECHNOLOGIES
• Hosting more than one website on a single server is called as Virtual Hosting.
Www.zoomgroup.coi
www.google.com
192.168.0.25CI
0 174
r
** UK i*" *fwv I«cfe **»*
• C - http://www.zoomgroup.com
Mc*t YWel Vttt-g Started i. l4t«»
Firefox Start
Googkr
tamri IIM±J
,f
i Cb jr»» icr«» Fc*b»? We t ounl on ptopb Ik* you to ;t"»>d » »crJ finil eu»
yOU
A-bcufl M&2IU
Web Server
192.168.0. 252
www.zoomgroup.coi
3
www.google.com ]
II LINUX
175
Web Browsing - Named Based Virtual Hosting ZOOM I
TECHNOLOGIES^
I. |
C L -cxyngrojp.con
(j
C . http://www.google.com * • G
A Mott ^ £_ l«ie* iVMhd
i Cte foil Frufca? W® count cm pocpk? !»>* you If :f»?J find «u> hiw
yQU CM Nip
At'i'Ul Mi'IlLl
0 176
Web Browsing - Named Based Virtual Hosting I ZOOM I
^TECHNOLOGIES^
Webserver 192.168.0.253
dns 192.168.0.252
Web Server
Webserver 192.168.0.253
C-o*
www.google.com
"““Y
Coogle
0 177
IP Based Virtual Hosting ZOOM
U
^TECHNOLOGIES
DNS Server
192.168.0.252
Web Server
www.zoomgroup.cor
192.168.0.253
www.google.com
192.168.0.254
Linux Client
192.168.0.1
http://www.zoomgroup.com a- -
A Mott ^ i. Ule*
|
W»k ! Ni r.t .-'TW Di li i *
Rrefox Start
Go^kr
5#t"^i
[ Goo^eSaatxti [
O ptfM ftCrriM.k
#
i Cb r»i F rub»? Wfe count on p*rpb you Hi :f«?j ,f
f find «u> hiw
yOUCMtolp
At'i-ul Mi'IlU
0 178
Web Browsing - IP Based Virtual Hosting I ZOOM I
^TECHNOLOGIES^
Webserver 192.168.0.253
dns 192.168.0.252
Web Server
Webserver 192.168.0.254
dns 192.168.0.252
www.zoomgroup.cor
192.168.0.253
www.google.com
192.168.0.254
Ravi
Linux Client
192.168.0.1
4- C i zoo'ngrojp.con
r i09t |
Products Frw Online Training D.mo Testimonials C Brochur* Franchisee
Horn® Online Training Training FAQ Projectc Our Services News t Events • Corporate Training Contact Us
E 179
Web Browsing - IP Based Virtual Hosting I ZOOM I
^TECHNOLOGIES^
Googkr
tamri IIM±J
5« >^| <*■' thw *#t> C |I»Q»4 l»orn M*
| GoO#»Stq»C> 1
,f
i Cb fon itr*e Fceb»? We t ounl on ptopb Ik* you to » »crJ *i'»4 eu»
>0U C*»lMp
*M-u1 M&2IU
ZOOM
Web Browsing - IP Based Virtual Hosting
u
TECHNOLOGIES,
www.zoomgroup.coi
i
192.168.0.253
www.google.com
192.168.0.254
(i LINUX
180
Web Browsing - IP Based Virtual Hosting ZOOM
^TECHNOLOGIES
(_Oori^on<h \ inoFeoiif-BlnOy ,
Soared (• thowoto C paqcc from lodia
NVn '-in
0 181
Web Browsing - Port Based Virtual Hosting I ZOOM I
^TECHNOLOGIES^
Rrefox Start
<&
Googkr
,f
i Cb fun Frub»? We t ounl on pec pi? Ik* you l« ?t"»>d » »crl find cut *»»•
>OU CblMp
M&2IU
Webserver 192.168.0.253
ZOOM
u
TECHNOLOGIES,
Web Server
c? $
SJ. oV
« A°
192.168.0.253
.t°o^°
0 .
. ..
192 168 0 253:5001
Linux Client
192.168.0.1
0 182
Web Browsing - Port Based Virtual Hosting ZOOM
.TECHNOLOGIES,.
4- C J] zoomgroup.cofn <&•& B
i:: Appc fmpire
Homo Online Training Training FAQ Projects Our Services News & Events • Corporate Training Contact Ua
?
11'H * ‘
rindows
-Mti Tgs to activate Wmticv.
ZOOM
Web Browsing - Port Based Virtual Hosting
V ')
TECHNOLOGIES,
Goo^kr
i Cb foil ltr^» Frpb»? We count cm poopb Ike you If :f»?J '*? »crJ find «u>
yQU CM Ml*
At'i'Ul Mi'Iltl
0 183
Web Browsing - Port Based Virtual Hosting OM I
ZOOM
V^TECHN OLOGIES^
Webserver 192.168.0.253
dns 192.168.0.252
Web Server
O00
.1°’
192.168.0.253:5000
Ravi
Linux Client
192.168.0.1
ZOOM
Web Browsing - Port Based Virtual Hosting
[ Onfcne CCAlP Training Ic *«
TECHNOLOGIES,
')
CD zoomgroup.con GL-a =
i* *pp« l
Product* Free Online Training Dtmo Testimonials E-Brochure Franchisee
Home Online Training Training FAQ Projects Our Services News & Events Corporate Training Contact Us
m e 31 li m % 3
CM 4 3
0 V11/2014
184
Name Based Virtual Hosting ZOOM
U
^TECHNOLOGIES
DNS Server
192.168.0.25
Web Server
192.168.0. 253
vww.zoomgroup.co
3
www.google.com
( \
Install the Apache packages
[root@webserver -]# yum install httpd* -y
v /
0 185
Name Based Virtual Hosting Configuration ZOOM
U
^TECHNOLOGIES
n LINUX
(?.<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html
ServerName www.google.com
Directorylndex google.html
y</VirtualHost>
0 186
Name Based Virtual Hosting Configuration ZOOM
^TECHNOLOGIES
( \
Restart the web service
[root@webserver-]# service httpd restart
v /
/ \
Install the DNS packages
[root@dns -]# yum install bind* -y
v /
0 187
DNS Server Configuration ZOOM
lJ
^TECHNOLOGIES
0 188
DNS Server Configuration ZOOM
'J
^TECHNOLOGIES
( \
Copy with permissions the forward lookup zone file for editing
[root@dns -]# cd /var/named
[root@dns named]# cp -p localhost.zone zoom.for
0 189
DNS Server Configuration ZOOM
'J
^TECHNOLOGIES
( \
Copy with permissions the forward lookup zone file for editing
[root@dns -]# cd /var/named
[root@dns named]# cp -p named.localhost google.for
"X
Edit the configuration file \
[root@dns named]# vi google.for
0 190
DNS Server Configuration ZOOM
U
^TECHNOLOGIES
nameserver 192.168.0.252
0 191
Linux Client Configuration ZOOM
U
^TECHNOLOGIES
www.google.com
192.168.0.254
(i LINUX
0 192
Assign Virtual IP Address ZOOM
'J
^TECHNOLOGIES
( ^
Assigning virtual IP address
[root@webserver -]# nmtui
[root@webserver~]# service network restart
V _ J
<VirtualHost 192.168.0.251:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html
ServerName www.google.com
Directorylndex google.html
</VirtualHost>
0 193
5
Based Virtual Hosting Configuration ZOOM
'J
^TECHNOLOGIES
( \
Restart the web service
[root@webserver -]# service httpd restart
v )
i. LINUX
0 194
DNS Server Configuration ZOOM
'J
^TECHNOLOGIES
r
To check the resolution
0 195
Port Based Virtual Hosting ZOOM
U
^TECHNOLOGIES
DNS Server
192.168.0.252
192.168.0.253:5000
Linux Client
192.168.0.1
0 196
Port Based Virtual Hosting Configuration ZOOM
lJ
^TECHNOLOGIES
(ftLISTEN 9000
<VirtualHost 192.168.0.251:9000>
ServerAdmin [email protected]
DocumentRoot /var/www/html
ServerName www.google.com
Directorylndex google.html
V^</VirtualHost>
( \
Restart the web service
[root@webserver -]# service httpd restart
v )
( ' N
Restart the web service permanent
[root@webserver -]# systemctl enable httpd
v )
0 197
Linux Client Configuration ZOOM
U
TECHNOLOGIES
0 198
Webmin ZOOM I
^TECHNOLOGIES^
• Webmin is a 3rd party Graphical User Interface (GUI) tool used for Linux /Unix system
and network administration.
• Download the file from internet or copy it from any media in /opt directory.
0 199
Webmin access ZOOM
u
^TECHNOLOGIES
( \
To access Webmin
Open a web browser and type http://localhost:10000
v y
Password
- i OJI
0 200
Webmin Installation
-**» Applications
History
System
Webmin Installation
*
pile
Applications
Edit View
Places
History
System
a
ZOOM
U
^TECHNOLOGIES,
201
Webmin Installation
£ile
Applications
£dit Y»ew
Places
History
System «£&
( \
To uninstall Webmin
[root@server -]# sh /etc/webmin/uninstall.sh
L /
202
MCSE-2012 FUII Course
MICROSOFT CERTIFIED SOLUTIONS EXPERT
Practicals in real-time environment. Detailed curriculum with all 5 papers
Duration: 1 Month | 4 Hrs Per Day (starts on 30* of every month)
Batches: Morning: 8.30 to 10.30 • Afternoon: 2.00 to 4.00 • Evening: 7.30 to 9.30 \
CCNA (v 2.0) Full Course
CISCO CERTIFIED NETWORK ASSOCIATE Complete Package
Cisco Routers with BSNL/TELCO MUX & Live Channelised El for Only
Duration: 1 Month | 4 Hrs Per Day (starts on 30* of every month)
Batches: Morning: 8.30 to 10.30 • Afternoon: 2.00 to 4.00 • Evening: 7.30 to 9.30
Fees: ? 5,900/-
+ 14% Service Tax
Practicals on Live Web Administration + Integration of Windows with Linux/Unix (Samba Server)
Duration: 3 Months
Duration: 2 Weeks | 4 Hrs Per Day (starts on is* &30,h of every month) 4 Hrs Per Day
Batches: Morning: 8.00 • Afternoon: 1.30 • Evening: 7.00
I'.'iilillWIliJJiJIhAHiWIlWjWlllliltWIi: 100%
►/
• Ethical Hacking, Cyber Security and Firewall • Open Source: A glimpse into advance Linux
• VMware vSphere and MS Private Cloude • Cisco WAN Technology & Collaboration
CCNP R&S
rcisco CERTIFIED NETWORK PROFESSIONAL^
Duration: 1 Month | 4 Hrs Per Day (starts on 15th of every month)
Batches: Morning: 7.30 • Afternoon: 2.00 • Evening: 6.00 Fees: ^ jBfOCG/;
• Labs on latest routers with IOS version 15.X Introductory Special Offer
Monitoring, Diagnostics & Troubleshooting Tools
• PRTG • Wireshark • SolarWinds, etc.
Fees: ? 5,500/-
+ 14% Service Tax
Exam Practice Challenge Labs
CCIE R&S
tcisco CERTIFIED INTERNETWORK EXPERT
Duration: 1 Month | 4 Hrs Per Day (starts on is1" of every month)
Batches: Morning: 7.30 • Evening: 6.00
• Individual Rack For Every Student Fees: ?
• Real time scenarios by 20+ years experienced CCIE certified industry expert who
has worked on critical projects worldwide. Introductory Special Offer
Written + Lab Exam Focus Fees: ? 9,999/-
FREE Full Scale 8 Hours Exam Lab Included + 14% Service Tax
Unlimited Lab Access For 1 Year
Fees: ? 2,500/-
1
Duration: 2 Weeks | 4 Hrs Per Day (starts on is* & 30* of every month) + 14% Service Tax
Batches: (Contact the Counselors for the next available batch)
Fees: 2,500/-
Duration: 2 Weeks | 4 Hrs Per Day + 14% Service Tax
Batches: (Contact the Counselors for the next available batch)
Fees: ? 2,500/-
Duration: 2 Weeks | 4 Hrs Per Day (starts on 15* & 30* of every month) + 14% Service Tax
Batches: (Contact the Counselors for the next available batch)
We also offer the following courses (Contact the Counselors for the next available batch)
► CCNA Voice @ ^7,500/- ► CCNA Data Center @ ^7,500/-
► CCNP Voice @ ?9,500/- ► CCNP Data Center ?9,500/-
► CCIE Collaboration @ 5,500/- ► CCIE Data Center 5,500/-
► IPv6 Migration @ ^5,500/-
► All Senior Engineers of Zoom working on Live projects
FACULTY * Training Engineers of British Army, CISCO, CMC, GE, BSNL, Tata Teleservices and
Several Corporates etc for 18 Years.
www.zoomgroup.com
FREE Training
Zoom Technologies offers a number of free resources for the professional development of network
engineers.
Register on our website to get access to the video recordings of live sessions on:
Like us on Facebook and get access to free online webinars as well as special offers and discounts.
https://www.facebook.com/ZoomTechnolgies
Online Training
Online Training at Zoom is a cost effective method of learning new networking skills from the
convenience of your home or workplace.
Taking an online training course has many advantages for everyone (Freshers / Working Professionals).
Zoom offers online training for the highly coveted CCNA, CCNP and CCIE courses as well as MCSE,
Linux, VMware, Ethical Hacking and Firewalls, IPv6 with more courses planned for the near future.
These are live instructor led courses, using Cisco WebEX. Check out our online course offerings at:
http://zoomgroup.com/online_course
Job Opportunities
There is a high demand for network and security professionals at all times. Apart from job opportunities
in India and the Middle East, network and security administrators are also sought-after in the US and
Europe.
If you do not have the right skills, then get them now! Choose the experts in network and security
training, an organization which has already trained over one hundred thousand engineers.
For the latest job openings in networking and security, register and upload your resume on:
http://zoomgroup.com/careers or visit zoom to choose job offering from several multinational
companies.
0
ABOUT US
ZOOM Technologies India Pvt. Ltd. is a pioneering leader in network and security train-
ing, having trained over a hundred thousand engineers over the last two decades.
We offer a world class learning environment, with state-of-the-art labs which are fully
equipped with high-end routers, firewalls, servers and switches. All our courses are
hands-on so you'll get much needed practical experience.
The difference between us and the competition can be summed up in one simple sen-
tence. Our instructors are real-time network professionals who also teach.
Zoom has designed, developed and provided network and security solutions as well as
training to all the big names in the Indian industry, for the public sector as well as corpo-
rate leaders. Some of our clients are:
TATA
BSNL
VSNL
Indian Railways
National Police Academy
Air Force Academy
IPCL- Reliance Corporation
CMC
British Army
No other training institute can boast of a customer base like this. This is the reason for
the resounding success of our networking courses. If you do not have the right skills, then
get them now. Come, join the experts!
Phone: +91 40 23394150 Phone: +91 40 39185252 Phone: +91 40 27802461 Phone: +91-40-24140011
Email: [email protected] Email: [email protected] Email: [email protected] Email: [email protected]
website: www.zoomgroup.com