View
252
Download
0
Category
Preview:
Citation preview
8/17/2019 LAB Setup for Linux
1/69
LAB Setup for LINUX
TASK # 1: Download and Install VMware Workstation (30
mins)By using this virtualization software, we can create many Vs !"#U$mem$%&' on
which install (i)erent *perating systems such as win(ows or Linu+ avors!-..$'
ain */0ective1 2e are going to create 3 Vs an( then Install "ent*S Linu+ *S later
on those Vs4
8/17/2019 LAB Setup for Linux
2/69
8/17/2019 LAB Setup for Linux
3/69
5ou will get the software in 6ol(er 7 6avorites8&ownloa(s !i4e4,
"18users8hussain8&ownloa(s'
&ou/le clic9 on the software to /egin installation1
8/17/2019 LAB Setup for Linux
4/69
8/17/2019 LAB Setup for Linux
5/69
8/17/2019 LAB Setup for Linux
6/69
8/17/2019 LAB Setup for Linux
7/69
8/17/2019 LAB Setup for Linux
8/69
8/17/2019 LAB Setup for Linux
9/69
*: you can use the /elow serial 9eys after -. (ays
8/17/2019 LAB Setup for Linux
10/69
Serial ;ey for 2or9station -7?@>7C?"D;7-"E
8/17/2019 LAB Setup for Linux
11/69
All these software are only to create V on which you can install *S4 ?his you can
compare li9e, instea( of /uying (i)erent laptops an( installing *S, you are creating
as many laptops as possi/le in this software4 ?his is virtualization concept4
TASK 1$1: %reate a VM &' name serer1
8/17/2019 LAB Setup for Linux
12/69
8/17/2019 LAB Setup for Linux
13/69
8/17/2019 LAB Setup for Linux
14/69
8/17/2019 LAB Setup for Linux
15/69
8/17/2019 LAB Setup for Linux
16/69
8/17/2019 LAB Setup for Linux
17/69
8/17/2019 LAB Setup for Linux
18/69
8/17/2019 LAB Setup for Linux
19/69
?his way, you (ownloa( centos -37/it *S software 4iso image4
By (efault, 5ou will get the software in 6ol(er 7 6avorites8&ownloa(s !i4e4,
"18users8hussain8&ownloa(s'
8/17/2019 LAB Setup for Linux
20/69
8/17/2019 LAB Setup for Linux
21/69
8/17/2019 LAB Setup for Linux
22/69
TASK # 3: 45%6 7 "ASI% I8STA..ATIO8Minim!m and 4eommended 4e9!irement to install 456. 7: !:%KL versions
P "ent*S versions'
5ardware
4eomm$
4e9$/or 456.73,&it
Minim!m re9$or456.7 3,&it
4eomm$
4e9$/or 456.77&it
Minim!mre9$ or456.7 7&it
;roessor
A&Intel&ual "ore A&Intel # >
A&Intel "ore3 (uo
A&Intel&ual "ore
Mot2er"oard Normal Normal V? Kna/le( V? Kna/le(
4AM 7=
8/17/2019 LAB Setup for Linux
23/69
Installin+ 456. 7 wit2 a&oe s=ei*ation
Knter into BI*S setting an( ma9e "&&V& &rive as Mrst /oot (evice a9e sure that V? !Virtual ?echnology' is ena/le( for :%KLE E>7/it systems
Insert the :%KL E "&&V& into "&&V& (rive an( /oot the system If /oote( from "&&V& :*, the installation screen will /e (isplaye(
Task 3$1: Installin+ %entOS7 lin! (!sin+ standard met2od) on
VM1!Installing :%KLD 77R http1www4tecmint4comre(hat7enterprise7linu+7D7
installation'
In my language,
*S installation is li9e moving the (ata from "&&V&IS*Networ9 image to %ar((is9
in proper way!in win(ows they calle( "7(rive an( Linu+ they calle( !root Mlesystem'
8/17/2019 LAB Setup for Linux
24/69
Select the Linu+ 4iso image via "&&V& !virtually'
8/17/2019 LAB Setup for Linux
25/69
Now clic9 on #ower7*n /utton
8/17/2019 LAB Setup for Linux
26/69
5ou will see the /elow screen >
ove the cursor to Install or =+rade an eistin+ s'stem an( press
6nter
8/17/2019 LAB Setup for Linux
27/69
?o test the me(ia select OK> to s9ip the testing move cursor to Ski= an(
press 6nter
"lic9 on 8et /utton to move forwar(
Select your (esire( language, usually 6n+lis2$ "lic9 8et to continue
8/17/2019 LAB Setup for Linux
28/69
Select the 9ey/oar( type as reuire( usually $S 6n+lis2> clic9 8et to
continue
Select the type of Storage for the computer4 "lic9 8et to continue
8/17/2019 LAB Setup for Linux
29/69
If the storage (evice is from Vware then you will get a/ove warning message
Assign a hostname to the system4 If you wish to give ip a((ress clic9 on
%on*+!re 8etwork , else clic9 8et to continue
8/17/2019 LAB Setup for Linux
30/69
Select the nearest city in your ?ime @one an( clic9 on 8et to continue
Set some passwor( for root, then clic9 on 8et to continue
8/17/2019 LAB Setup for Linux
31/69
Select the type of partitioning you want, to create your own partitions with
custom sizes, select %reate %!stom .a'o!t an( clic9 on 8et to
continue8ote1 If you choose (efault option instea( of custom, *S will install
without any options for (is94 It use( LV partitioning /y (efault4 5ou can
verify with J(f 7h comman(
8/17/2019 LAB Setup for Linux
32/69
"lic9 on the /ree space, then clic9 on %reate to create your own
partitions
"hec9 the /o+ /esi(e Standard ;artition> "lic9 on %reate to continue
8/17/2019 LAB Setup for Linux
33/69
Select &oot from Mo!nt ;oint Bo+, give the size 3..B for it an( clic9
on OK to create it
8/17/2019 LAB Setup for Linux
34/69
S
e
l
e
c
t
the /ree space again an( clic9 on %reate to create another partition4
Also chec9 the /o+ /esi(e Standard ;artition> "lic9 on %reate to
continue
8/17/2019 LAB Setup for Linux
35/69
Select from Mo!nt ;oint Bo+, give the size you wish for it an( clic9 on
OK to create it4
8/17/2019 LAB Setup for Linux
36/69
:epeat the a/ove steps in similar fashion an( create swap partition !select free
space , clic9 on create4 Again select stan(ar( partition an( then create4 ?hen /elow
/o+ opens4
?his time select swa= from /ile S'stem T'=e$ Cive the size reuire(
an( clic9 on OK
8/17/2019 LAB Setup for Linux
37/69
6inally you will see the partition as a/ove an( clic9 on 8et to continue with
it4
8/17/2019 LAB Setup for Linux
38/69
"lic9 on /ormat to format the partition an( continue with it
"lic9 on Write 2an+es to disk to continue , if wish not to ma9e changes
clic9 on ?o "ak
8/17/2019 LAB Setup for Linux
39/69
Boot Loa(er is a program
8/17/2019 LAB Setup for Linux
40/69
8ote: %ere you can select &es9top or Basic server or any other type as per
reuirement4
In real time, you use the image which will alrea(y setup /y Kngineering ?eam as per
company environment nee(s an( hence you will not see these options an( get only
/asic server li9e *S4
If it is V, then *S installation is nothing /ut a (eployment from templates4 Very
Very easy
8/17/2019 LAB Setup for Linux
41/69
8/17/2019 LAB Setup for Linux
42/69
2hen a/ove prompt is (isplaye(, remove the "&&V& from (rive an( clic9 on
4e&oot$
/ollow all t2e ste=s as a==ro=riate &' likin+ on /orward> t2en 'o! will
+et lo+in sreen w2ere 'o! enter !sername and =assword$
8/17/2019 LAB Setup for Linux
43/69
8/17/2019 LAB Setup for Linux
44/69
8/17/2019 LAB Setup for Linux
45/69
*nce you login,if it comes @ sign then it means normal !ser4 If it # !poun(' sign
then it means root !ser4
#!namea #at etrelease #ar2 #dmideodeBmore
Cer' im=ortant ommands
Task 3$,: Installin+ %entOS .in! !sin+ .VM ;artitionin+ on
VM, :
?he only (i)erence in a normal installation an( .VM installation is that
instea( of creating normal partition we will create a V? an( then .Vs for all
partitions, e+cept &oot and swa=$• ?he a(vantage of installing Linu+ using .VM is that, if any of system
partition is running out of space an( reuire( more space, in case of normal
partitioning it is not possi/le to increase the size of a partition once it is
create(4 But, using LV the space can /e (ynamically increase( whenever it
is reuire(4
• Kven if there is no space remaining in the (is9 some space can /e /orrowe(
from other .VMsan( can easily /e assigne( to reuire( system partition to
fulMll its nee(4• .VM provi(es a greater scala/ility to the a(ministrator an( avoi( uncertain
(owntime to the server4
• .VM ensures the possi/ility of increasing an( (ecreasing the sizes whenever
reuire( an( prevents unnecessary loss of time4
Start the installation normally as (one previously, /ut only at the time of
partitioning follow the steps /elow4
8/17/2019 LAB Setup for Linux
46/69
8/17/2019 LAB Setup for Linux
47/69
• Select the /ree space an( clic9 on %reate> then select .VM ;2'sial
Vol!me an( clic9 %reate to procee(4
8/17/2019 LAB Setup for Linux
48/69
• Cive the ma+imum possi/le size to this ;V> as all the partition has to /e
create( insi(e it only4
8/17/2019 LAB Setup for Linux
49/69
• Select the create( ;V> i4e4, s(a< an( then clic9 on create
8/17/2019 LAB Setup for Linux
50/69
• ?his time chec9 the /o+ /esi(e .VM Vol!me ?ro!= to create a volume
group, clic9 on to create a VC4
8/17/2019 LAB Setup for Linux
51/69
"lic9 on the Add /utton in the a/ove (iagram, it will create partitions in thatvolume group vgsystem34
8/17/2019 LAB Setup for Linux
52/69
"lic9 on Add &!tton to start a((ing .Vs one /y one, Select a mount point
an( assign a size to it an( clic9 on OK$
4e=eat the a/ove step an( create the following partitions with the given sizes
• usr with Q4= CB appro+
• var with >4= CB appro+
• opt with 3 CB appro+
• , tmp, home 3 CB each appro+
• opt - CB appro+
Note1 All the sizes liste( a/ove are /ase( on the availa/ility of the space4 It is no
where a recommen(e( or minimum sizes4 ?he sizes can /e /ase( on your
reuirements4 But usr reuire( the a/ove given size!more' if it is E>7/itarchitecture4
8/17/2019 LAB Setup for Linux
53/69
8/17/2019 LAB Setup for Linux
54/69
8/17/2019 LAB Setup for Linux
55/69
Select the /ree space un(er 5ard Dries an( create &oot with 3..B an(
S2A# with 3 CB4 a9e sure that you select Standard ;artition this time,
instea( of .VM$
8/17/2019 LAB Setup for Linux
56/69
8/17/2019 LAB Setup for Linux
57/69
• Verify the sizes an( clic9 on 8et to continue with the installation4 "omplete
the installation as usual as we have (one previously at the /eginning of the
course4
8/17/2019 LAB Setup for Linux
58/69
8OT6 (V64E IM;O4TA8T ):
a9e sure a/out the connectivity /etween win(ows an( Linu+ is correct
!networ9ing'
8/17/2019 LAB Setup for Linux
59/69
If no internet is reuire( on your Linu+ then
:ight clic9 on V 77Rsettings 77R Networ9 A(apter 77R o NA?
an( set the vmnet range I# to your Linu+ server
If internet is reuire( on your Linu+ server then
:ight clic9 on V 77Rsettings 77R Networ9 A(apter 77R o Bri(ge Networ9
an( set the 2ireless 2i76i range I# to your Linu+ server
?o verify, internet is wor9ing or not Linu+ 1 Jping www4google4com
8/17/2019 LAB Setup for Linux
60/69
?hen set the I# a((ress in the Linu+ server in the similar range of Vware Networ9
A(apter VnetQ
8/17/2019 LAB Setup for Linux
61/69
8/17/2019 LAB Setup for Linux
62/69
?o Assign "hange I#7A((ress 1
Step
8/17/2019 LAB Setup for Linux
63/69
8/17/2019 LAB Setup for Linux
64/69
6inally you have the values as
%ostnamePserver<
Ip7 A((ress P
8/17/2019 LAB Setup for Linux
65/69
Jvi etcsysconMgnetwor9
%*S?NAKPserver3
Suppose if you want to change I# a((ress, then
Jvi etcsysconMgnetwor97scriptsifcfg7eth.
I#A&&:P
8/17/2019 LAB Setup for Linux
66/69
Suppose if you nee( to call some of your frien(, then you nee( to have his no4 an(
that num/er you will insert in (ialpa( an( call him4 ?hat num/er will wor9 only if it is
registere( with carrier!AtO?, ?7mo/ile, Verizon, Vo(afone, airtel etcT4'
Similarly here if you nee( to login to server
8/17/2019 LAB Setup for Linux
67/69
8/17/2019 LAB Setup for Linux
68/69
8OT6: As =er se!rit' =oli'> root !ser is disa&led ia SS5 lo+in
*:
Task 7: /irst Set o ommandsi' Jcat etcreleaseii' Juname aiii' Jarchiv' J(mi(eco(e ! an( chec9 for system information paragraph for o(el an(
serialJ'v' Juptimevi' Jcat procmeminfo or Jcat proccpuinfo or Jf(is9 7l
vii' Jfree m or Jtop or (f hviii' Jps ef or Jps au+i+' Jc( etcinit4( an( Jls an( Jservice service7name
!statusstartstoprestartreloa('+' Jrpm a
I# A((ress relate(
PJvi etcsysconMgnetwor97scriptsifcfg7eth.B**?#:*?*P(hcp
8/17/2019 LAB Setup for Linux
69/69
PJVi etcsysconMgnetwwor97scriptsifcfg7eth.B**?#:*?*PstaticI#A&&:P
Recommended