RHCE learning: TFTP + DHCP + NFS + FTP to install Linux on the network

Source: Internet
Author: User
Implementation principle: TFTP + DHCP + NFS + VSFTPD broadcast using TFTP, enable the client to obtain the corresponding installation information. use DHCP to obtain network address information. Use the TFTP file required during NFS shared installation and use FTP to download the CD information during installation. Implementation steps: (1 ): install YUM to simplify the installation of the RPM package during server setup (1) mount the CD and install ftp in the directory, [root @ localhostServer] # rpm-iv

Implementation principle: TFTP + DHCP + NFS + VSFTPD

Use TFTP to broadcast the client to obtain the corresponding installation information

Use DHCP to obtain network address information

Use NFS to share the TFTP files required during installation

Use FTP to download the CD information during installation

Implementation steps:

(1): Install YUM to simplify the RPM package installation during Server SETUP

(1) mount the CD and go to the directory to install ftp,

[Root @ localhost Server] # rpm-ivh vsftpd-2.0.5-12.el5.i386.rpm

(2) copy the content of the CD to/var/ftp/pub/

[Root @ localhost RHEL_5.2 i386 DVD] # cp-R/media/RHEL_5.2 \ i386 \ DVD/*/var/ftp/pub/

(3) installation kits yum and createrepo

[Root @ localhost Server] # rpm-ivh yum-3.2.8-9.el5.noarch.rpm

[Root @ localhost Server] # rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm

(4) Prepare and solve the dependency problem

[Root @ localhost Server] # createrepo-g/var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml/var/ftp/pub/Server/

[Root @ localhost Server] # createrepo-g/var/ftp/pub/VT/repodata/comps-rhel5-vt.xml/var/ftp/pub/VT/

[Root @ localhost Server] # createrepo-g/var/ftp/pub/Cluster/repodata/comps-rhel5-cluster.xml/var/ftp/pub/Cluster

[Root @ localhost Server] # createrepo-g/var/ftp/pub/ClusterStorage/repodata/comps-rhel5-cluster.xml/var/ftp/pub/ClusterStorage/

(4) configure the yum Library

[Root @ localhost Server] # cp-p/etc/yum. repos. d/rhel-debuginfo.repo/etc/yum. repos. d/base. repo

[Root @ localhost Server] # vim/etc/yum. repos. d/base. repo

[Server]

Name = Red Hat Enterprise Linux-server

Baseurl = ftp: // 192.168.1.254/pub/Server

Enabled = 1

Gpgcheck = 1

Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release

[Vt]

Name = Red Hat Enterprise Linux-vt

Baseurl = ftp: // 192.168.1.254/pub/VT

Enabled = 1

Gpgcheck = 1

Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[Cluster]

Name = Red Hat Enterprise Linux-cluster

Baseurl = ftp: // 192.168.1.254/pub/Cluster

Enabled = 1

Gpgcheck = 1

Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[Clusterstorage]

Name = Red Hat Enterprise Linux-clusterStorage

Baseurl = ftp: // 192.168.1.254/pub/ClusterStorage

Enabled = 1

Gpgcheck = 1

Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

~ Now yum installation is complete. Www.linuxidc.com

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.