LINUX - Lab Manual - Text
LINUX - Lab Manual - Text
TECHNOLOGIES
Lab Manual
0
LINUX
System Administration
Lab Manual
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
Introduction
This lab manual has been designed as a supplement to the Linux Server
Administration course offered by Zoom Technologies.
It has been written in a simple and easy style, with plenty of screenshots wherever
required and the syntax clearly given before each command. As with our other lab
manuals, we have used the same structure for these exercises, with each exercise
divided into five sections:
1. Objective
2. Topology
3. Prerequisites
4. Configuration
5. Verification / Result
We hope that this will serve as a useful guide to the Linux professional, not only
during the course but in actual implementation at the workplace. We have tried to
ensure that no errors or mistakes creep in, but suggestions and feedback to improve
this manual are always welcome.
0
ZOOM
TECH NOLOGIES
Table of Contents
LAB 7: PERMISSIONS 47
LAB 17: BACKUP AND RESTORE USING TAR AND FILTER THE ARCHIVE THROUGH GZIP(-z) 104
LAB 18: BACKUP AND RESTORE USING TAR AND FILTER THE ARCHIVE THROUGH BZIP2(-j) 107
www.zoomgroup.com
0
ZOOM
\JECH NOLOGIES/
www.zoomgroup.com
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
CentOS 7
Install CentOS 7
Test this media & install CentOS 7
Troubleshooting >
0
ZOOM
TECH NOLOGIE!
1 Disc Found |
|g|
<Tab>/<ftIt-Tab> between elements I <Space> selects I <F1Z> next screen
0
8 . Verify installation language e.g.: English and click next
CENTOS 7 INSTALLATION
ESS us
WELCOME TO CENTOS 7.
What language would you like to use during the installation process?
Quit Continue
9. Make sure it is the right installation language e.g. English and click next
Arabic
Assamese («P^XT)
Bengali <«3T**n)
Bengaii(lndia) (*nF5)>
Bulgarian (6t>nrapcK»)
Catalan <Catalk)
Chinese{Simplihed) (*+*?? ( )
ChineseTTVaditional) (£05) )
Croatian (Hrvatski)
Czech (CeStirva)
Danish (Dansk)
Dutch (Nederland* I
English (English)
Estonian leesti keel)
Finnish (suomi)
French (Ftarx;ais)
German (Dent sc h)
Greek (EAArivruH)
Gujarati (^irtirfl)
Hebrew (nnzy)
Hindi (T9^t)
Hungarian (Magyar)
Icelandic (Icelandic)
lloko (lloko)
Indonesian (Indonesia)
J*m 11 ■ ■ *■*-»* » JU
flack [
CentOS LOCALIZATION
LANGUAGE SUPPORT
English (United States)
SOFTWARE
SYSTEM
Quit
I'Ve tv<OT*t touch your dukt until you click 'Beg//? !nitsll*tion'>
^ Plea*, e omplete item* marked with tht* icon before continuing to the next step
11. Select time zone e.g. Asia Kolkata and click next
AAA
1 O 24-hour
2:01 AM/PM
October V 7 v 2014 Nr
V V V
Device: srO
C V
Label CentOS_7_>86_64 "
On the network.
Additional repositories
http // v
Proxy URL:
Uvrnnme:
£
+
Password!
13. Select Hard disk—>"l will configure partitioning" and click next
Device Selection
Select the device(s) you'd like to install to. They will be left untouched until you click on the mair
“BeginInstallation* button.
Local Standard Disks
34.81GB
Add J disk...
Partitioning
Full disk summary and hootloadf 1 disk selected, 34. 81 GB capacity; 34 81 GBfr
New rrount points will ucc the fot^ N*or e cuslomnaliun op t <_>i is die available
artitioning schem
after creating the mount point below.
LVM JI CentOS 7 in si
Mount Point: /boot
Desired Capncity
Note: Follow the same procedure for all the other partitions required.
DATA
/home 2 GB Name: | cda7
*da6
Mount Point:
SYSTEM
/boot 500 MB Label:
sdal
Desired Capacity: 1 GB
/var lO GB
sdaS
Device Type: Standai d Partition Encrypt
/ lO GB
sda2 Fit*? System! iwap
/uxr lO GB
sda3
+ - H c B
Hostname: centos7.zoom.com
DHCP client ID
Routes...
0
20. Provide a root password and click forward
The root account is used for administering the system. Enter a password for the root user.
Root Password:
Weak
Confirm:
You have provided a weak password: The password fails the dictionary check - it is based on a dictionary word. Press
Done again to use anyway.
Welcome
License
Information
Create User
* Create User 'ibu must create a username' for regular (non administrative) use of your
system To create a system 'username*. please provide the ^formation
Date and Time
requested below
Kdump
iisemame:
Ful Name:
password:
Confirm Password:
if you need more control when creating the user (specifying home
directory, and/or UlD). please click the Advanced button.
Advanced...
Back | forward I
USER SETTINGS
Complete!
CentOS i& now luctetfcfully instilled on your fcyitem and ready for you to use’ Go ahead end reboot to
start using it!
Reboot
i-jj Use of this product is subject to the license agreement found at /usr/share/centos-release/EULA
Kdump
Kcfcmp it a kernel crash dumping me hanitrr in the even! of a system
cr«l tdunrp ■«! capture nforrrationlrornycur system that car be
n.-a jat*« ir determrsng the cause o# the crash Note that kdurrp does
r
vat*"e reserwig a portion ot system memory that t>« unavailable for
other uses
i/ doable Mump 7
0
ZOOM
TECH NOLOGIE!
zoom
Not ii.i«n
0
Verification
Cancel Unlock
P*ir«ora
Cancel 0 Sign In
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
Syntax:
Result:
/root
Syntax:
[root@localhost~]# Is <option>
[root@localhost ~]# Is
Result:
[root@localhost ~]# Is -I
Result:
total 76
#### OR ####
0
ZOOM
.TECHNOLOGIES.
[root@localhost ~]# II
Result:
total 7624
-rw . 1 root root 1805 Aug 18 06:31 anaconda-ks.cfg
-rw . 1 root root 8605696 Aug 30 22:56 core.5864
drwxr-xr-x. 2 root root 4096 Aug 2114:16 Desktop
drwxr-xr-x. 2 root root 4096 Aug 2114:16 Documents
drwxr-xr-x. 2 root root 4096 Aug 2114:29 Downloads
-rw-r--r--. 1 root root 1856 Aug 20 09:31 initial-setup-ks.cfg
drwxr-xr-x. 2 root root 4096 Aug 2114:16 Music
drwxr-xr-x. 2 root root 4096 Aug 2114:29 Pictures
drwxr-xr-x. 2 root root 4096 Aug 2114:16 Public
drwxr-xr-x. 2 root root 4096 Aug 2114:16 Templates
drwxr-xr-x. 2 root root 4096 Aug 2114:16 Videos
[root@localhost ~]# Is -a
Result:
[root@localhost ~]# Is D*
Result:
6. To see a file or folder whose length is of 6 characters, where ? is used to match any single
character
Result:
Public Videos
0
ZOO IV
TECH N OLOG IE
Syntax:
Syntax:
Result
Syntax:
Verification:
0
ZOOM
TECH NOLOGIES
Syntax:
Verification:
[root@localhost ~]# Is
Advanced Linux anaconda-ks.cfg CCIE CCNP CCNA Desktop Downloads Documents initial-
Syntax:
Verification:
[root@localhost ~]# Is
Advanced Linux anaconda-ks.cfg CCIE CCNP CCNA Desktop Downloads Documents initial-
Syntax:
Verification:
[root@localhost ~]# Is
0
ZOOM
.TECHNOLOGIES.
Syntax:
-p (parent directory)
Result:
linuxtech:
clusters
linuxtech/clusters:
san
linuxtech/clusters/san:
Idap
linuxtech/clusters/san/ldap:
nagios
linuxtech/clusters/san/ldap/nagios:
samba
linuxtech/clusters/san/ldap/nagios/samba:
Syntax:
Verification:
0
ZOO IV
TECH N OLOG IE
Verification:
/root/linuxtech/clusters/san/ldap/nagios
Verification:
/root/linuxtech/clusters/san
[root@localhost san]# cd
Verification:
/root
[root@localhost ~]# cd -
Result:
/root/linuxtech/clusters/san
Verification:
/root/linuxtech/clusters/san
0
ZOOM
.TECHNOLOGIES.
Syntax:
[root@localhost san]# cd
Verification
[root@localhost ~]# Is
Note:
Syntax:
Verification :
[root@localhost ~]# Is
Note:
0
ZOOM
.TECHNOLOGIES.
22. To remove a directory along with all sub directories and files forcefully
Syntax:
Verification:
[root@localhost ~]# Is
Note:
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
To operate the Linux Operating System using basic commands like copy, paste, move, etc.
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
Syntax:
Result:
3. To copy folders
Syntax:
-r (recursive)
-v (verbose)
-p (permissions)
Result:
Verification:
0
ZOOM
.TECHNOLOGIES.
Syntax:
Verification
[root@localhost ~]# Is
Ethical Hacking initial-setup-ks.cfg Templates mcse Music Public Pictures Videos zoomtech
Syntax:
Verification
CCNA
Syntax:
Verification
/etc/passwd:root:x:0:0:root:/root:/bin/bash
Verification
NameTvpe
Desktop Directory
anaconda.cfg ASCII text
filel ASCII text
0
ZOOM
TECH N OLOG IE!
CCIE Empty
Syntax:
-s (string)
Result:
[root@ local host ~]# date -s "sat Aug 15 10:20:10 ist 2015"
Verification:
Day/mm/dd/hh:mm:ss/year
## OR ##
Syntax:
Syntax:
0
ZOOM
.TECHNOLOGIES.
Result:
/root/anaconda-ks.cfg
Syntax:
Result:
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
1. Modify the file by using vi command
Syntax:
[root@localhost~]# vi <filename>
[root@localhost~]# vi zoomfile
l,$s/<findword>/<replaceword>/gc
: l,$s/world/u niverse/gc
1-- To start the search at from 1st line
$ -> End of File
s -> substitute
g -> global
c -> confirmation
0
ZOOM
TECH NOLOGIES
dd - Deletes a line
2dd - Deletes 2 lines
yy - Copy a line
2yy - Copies 2 lines
p - put (deleted or copied text)
u - Undo (can undo 1000 times)
Ctrl+r - Redo
G - Moves cursor to last line of file
5G - Moves cursor to 5th line of file
Shift+ZZ - save and quit
/<find word> - locate word
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
TECH NOLOGIES
Syntax:
Result:
Tom: x: 1000:1000:/home/Tom:/bin/bash
Result:
rtkit:x:172:172:RealtimeKit:/proc:/sbin/nologin
radvd:x:75:75:radvd user:/:/sbin/nologin
chrony:x:994:993::/var/lib/chrony:/sbin/nologin
pulse:x:171:171:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
gdm:x:42:42::/var/lib/gdm:/sbin/nologin
gnome-initial-setup:x:993:991::/run/gnome-initial-setup/:/sbin/nologin
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
Tom:x:1000:1000::/home/Tom:/bin/bash
Result:
root:x:0:0:root:/root:/bin/bash
bin:x:l:l:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:ll:0:operator:/root:/sbin/nologin
0
ZOOM
.TECHNOLOGIES.
Syntax:
Result:
Tom:$6$IWiNPPn9$uBA.bikWMOG7Z/VI.JOAZoYOzW07yph.3WzltdX2.urlqEchlxTIOPpWvpEQ5
RZrm7rVm.ltB6rxhdPy/AWcN 1:16677:0:99999:7:::
0
Verification:
Tom
Ctncfl O Sign In
0
ZOOM
TECH NOLOGIE!
Keep Aligned
Note: To check Tom user data move to root user console by using ctrl+alt+fl and check in his
home directory.
Verification:
0
Modifying an existing user's properties
Syntax:
Syntax:
Verification:
[root@localhost~]# su - Tom
[Tom@localhost~]$ id
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.cl023
[Tom@localhost~]$ exit
logout
Syntax:
Verification:
0
ZOOM
TECH N OLOG IE!
Syntax:
Copying bash files from default directory into user home directory
Verification:
[root@localhost~]# su - Tom
[Tom@localhost~]$ pwd
/salesdept/Tom
[Tom@localhost~]$ exit
logout
Syntax:
Verification:
0
ZOOM
TECH N OLOG IE!
[root@localhost~]# su - Tom
$ echo $SHELL
/bin/ksh
$ exit
logout
Syntax:
Verification:
Note: User home directory will not be changed, only username will change
Result:
John
PAVAfOia
CancH (’ hi
Syntax:
0
ZOOM
TECH NOLOGIE!
Verification:
John:!$6$xylJN65M$iK6FLYNX01DcBfmnc9Ea23MljYdggkdpwMH7qcA3m4ZrP0dgKmlhDqr8Zh
Y6gkmNy3scVrqazV2DjVvh.JZFL/: 16677:0:99999:7:::
Result:
Username John not displayed because that account has been locked
HxiM-H 0*0
Syntax:
Verification:
John:$6$xylJN65M$iK6FLYNX01DcBfmnc9Ea23MljYdggkdpwMH7qcA3m4ZrP0dgKmlhDqr8Zh
Y6gkmNy3scVrqazV2DjVvh.JZFL/: 16677:0:99999:7:::
Note: (l)Exclamation mark will be removed once the user account is unlocked.
0
ZOOM
TECH NOLOGIE!
Result:
Username John is displayed and by using that name user John can login
MonOO-SO O « O
John
0
ZOOM
TECH NOLOGIES
Syntax:
Verification:
Ali:x:2002:1003:Admin:/salesdept/Ali:/bin/csh
Syntax;
Verification:
Result:
Syntax:
Verification:
Result:
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOO IV
TECH N OLOG IE
Syntax:
Verification:
zoomtech:x:1000:
Syntax:
Verification:
zoomtech :$6$KoqFT/.FII$TKrAHtcPHa7iEvOc/YG7AvBeELtngSRZWWzxxOODc/rOKlNyi5wfekM
wqdl0HNz5.NDCAIty6wghkCC2ld6J70::
Syntax:
Verification:
zoomgroup:x:1000:
0
ZOO IV
TECH N OLOG IE
Syntax:
Verification:
zoomgroup:x:1000:jack
Note: Before you add user into group create some users
Syntax:
Verification:
zoomgroup:x:1000:jack;sam;wiliam
Syntax:
0
ZOOM
.TECHNOLOGIES.
Verification:
zoomgroup:x:1000:jack;sam,wiliam,ravi
Syntax:
Verification:
[Ali@localhost~]$ id
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.cl023
Syntax:
Verification:
zoomgroup^lOOCkjackjSarrvavi
0
ZOOM
.TECHNOLOGIES.
9. Deleting a group
Syntax:
Note: If group contains any primary member, it cannot be deleted unless the gid of that
member is changed.
Verification:
0
ZOOM
TECH N OLOG IE!
LAB 7: PERMISSIONS
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
1. Adding a new directory(folder)
Result:
root
5. Set write permissions to the group level only by using Symbolic Mode
Syntax:
Verification:
Verification:
0
ZOOM
TECH NOLOGIES
7. Assign read, write and execute permissions to others only by using symbolic mode
Verification:
8. Assign execute permissions to owner, group and others by using symbolic mode
Verification:
9. Remove write and execute permissions from group and others also.
Verification:
Syntax:
Verification:
11. Assign full permissions to owner, group and others on admin directory using Absolute Mode
#### OR #####
12. Assign full permissions to owner, group and others on admin directory using Symbolic Mode
0
ZOOM
.TECHNOLOGIES.
13. To find result, add a normal user and try to access file as a normal user
Verification:
Verification:
Note: user can read and write in file because file is having read and write permissions on
other level
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
To assign permissions for files/folders belonging to different users and groups using Access Control
Lists.
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
tom:x:1000:1000::/home/tom:/bin/bash
jack:x:1001:1001::/home/jack:/bin/bash
john:x:1002:1002::/home/john:/bin/bash
ali:x:1003:1003::/home/ali:/bin/bash
ravi:x:1004:1004::/home/ravi:/bin/bash
ram:x:1005:1005::/home/ram:/bin/bash
Verification:
salesgrp:x:1006:ali,ravi,ram
0
ZOOM
.TECHNOLOGIES.
Syntax:
Syntax:
Syntax:
Verification:
# file: zoom
# owner: root
# group: root
user::rw-
user:tom:rw-
user:jack:r--
usenjohn:—
group::r--
group:salesgrp:rw-
mask::rw-
other::r--
0
ZOOM
.TECHNOLOGIES.
Syntax:
Verification
# file: zoom
# owner: root
# group: root
user::rw-
user:jack:r--
user:john:—
group::r--
group:salesgrp:rw-
mask::rw-
other::r--
Result:
Result:
Note: Similarly login as different users and group members to test the Access List.
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
Syntax:
Verification
[root@localhost~] su - sam
Result:
Result:
0
ZOO IV
TECH N OLOG IE
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
1. Create a group
Verification
Techgrp:x:1000:kumar,vali
Syntax:
Verification:
[root@localhost~] su - vali
0
ZOOM
.TECHNOLOGIES.
Result:
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
TECH NOLOGIES
Syntax:
Result:
0
ZOOM
.TECHNOLOGIES.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
Syntax:
Verification:
No error message means updated successfully
0
ZOOM
TECH NOLOGIES
Syntax:
Result:
mke2fs 1.42.9 (28-Dec-2013)
0
ZOOM
.TECHNOLOGIES.
########## OR ##########
Result:
Result:
Syntax:
0
ZOOM
.TECHNOLOGIES.
[root@clientl linux]#
[root@clientl linux]# Is
0
ZOOM
TECH NOLOGIE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
Result:
total used free shared buffers cached
Mem: 979 918 61 1 0 55
-/+ buffers/cache: 862 117
Swap: 1999 1173 826
Hex code (type L to list all codes): 82 (assigning swap code value)
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
0
ZOOM
TECH NOLOGIES
Syntax:
Verification:
Syntax:
Result:
no label, UUID=0b6c9b8f-b4a9-45bf-bf90-14a076cd334e
0
5. Turn on the swap partition
Syntax:
Result:
Filename Type Size Used Priority
/dev/sda7 partition 2047996 1225984
/dev/sda9 partition 1952764 0
Verification
Result:
0
LAB 13: DISK LABEL
OBJECTIVE:
To Label a Disk
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
Syntax:
Syntax:
Result:
/songs
Syntax
Result:
wq:
0
ZOOM
TECH NOLOGIES
Result:
Syntax:
Result:
4096
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
Result:
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
0
ZOOM
.TECHNOLOGIES.
Syncing disks.
Verification:
Verification:
/dev/sdal * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 21506047 10240000 83 Linux
/dev/sda 3 21506048 37890047 8192000 83 Linux
/dev/sda4 37890048 81788927 21949440 5 Extended
/dev/sda5 37894144 54278143 8192000 83 Linux
/dev/sda 6 54280192 58376191 2048000 83 Linux
/dev/sda7 58378240 62474239 2048000 82 Linux swap / Solaris
/dev/sda8 37892096 37894143 102400 83 Linux
/dev/sda9 62476288 66381823 1952768 82 Linux swap / Solaris
/dev/sdalO 66383872 66588671 102400 83 Linux
Syntax:
0
ZOOM
.TECHNOLOGIES.
Result:
(rw;relatime,seclabel;quota,usrquota;grpquota;data=ordered)
Result:
Syntax:
-c (create)
-u (user level)
-g (group level)
-v (verbose)
subtracted.
quotacheck: Checked 2 directories and 0 files
quotacheck: Old file not found,
quotacheck: Old file not found.
Verification:
0
ZOOM
\TECH N OLOG IES
Syntax:
Verification:
Syntax:
Verification:
Syntax:
0
ZOOM
.TECHNOLOGIES.
Result:
[tom@localhost salesdept]$ II
Result:
Result:
0
ZOOM
TECH NOLOGIES
17. Apply quota on a group salesgrp which has sai and ram as primary members
Syntax:
Result:
/dev/sdalO 0 0 0 5 3 5
18. To check result, try to add data as the group member sai
exit
Result:
0
ZOOM
.TECHNOLOGIES.
[ram@localhost salesdept]$ II
total 36
[ram@localhost salesdept]$
0
LAB 15: LOGICAL VOLUME MANAGER (LVM)
OBJECTIVE:
To resize block storage i.e logical volumes on harddisk, partitions, or SAN storage.
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
Syntax:
Syntax:
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
0
ZOOM
TECH NOLOGIES
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
Syntax:
Verification:
0
ZOOM
TECH NOLOGIES
Verification:
Syntax:
Result:
Syntax:
0
ZOOM
\TECH NOLOGIES/
Result:
Syntax:
Result:
Syntax:
[root@localhost ~]# vgdisplay
0
ZOOM
TECH N OLOG IE
[root@localhost ~]#vgdisplay
Verification
— Volume group —
VG Name zoomgroup
System ID
Format Ivm2
Metadata Areas 2
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 592.00 MiB
PE Size 4.00 MiB
Total PE 148
Alloc PE / Size 0/0
Free PE / Size 148/592.00 MiB
VG UUID UjE4o2-pTnn-27cA-Mo8n-017W-zvQg-zLm2xATo create logical Volume
Syntax:
<logical_volume_name>
-L logical volume
Result:
0
ZOOM
.TECHNOLOGIES.
Syntax:
Verification:
— Logical volume —
LV Path /dev/zoomgroup/lvl
LV Name Ivl
VG Name zoomgroup
LV UUID dPTAZW-BWck-YsbO-feSU-XUYF-EYn7-PA9GQf
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2015-08-31 13:36:39 +0530
LV Status available
# open 0
LV Size 300.00 MiB
Current LE 75
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0
0
ZOOM
.TECHNOLOGIES.
Verification:
Syntax:
[root@ local host ~]# Ivresize -L <+size_of_logical_volume> -n <logical_volume_name>
Result:
Extending logical volume Ivl to 400.00 MB
Logical volume Ivl successfully resized
Verification:
— Logical volume —
LV Path /dev/zoomgroup/lvl
LV Name Ivl
VG Name zoomgroup
LV UUID dPTAZW-BWck-YsbO-feSU-XUYF-EYn7-PA9GQf
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2015-08-31 13:36:39 +0530
LV Status available
#open 1
0
ZOOM
.TECHNOLOGIES.
[root@localhost mylvm]# Is
lost+found
[root@localhost ~1# df -h
Result:
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 5.7G 68M 5.3G 2%/
devtmpfs 1.5G 0 1.5G 0%/dev
tmpfs 1.5G 80K 1.5G 1%/dev/shm
tmpfs 1.5G 9.0M 1.5G 1%/run
tmpfs 1.5G 0 1.5G 0%/sys/fs/cgroup
/dev/sda5 5.7G 3.6G 1.9G 66%/usr
/dev/sda6 969M 8.5M 894M 1%/home
/dev/sdal 283M 77M 188M 29% /boot
/dev/sda2 6.7G 4.1G 2.2G 65%/var
/dev/mapper/zoomgroup-lvl 283M 2.1M 262M 1%/mylvm
17. We still find the same partition size, so update the kernel. Resize the logical volume at OS
Syntax:
Result:
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/zoomgroup/lvl is mounted on /mylvm; on-line resizing required
old_desc_blocks = 3, new_desc_blocks = 4
The filesystem on /dev/zoomgroup/lvl is now 409600 blocks long.
0
ZOOM
.TECHNOLOGIES.
[root@localhost ~]# df -h
Result:
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 5.7G 68M 5.3G 2%/
devtmpfs 1.5G 0 1.5G 0%/dev
tmpfs 1.5G 80K 1.5G 1%/dev/shm
tmpfs 1.5G 9.0M 1.5G 1%/run
tmpfs 1.5G 0 1.5G 0%/sys/fs/cgroup
/dev/sda5 5.7G 3.6G 1.9G 66%/usr
/dev/sda6 969M 8.5M 894M 1%/home
/dev/sdal 283M 77M 188M 29% /boot
/dev/sda2 6.7G 4.1G 2.2G 65%/var
/dev/mapper/zoomgroup-lvl 380M 2.3M 355M 1%/mylvm
Note: Mounted partition size had increase and updated.
Verification:
[root@localhost mylvm]# Is
19. To extend the volume group, create a new partition and add to volume group.
0
ZOOM
.TECHNOLOGIES.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@localhost ~]#fdisk -I
0
ZOOM
.TECHNOLOGIES.
Result:
Syntax:
Result:
Verification:
0
ZOOM
.TECHNOLOGIES.
root@localhost ~]# cd
Result:
Result:
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
Syntax:
Verification:
0
Using default value 66590720
Last sector, +sectors or +size{K,M,G} (66590720-81788927, default 81788927): +100M
Partition 11 of type Linux and of size 100 MiB is set
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
0
ZOOM
TECH NOLOGIE!
[root@localhost~]# fdisk -I
Syntax:
-l<raid_level>
-C (create metadisk)
-I (Raid level)
0
ZOOM
TECH NOLOGIE!
Result:
Syntax:
/dev/mdO:
Version : 1.2
Creation Time : Wed Sep 2 01:30:30 2015
Raid Level: raid5
Array Size : 203776 (199.03 MiB 208.67 MB)
Used Dev Size : 101888 (99.52 MiB 104.33 MB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent
Layout: left-symmetric
Chunk Size :512K
0
ZOOM
.TECHNOLOGIES.
Result:
[root@localhost~]# mkdir/raid
Syntax:
Verification:
0
ZOOM
TECH NOLOGIES
[root@localhost~]# cd /raid
[root@localhost raid]# Is
Result:
lost+found:
[root@localhost raid]# Is -I
Result:
Syntax:
14. To see the detailed information of /dev/mdO and check the faulty device which is displayed
as spare.
Verification:
/dev/mdO:
Version : 1.2
Creation Time : Fri Aug 14 01:59:05 2015
Raid Level: raid5
Array Size : 224256 (219.04 MiB 229.64 MB)
Used Dev Size : 112128 (109.52 MiB 114.82 MB)
0
ZOOM
.TECHNOLOGIES.
Raid Devices : 3
Total Devices: 3
Persistence : Superblock is persistent
Layout: left-symmetric
Chunk Size : 512K
Result:
/dev/mdO:
Version : 1.2
Creation Time : tue Sep 1 16:13:45 2015
Raid Level: raid5
Array Size : 224256 (219.04 MiB 229.64 MB)
Used Dev Size : 112128 (109.52 MiB 114.82 MB)
Raid Devices : 3
Total Devices : 2
0
Persistence : Superblock is persistent
Layout: left-symmetric
Chunk Size : 512K
Syntax:
Verification:
0
ZOOM
.TECHNOLOGIES.
18. Unmount the meta device before you stop the RAID.
Syntax:
Syntax:
Result:
Syntax:
Result:
0
ZOO IV
TECH N OLOG IE
LAB 17: BACKUP AND RESTORE USING TAR AND FILTER THE ARCHIVE
THROUGH GZIP(-z)
OBJECTIVE:
To take Backup using tar and filter the archive through gzip
PRE-REQUISITE:
TOPOLOGY:
0
1. Create a folder along with some other directories and files
[root@localhost myfolder]# Is
Syntax:
-c create
-v verbose
-f filename
Result:
Verification:
Syntax:
0
Result:
Result:
Syntax:
[root@localhost ~]#tar-xvzf/root/myfolder.tar.gz -C /
Result:
myfolder/
myfolder/dirl/
myfolder/tom_file
myfolder/test_file
myfolder/1
Verification:
Result:
0
ZOOM
TECH N OLOG IE!
LAB 18: BACKUP AND RESTORE USING TAR AND FILTER THE ARCHIVE
THROUGH BZIP2(-j)
OBJECTIVE:
To take Backup using tar and filter the archive through bzip2
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
1. To backup data
Syntax:
Result:
Syntax:
Result:
Syntax:
Result:
etc/
etc/motd
etc/os-release
0
ZOOM
.TECHNOLOGIES.
etc/sssd/
etc/favicon, png
etc/auto, master, d/
etc/smartmontools/
etc/smartmontools/smartd_warning.d/
Result:
31M /etc
Result:
6.7M /mnt/etc.tar.bz2
0
ZOO IV
TECH N OLOG IE
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
0
ZOOM
.TECHNOLOGIES.
1. Enter into source directory from where you want the backup to be taken
[root@localhost~]# cd /myfolder
Syntax:
-o out
-v verbose
-t table of content
-I in
Result:
1
dirl
myfolder.cpio
test_file
tom_file
1 block
Syntax:
Result:
1
dirl
test_file
tom_file
1 block
0
ZOO IV
TECH N OLOG IE
[root@localhost myfolder]# rm -r *
Verification:
Verification:
1
dirl
test_file
tom_file
1 block
Result:
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
System 1 System2
0
ZOOM
.TECHNOLOGIES.
Syntax:
[root@localhost~]# hostname
sysl.zoomgroup.com
[root@sysl~]# vi /etc/hostname
sysl.zoomgroup.com
:wq!
[root@sysl~]# vi /etc/hosts
:wq!
Note: To update new configuration to kernel log out and log in to the operating system
Syntax:
0
ZOOM
TECH NOLOGIE!
[root@sysl~]# ifconfig
Result:
[root@sysl~]# nmtui
root@localhost.~
0
ZOOM
TECH N OLOG IE!
root£)localhost:~
rootQlocalhost:M
0
ZOOM
TECH N OLOG IE
root® server."
H Edit connection F
= ETHERNET <Show>
<Cancel> <0K>
1,4
| mot pvr vrr “
a
root<g)localhost:*
ETHERNET <Show>
I
IPv4 CONFIGURATION <Manual> <Hide>
Addresses 192.168.0.1/24 <Remove>
<Add...>
Gateway 192.168. 0.254 1
DNS servers <Add...>
Search domains <Add...>
1/4 Q,
0
ZOOM
TECH N OLOG IE!
OR
[root@sysl~]# ifconfig
0
ZOOM
TECH NOLOGIES
Verification:
[root(5>sysl~]# Ifconfig
Syntax:
Verification:
[root@sysl~]# ifconfig
[root@sysl~]# cd /etc/sysconfig/network-scripts/
0
ZOOM
.TECHNOLOGIES.
[root@syslnetwork-scripts]# Is
Result:
Result:
DEVICE=enpls7
ONBOOT=yes
BOOTPROTO=static
I PADDR=192.168.0.1
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
Verification:
[root@syslnetwork-scripts]# Is
ifcfg-lo ifdown-ppp ifup-ipx ifup-sl
ifdown ifdown-sit ifup-isdn ifup-wireless
ifdown-aliases ifdown-sl ifup-plip init.ipv6-global
ifdown-ippp ifup ifup-plusb network-functions
ifdown-ipsec ifup-aliases ifup-post network-functions-ipv6
ifdown-ipv6 ifup-ippp ifup-ppp
#### OR #####
0
LAB 21: PACKAGE MANAGEMENT (RPM COMMAND)
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
Systeml System 2
0
ZOOM
TECH NOLOGIES
Syntax:
Result:
zip-3.0-10.el7.x86_64
Syntax:
Result:
Verification:
0
ZOOM
.TECHNOLOGIES.
[root@client ]# cd/media/Packages
[root@client ]# Is
Result:
6. To install, to view verbose output, and to check the progress of installation of packages with
hash sign.
Syntax:
-i install
-v verbose
Verification:
NOKEY
0
ZOOM
.TECHNOLOGIES.
Verification:
vsftpd-3.0-10.el7.x86_64
Verification:
[root@client ~]# Is
Verification;
0
ZOOM
TECH NOLOGIES
Syntax:
Result:
1. To query all installed packages whose name starts with word samba
Syntax;
Verification:
samba-client-4.1.1-31. el7.x86_64
samba-libs-4.1.1-31.el7.x86_64
samba-4.1.1-31.el7.x86_64
samba-common-4.1.1-31.el7.x86_64
Syntax:
[root@client mnt]# rpm -qi <package_name>
Result:
Name : samba
Epoch :0
Version : 4.1.1
Release : 31.el7
Architecture: x86_64
Install Date: Mon 31 Aug 2015 01:39:38 AM 1ST
Group : System Environment/Daemons
Size : 1616509
0
ZOOM
.TECHNOLOGIES.
Syntax:
Result:
/etc/openldap/schema
/etc/openldap/schema/samba. schema
/usr/bin/eventlogadm
/usr/bin/smbstatus
/usr/share/man/man8/vfs_tsmsm.8.gz
/usr/share/man/man8/vfs_xattr_tdb.8.gz
/var/spool/samba
Syntax:
Result:
/usr/share/doc/samba-4.1.1/COPYING
/usr/share/doc/samba-4.1.1/LDAP/README
/usr/share/doc/samba-4.l.l/LDAP/get_next_oid
/usr/share/doc/samba-4.1.1/LDAP/ol-schema-migrate.pi
0
ZOOM
.TECHNOLOGIES.
Syntax:
Result:
/etc/logrotate.d/samba
/etc/sa m ba/l m hosts
/etc/samba/smb.conf
/etc/sysconfig/samba
0
ZOOM
TECH N OLOG IE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
Systeml System2
At client side edit the yum configuration file by providing the server ip-address and
0
ZOOM
.TECHNOLOGIES.
1. Provide the YUM server IP address and package directory name in yum file
[core]
baseurl=ftp://192.168.0.250/pub/centos7/Packages
enabled=l
gpgcheck=l
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Syntax:
Verification:
0
ZOOM
.TECHNOLOGIES.
3. To install packages
Syntax:
Verification:
0
LAB 23: DHCP SERVER
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
Systeml System 2
0
ZOO IV
TECH N OLOG IE
Result:
dhcp-libs-4.2.5-27.el7.centos.x86_64
dhcp-common-4.2.5-27.el7.centos.x86_64
dhcp-4.2.5-27.el7.centos.x86_64
Note : While removing only give the name of packages, don't use yum otherwise
Result:
Install 3 Packages
Total download size: 801 k
Installed size: 1.8 M
Downloading packages:
0
ZOOM
.TECHNOLOGIES.
Installed:
dhcp.x86_64 12:4.2.5-27.el7.centos dhcp-common.x86_64 12:4.2.5-27. el7. centos
dhcp-libs.x86_64 12:4.2.5-27.el7.centos
Complete!
Verification:
Result:
#### OR ####
Result:
In -s '/usr/lib/systemd/system/dhcpd.service' '/etc/systemd/system/multi-
user.target.wants/dhcpd.service'
0
ZOOM
.TECHNOLOGIES.
Select
Verification:
#### OR ####
4. To verify IP-Address
Verification:
enpls7 Link encap:Ethernet HWaddr 00:13:20:B7:1D:44
inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::213:20ff:feb7:ld44/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:!
0
ZOOM
.TECHNOLOGIES.
Verification:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.254 0.0.0.0 UG 1024 0 0 enpls7
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enpls7
6. To check DNS IP
Verification:
# Generated by NetworkManager
search zoomgroup.com
nameserver 192.168.0.253
0
LAB 24 : FTP SERVER
OBJECTIVE:
To configure FTP server to act as a central repository of files which can be accessed by legitimate
clients.
PRE-REQUISITE:
TOPOLOGY:
System 1 System2
0
ZOOM
.TECHNOLOGIES.
Verification:
vsftpd-3.0.2-9.el7.x86_64
Verification:
Running transaction
Warning: RPMDB altered outside of yum.
Installing : vsftpd-3.0.2-9.el7.x86_64 1/1
Verifying : vsftpd-3.0.2-9.el7.x86_64 1/1
Installed:
vsftpd.x86_64 0:3.0.2-9.el7
Verification:
[root@ftpserver pub]# Is
##### OR #####
0
ZOOM
.TECHNOLOGIES.
ftp> Is
ftp> cd pub
ftp> Is
ftp>bye
Result:
0
ZOOM
.TECHNOLOGIES.
Verification:
12 anonymous_enable=YES
16 local_enable=YES
29 anon_upload_enable=YES
37 dirmessage_enable=YES
86 ftpd_banner=Welcome to Zoom Linux.
:wq!
#### OR ####
0
ZOOM
.TECHNOLOGIES.
Note: To check client uploaded files, move to ftp server and check in ftp
Verification:
Verification:
initial-setup-ks.cfg
0
LAB 25: YUM SERVER
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
Systeml System 2
0
ZOOM
.TECHNOLOGIES.
Verification:
[root@YumServer ~]# Is
389-ds-base-libs-1.3.1.6-25.el7.x86_64.rpm
a2ps-4.14-23.el7.i686.rpm
a2ps-4.14-23.el7.x86_64.rpm
abattis-cantarell-fonts-O.0.12-3. el7. noarch, rpm
abrt-2.1.11-12. el7.centos.x86_64.rpm
Result:
Result:
0
ZOOM
TECH NOLOGIES
4. Remove the old repodata directory from where all rpms copied
##### OR #####
7. Edit the yum configuration file, by providing the path of repository and IP-address
Verification:
[core]
name= Linux $releasever - $basearch - Debug
baseurl=ftp://192.168.0.250/pub/Packages
enabled=l
gpgcheck=l
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
:wq!
0
ZOOM
.TECHNOLOGIES.
1. Edit the yum configuration file, by providing the path of repository and server ip-address
[core]
name= Linux $releasever - $basearch - Debug
baseurl=ftp://192.168.0.250/pub/Packages
enabled=l
gpgcheck=l
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
:wq!
Verification:
Installed:
firefox.x86_64 0:24.5.0-1.el7.centos
Complete!
0
LAB 26: NFS SERVER
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
5
\
Switch
System 1 System 2
0
ZOOM
.TECHNOLOGIES.
Verification:
nfs-utils-1.3.0-0.el7.x86_64
nfsometer-1.7-0.el7.noarch
nfs4-acl-tools-0.3.3-13.el7.x86_64
nfstest-1.0.2-2. el7. noarch
The zoomshare directory contains the names of Advanced Linux course topics
Verification:
0
ZOOM
.TECHNOLOGIES.
5. Provide share directory name in NFS configuration file and and give share permissions.
/zoomshare 192.168.0.0/255.255.255.0(rw,sync)
:wq!
#### OR #####
7. Verifythe list of exported directories where 192.168.0.X is the NFS server IP Address
Result:
/zoomshare 192.168.0.0/255.255.255.0
Result:
/zoomshare 192.168.0.0/255.255.255.0
0
ZOOM
.TECHNOLOGIES.
Verification:
The zoomshare directory contains the names of Advanced Linux course topics
0
LAB 27: DNS SERVER
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
System 1 System 2
0
ZOOM
.TECHNOLOGIES.
1. Check and assign IP address to the DNS server according to your setup
Addresses 192.168.0.1/24
Verification:
dns.zoomgroup.com
0
ZOOM
.TECHNOLOGIES.
5. NOW LOG OFF and LOG IN to make the changes permanent in the kernel
Verification:
bind-libs-lite-9.9.4-14.el7.x86_64
bind-chroot-9.9.4-14.el7.x86_64
bind-utils-9.9.4-14.el7.x86_64
bind-dyndb-ldap-3.5-4.el7.x86_64
bind-libs-9.9.4-14.el7.x86_64
bind-9.9.4-14.el7.x86_64
bind-license-9.9.4-14.el7.noarch
:wq!
0
ZOOM
.TECHNOLOGIES.
zone "zoomgroup.com" IN {
type master;
file "zoom.for";
allow-update {none;};
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "zoom.rev";
allow-update {none;};
};
:wq!
Verification:
[root@dns named]# Is
Verification:
[root@dns named]# II
total 40
drwxr-x— 7 root named 4096 Sep 1 06:54 chroot
drwxrwx— 2 named named 4096 Sep 1 07:04 data
drwxrwx— 2 named named 4096 Sep 1 07:04 dynamic
-rw-r 1 root named 2076 Jan 28 2013 named.ca
-rw-r 1 root named 152 Dec 15 2009 named.empty
-rw-r 1 root named 152Jun 21 2007 named.localhost
-rw-r 1 root named 168 Dec 15 2009 named.loopback
0
ZOOM
.TECHNOLOGIES.
$TTL 86400
@ IN SOA dns.zoomgroup.com. root.zoomgroup.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
ID) ; minimum
IN NS dns.zoomgroup.com.
dns IN A 192.168.0.1
nfs IN A 192.168.0.10
ftp IN A 192.168.0.11
smb IN A 192.168.0.12
mail IN A 192.168.0.13
zoomgroup.com. IN MX 5 mail
web IN A 192.168.0.14
www IN CNAME web
:wq!
$TTL 86400
@ IN SOA dns.zoomgroup.com. root.zoomgroup.com. (
1997022700; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum
IN NS dns.zoomgroup.com.
IN NS slavedns.zoomgroup.com.
0
ZOO IV
TECH N OLOG IE
1 IN PTR dns.zoomgroup.com.
10 IN PTR nfs.zoom.com.
11 IN PTR ftp.zoom.com.
12 IN PTR smb.zoom.com.
13 IN PTR mail.zoomgroup.com.
14 IN PTR web.zoom.com.
:wq!
Syntax:
Verification:
Syntax:
nameserver 192.168.0.1
:wq!
0
ZOOM
TECH NOLOGIES
##### OR ######
nameserver 192.168.0.1
:wq!
2. Check the forward lookup zone Resolution Answer by using dig command
Syntax::
Result:
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;dns.zoomgroup.com. IN A
;; ANSWER SECTION:
dns.zoomgroup.com. 86400 IN A 192.168.0.1
;; AUTHORITY SECTION:
zoomgroup.com. 86400 IN NS dns.zoomgroup.com.
0
ZOOM
.TECHNOLOGIES.
3. Check the reverse lookup zone Resolution Answer by using dig command
Verification:
Result:
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;1.0.168.192.in-addr.arpa. IN PTR
"ANSWER SECTION:
1.0.168.192.in-addr.arpa. 86400 IN PTR dns.zoomgroup.com.
;; AUTHORITY SECTION:
0.168.192.in-addr.arpa. 86400 IN NS 0.168.192.in-addr.arpa.
;; ADDITIONAL SECTION:
0.168.192.in-addr.arpa. 86400 IN A 192.168.0.1
0
ZOOM
.TECHNOLOGIES.
Verification:
0
LAB 28: POSTFIX MAIL SERVER
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
Systeml System2
0
ZOOM
TECH NOLOGIES
Addresses 192.168.0.20/24
mail.zoomgroup.com
:wq!
:wq!
Verification:
mail.zoomgroup.com
5. NOW LOG OFF and LOG IN to make the changes permanent in the kernel
0
ZOOM
.TECHNOLOGIES.
Verification:
postfix-2.10.1-6.el7.x86_64
:wq!
##### OR #####
10. Create users, assign passwords and test the mail at command prompt by using mail client
utility.
0
ZOOM
.TECHNOLOGIES.
[tom@mail ~]$
[john@mail ~]$
Result:
0
ZOOM
TECH N OLOG IE!
he hello
test mail from tom
mail test 1
and x
You have mail in /var/spool/mail/john
[root@mail ~]#yum install httpd* perl-5* php* curl* dovecot* mod_ssl* hunspell-en*
tmpwatch* -y
Verification:
»% Applications Plstei W.b <8 Fri 14:56 Proot
0
ZOOM
TECH NOLOGIES
[root@mail ~]# Is
10: disable_plaintext_auth = no (before from line remove # and change from 'yes' into 'no')
100: auth_mechanisms = plain login(before from line remove # and at last add login)
25: mailjocation = mbox: ~/mail: INBOX=/var/spool/mail/%u (before from line remove # and
complete the directory by adding spool)
##### OR #####
0
ZOOM
.TECHNOLOGIES.
##### OR #####
##### OR #####
nameserver 192.168.0.x
:wq!
0
3. Compose the mails via web browser
( ) Squ»rrelN*i ■ Login J * |
webmail
SquimlMail vereen 1.4.22 2 JcLO
Br the OquirrelMul Project TWta
SquIrrelMall loqln
Name: tom
Password: ......
Legm
1/4 Q
I SquinelMel 1 4 22*2.rclft | ♦ |
v
moil roomyotpcom pfyi (fl? Geo^e Q ^
UltU *bn
kindly please find ths attachicirt at Nail tsrser project data
Send
v
s£* <§ ^«»i ioowgr«y.comm c/i ago p»p & E3^ Tooqie Qj ^ ^
Password:
Login
1/4
m| r«Mt^m*ll~~/D«NMa4noO* luotpwiUm/MwH <yi • e4M« I l»|l< M,. . . r* O
)SquirralM*l 1 4 22-2.fcl6 | -T |
• . up <cn a £ e*
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
System 1 System 2
0
ZOO IV
TECH N OLOG IE
Example:
www.zoomgroup.com
www.google.com
www.yahoo.com
##### OR #####
192.168.0. xl www.zoomgroup.com
192.168.0.xl www.google.com
192.168.0.xl www.yahoo.com
:wq!
cVirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html
ServerName www.yahoo.com
Directorylndex yahoo.html
</VirtualHost>
0
ZOOM
TECH NOLOGIES
cVirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html
ServerName www.google.com
Directorylndex google.html
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html
ServerName www.zoomgroup.com
Directorylndex zoomgroup.html
</VirtualHost>
wq: (save and quit)
<html>
<body bgcolor=yellow>
<marquee><hl> THIS IS YAHOO WEBSITE </hlx/marquee>
<h6> HOSTED IN LINUX SESSION </h6>
</body>
</html>
##### OR #####
0
ZOOM
TECH N OLOG IE!
1. Provide the IP Adrress of DNS server if DNS Server is configured on the network
nameserver 192.168.0.DNSJP
OR
192.168.0.X1 www.zoomgroup.com
192.168.0. X1 www.yahoo.com
192.168.0. x! www.google.com
:wq!
Result:
□ -
@ Mews
a Celecmy
P Answers
A SHocfMifl
• • Fbcfcr C/cXrt rmance More
=0 Mcble
Style Fjctc*
Ythoo Screen
>
< 0)44
zievans
0
ZOOM
TECH NOLOGIES
Verification:
Google India
Google ca n ofcrtd m boa Benaali Tduyu Mafiihi Tail G JI» Mi Ksnmfl* bWirtaAm PUO»*J
Cere
4- C I zoomgrojp^on
n- *PP« L &**•*
Home Online Training Training FAQ Projects Our Services News & Events - Corporate Training Contact Us
jj « M
III 'll I*
l Hi .
1. Assigning another Virtual IP on Ethernet interface of the web server for IP Based Hosting
192.168.0. X1/24
ADD =>
192.168.0. X2/24 = OK
Verification:
0
ZOOM
.TECHNOLOGIES.
<VirtualHost 192.168.0.X2:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html
ServerName www.google.com
Directorylndex google.html
</VirtualHost>
:wq
OR
Verification:http ://192.168.0.X2
Gaofc* Morlla Tircfo* l5 X
9* Ldt SW* Nfarr lock Qet>
^ • C - i .
^ Gffcng 2«ted Ldtnthr*:^
00009
0
Port based websites configuration
Listen 8000
<VirtualHost *:8000>
ServerAdmin [email protected]
DocumentRoot /var/www/html
ServerName www.zoomgroup.com
Directorylndex zoomgroup.html
</VirtualHost>
:wq
namesever 192.168.0.DNS_1P
192.168.0.X1 www.zoomgroup.com
192.168.0.X1 www.yahoo.com
192.168.0.X1 www.google.com
0
ZOOM
TECH NOLOGIES
Verification:
J2 OnancICMPUMiflnii M^||
4" C I zoomgrajp^on
Home Online Training Training FAQ Projects Our Services News & Events • Corporate Training Contact Us
•If : : 71
We are total Network Security experts
Since 1906. Zoom Has Provided Futuristic And Reliable Security
1
And Networking Solutions To Clients Spread r t 3‘J J 9u
Across The Spectrum ■ »
■
II
W | ••
« ^ r,
SB H -3
0
ZOOM
TECH NOLOGIE!
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
Systeml System2
0
ZOOM
.TECHNOLOGIES.
<Directory /var/www/html>
AuthName "zoom-secure"
AuthUserFile /mnt/web
AuthType Basic
Require Valid-User
:wq!
0
ZOOM
TECH N OLOG IE!
1. Provide the IP address of DNS server if DNS Server is configured on the network
namesever 192.168.0.DNS IP
192.168.0.XI www.zoomgroup.com
192.168.0.XI www.yahoo.com
192.168.0.XI www.google.com
0
Verification: After giving the rteht credentials client can browse the website
Tz OWr* ZCHP TiaMnf IT *
OBJECTIVE:
PRE-REQUISITE:
TOPOLOGY:
Systeml System2
0
ZOOM
TECH NOLOGIE!
ftp://192.168.0.250
Verification:
Application* ■cfoxWeb b'owm * OS M21:10 Pn«
i i 13“ Q
Opnninj wrbmiii-1 360tar 91
lilwabmln-1 S6O.tar.9z
Index of ftp://192.16 wHchis: Cr>p arch*** (12 5 M31
from ftp//192 166 0.250
4* Up to hgher level directory
Wh«t should Firefox do with this Rl«?
Name Last Modi Red
Open w*f« Armi.a Manager |default;
ft 192168 0 96 /21/2015 02 1 6 00 AM
l| NFtaye* 1 0t<4 ta bit • Seva F>le /21/2015 0216 00 AM
yjhisantft-lg-20111 1 /2L/201S 021600 AM
Do mu automatic ally fee 61 as Idea ms from now an
gjmintcam-2 1-1 /21/201S 0216 00 AM
(j| nHs3g-rh»l5 np /21/2015 02 1 6 00 AM
y|squ»re<ma4 l 4 22-2.1 Cant at /21/2015 02 1 6 00 AM
y i^u.ratmai-1 4.22-2.1 /21/2015 0216 00 AM
jj| 160 tat 92 U75:K» 04/21/2015 02 16 00 AM
Verification:
webmin-1.360.tar.gz
[root@server Downloads]# Is
Verification:
Webmin-1.360 webmin-1.360.tar.gz
0
ZOOM
.TECHNOLOGIES.
Verification:
Webmin uses separate directories for configuration files and log files.
Web server port (default 10000): <press enter>
Login name (default admin): <press enter>
Login password:
Password again:
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n):y
Webmin has been installed and started successfully. Use your web browser to go to
http://localhost:10000/ and login with the name and password you entered previously.
0
7. Open the Browser, to access it
Mozilla Firefox _ a
File Edit view History Bookmarks Tools help
https-Z/1 ocalhostioooo,1 v
Login to Webmln
username admin ]
Password
J
Login Clear j
□ Remember login permanently?
Sharing
Total Oawiload lire: 4.8 8
Send mail Configuration Installed size: 9.4 M
spamAssassin Mail Filter OoMiloodmg Pakagn:
9. To Uninstall webmin
0
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