RHEL 5
DHCP Server Configuration
Step1 : # rpm –q dhcp*
# rpm –ivh dhcp*
Step 2 : # cd /usr/share/doc/dhcp-3.0.1
# ls
# dhcpd.conf.sample
# cp dhcpd.conf.sample /etc/dhcpd.conf
Step 3 : # vi /etc/dhcpd.conf
option domain-name dns server ip
range 172.24.0.10 172.24.0.20
Step 4 : # vi /etc/sysconfig/network-scripts/ifcfg-eth0
onbootpro=static
Step 5 : # service dhcpd restart
# chkconfig dhcpd on
Client Configuration
# vi /etc/sysconfig/network-script/ifcfg-eth0
onbootpro=dhcp
NFS Server Configuration
Step1 : # rpm –ivh nf*
Step 2 : # vi /etc/exports
/test *(rw,sync)
:wq
Step3 : # exportfs –av
Step4 : # service portmap restart
# chkconfig portmap on
Step 5 : # service nfs restart
# chkconfig nfs on
Client Configuration
Step1 : # mount 172.24.0.254:/test /mnt # cd /mnt
Thursday, March 26, 2009
Rhel 5 Yum configuration
YUM Server Configuration in RHEL5 (Yellow Dog Updater Modified) -for increasing the package integrity.
Step 1: install createrepo.rpm from the DVD for creating repository.
# rpm -ivh createrepo.rpm
Step 2: copy all rpms form the DVD and past over the hard disk share them up in NFS.
#createrepo /path-to-rpms
eg: createrepo /var/ftp/pub
It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of your machine.
Step 3: Touch the following file with the contents specified.
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
baseurl=file: //var/ftp/pub
enabled=1
gpgcheck=0
Step 4: Use the yum server in the same machine because server is the first client of the same service most of the times
the following command is used for install gcc compiler
#yum install gcc
Note: Remember ftp or http service has to be running in the yum server.
Client configuration:
Step 1: Touch the following file with the contents specified in case of ftp server is running in the server machine
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
baseurl=ftp:///192.168.254/pub
enabled=1
gpgcheck=0
Step 2:
the following command is used for install gcc compiler
#yum install gcc
these are the commands for removing the service specified
#yum erase gcc
#yum remove gcc
for mail server
#yum install sendmail
Step 1: install createrepo.rpm from the DVD for creating repository.
# rpm -ivh createrepo.rpm
Step 2: copy all rpms form the DVD and past over the hard disk share them up in NFS.
#createrepo /path-to-rpms
eg: createrepo /var/ftp/pub
It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of your machine.
Step 3: Touch the following file with the contents specified.
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
baseurl=file: //var/ftp/pub
enabled=1
gpgcheck=0
Step 4: Use the yum server in the same machine because server is the first client of the same service most of the times
the following command is used for install gcc compiler
#yum install gcc
Note: Remember ftp or http service has to be running in the yum server.
Client configuration:
Step 1: Touch the following file with the contents specified in case of ftp server is running in the server machine
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
baseurl=ftp:///192.168.254/pub
enabled=1
gpgcheck=0
Step 2:
the following command is used for install gcc compiler
#yum install gcc
these are the commands for removing the service specified
#yum erase gcc
#yum remove gcc
for mail server
#yum install sendmail
YUM Server Configuration in RHEL5 (Yellow Dog Updater Modified) -for increasing the package integrity.
Step 1: install createrepo.rpm from the DVD for creating repository.
# rpm -ivh createrepo.rpm
Step 2: copy all rpms form the DVD and past over the hard disk share them up in NFS.
#createrepo /path-to-rpms
eg: createrepo /var/ftp/pub
It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of your machine.
Step 3: Touch the following file with the contents specified.
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
baseurl=file://var/ftp/pub
enabled=1
gpgcheck=0
Step 4: Use the yum server in the same machine because server is the first client of the same service most of the times
the following command is used for install gcc compiler
#yum install gcc
Note: Remember ftp or http service has to be running in the yum server.
Client configuration:
Step 1: Touch the following file with the contents specified in case of ftp server is running in the server machine
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
baseurl=ftp:///192.168.0.254/pub
enabled=1
gpgcheck=0
Step 2:
the following command is used for install gcc compiler
#yum install gcc
these are the commands for removing the service specified
#yum erase gcc
#yum remove gcc
for mail server
#yum install sendmail
Step 1: install createrepo.rpm from the DVD for creating repository.
# rpm -ivh createrepo.rpm
Step 2: copy all rpms form the DVD and past over the hard disk share them up in NFS.
#createrepo /path-to-rpms
eg: createrepo /var/ftp/pub
It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of your machine.
Step 3: Touch the following file with the contents specified.
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
baseurl=file://var/ftp/pub
enabled=1
gpgcheck=0
Step 4: Use the yum server in the same machine because server is the first client of the same service most of the times
the following command is used for install gcc compiler
#yum install gcc
Note: Remember ftp or http service has to be running in the yum server.
Client configuration:
Step 1: Touch the following file with the contents specified in case of ftp server is running in the server machine
#vi /etc/yum.repos.d/somename.repo
[base]
name=friendly name
baseurl=ftp:///192.168.0.254/pub
enabled=1
gpgcheck=0
Step 2:
the following command is used for install gcc compiler
#yum install gcc
these are the commands for removing the service specified
#yum erase gcc
#yum remove gcc
for mail server
#yum install sendmail
Subscribe to:
Posts (Atom)