Nothing Special   »   [go: up one dir, main page]

Welcome!: Red Hat Enterprise Linux System Administration

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 15

Welcome!

RH133
Red Hat Enterprise Linux
System Administration
Objectives

 YUM / NFS SERVER


 Configuring YUM Server
 Configuring YUM Clients
 Kickstart Configuration
 Creating Kickstart File
 Using Kickstart File

2
Configuring YUM Server

3
YUM Server configuration steps

 STEP 1:

CD-1

cp -rvf /mnt/* /var/ftp/pub/
 STEP 2:

CD-2 / 3 / 4 / 5
cp -rvf /mnt/Server /var/ftp/pub/

 STEP 3:
 Copy the VT folder ===== for virtualization
 cp -rvf /mnt/VT /var/ftp/pub/
 cp -rvf /mnt/Cluster /var/ftp/pub/
 cp -rvf /mnt/ClusterStorage /var/ftp/pub/

4
YUM Server configuration steps

 STEP 4.

For Creating GROUP Respository
 cd /var/ftp/pub
 cp Server/repodata/comps-rhel5-server-core.xml Server
 cp VT/repodata/comps-rhel5-vt.xml VT
 cp Cluster/repodata/comps-rhel5-cluster.xml Cluster
 cp ClusterStorage/repodata/comps-rhel5-cluster-st.xml ClusterStorage
 STEP 5.
 INSTALL “createrepo”
 cd /var/ftp/pub/Server
 rpm -ivh createrepo-o.... .rpm
 rpm -ivh vsftp.2.0.... .rpm
5
YUM Server configuration steps

 STEP 6.
 cd /var/ftp/pub/
 createrepo -vg comps-rhel5-server-core.xml /var/ftp/pub/Server
 createrepo -vg comps-rhel5-vt.xml /var/ftp/pub/VT
 createrepo -vg comps-rhel5-cluster.xml /var/ftp/pub/Cluster
 createrepo -vg comps-rhel5-cluster-st.xml /var/ftp/pub/ClusterStorage

6
YUM Clients configuration steps
vi /etc/yum.repos.d/ser.repo
 [Server]
 name=My Local Server Repo
 baseurl=file:///var/ftp/pub/Server
 #baseurl=ftp://192.168.0.254/pub/Server
 gpgcheck=0
 [VT]
 name=My Local VT Repo
 baseurl=file:///var/ftp/pub/VT
 #baseurl=ftp://192.168.0.254/pub/VT
 gpgcheck=0

7
YUM Clients configuration steps
vi /etc/yum.repos.d/ser.repo

 [Cluster]
 name=My Local Cluster Repo
 baseurl=file:///var/ftp/pub/Cluster
 #baseurl=ftp://192.168.0.254/pub/Cluster
 gpgcheck=0
 [ClusterStorage]
 name=My Local Cluster Storage Repo
 baseurl=file:///var/ftp/pub/ClusterStorage
 #baseurl=ftp://192.168.0.254/pub/ClusterStorage
 gpgcheck=0

8
YUM Clients configuration steps
yum clean all
yum list ---------- show all the available package list
yum grouplist

To install CLI -
yum groupinstall “Virtualization”
yum install package-name
yum remove package-name

service vsftpd start


chkconfig –level 35 vsftpd on

9
Kickstart Configuration

10
What is kickstart?
 Kickstart is a component of the installer that automates installed
 Kickstart supports all installation methods
 The installer reads information from an files rather than prompting for it
to user
 Kickstart files can be made available via floppy, network servers like
nfs, ftp, http.

11
For Kickstart
STEP -1:
ln -s /var/ftp/pub/Server /var/www/html/Server

service httpd start

STEP – 2: vi /etc/yum.repos.d/base.repo
[base]
name=kickstart repo
 baseurl=ftp://x.x.x.x/pub/Server
gpgcheck=0

12
How to use kickstart configuration
 Can be configured from graphical tool KICKSTART
 Commands from client side to use kickstart configuration
 Via Command
 Floppy linux ks=floppy
 NFS linux ks=nfs:192.168.0.254:/var/ftp/pub/fresh.cfg
 FTP linux ks=ftp://192.168.0.254/pub/fresh.cfg
 HTTP linux ks=http://192.168.0.254/install/fresh.cfg

13
?
Questions
Thank You !!!

You might also like