Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install RHEL 5.3 through services such as Dhcp+Vsftp+Tftp+Xinted

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to install RHEL 5.3 through Dhcp+Vsftp+Tftp+Xinted and other services", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to install RHEL 5.3 through Dhcp+Vsftp+Tftp+Xinted and other services" this article.

First of all, you need to prepare the system image of RHEL 5.4. For later installation of software packages and installation of operating systems.

For example, the current system image name is: rhel5.4.iso path:/var/iso/rhel5.4.iso

Start the installation. First mount it in the MNT directory to facilitate the installation of FTP service:

# mount-o loop / var/iso/rhel5.4.iso / mnt

Start the installation:

# rpm-ivh / mnt/Server/vsftpd*

Set the boot to start automatically:

# chkconfig vsftpd on

Restart the service:

# service vsftpd restart

Uninstall:

# umount / mnt

Remount to the new directory:

# mkdir / var/ftp/pub/package

# mount-o loop / var/iso/rhel5.4.iso / var/ftp/pub/package/

Edit the YUM library. Specify the correct YUM source:

# vim / etc/yum.repo.d/server.repo [base] name=redhat enterprise linux baseurl= file:///var/ftp/pub/package/Server/ enabled=1 gpgcheck=0

Install the TFTP service:

# yum install tftp*

# chkconfig tftp on

Restart the XINETD service (because TFTP is based on it, not a stand-alone service):

# service xinetd restart

Copy some of the files necessary for PXE to the specified directory

# cp / usr/lib/syslinux/pxelinux.0 / tftpboot/ # cp / var/ftp/pub/package/images/pxeboot/initrd.img / tftpboot/ # cp / var/ftp/pub/package/images/pxeboot/vmlinuz / tftpboot/ # mkdir / tftpboot/pxelinux.cfg

Edit the parameters that do not require manual operation after the system is booted:

# cp / var/ftp/pub/package/isolinux/isolinux.cfg / tftpboot/pxeboot.cfg/default # vim default default linux prompt 1 timeout 10 # this is used to modify the wait time after the system loads the initiator by default You can shorten display boot.msg F1 boot.msg F2 options.msg F3 general.msg F4 param.msg F5 rescue.msg label linux kernel vmlinuz append initrd=initrd.img ks= ftp://192.168.1.101/pub/ks.cfg # focus on label text kernel vmlinuz append initrd=initrd.img text # cp ks.cfg / var/ftp/pub/

Note: I prepared the ks.cfg in advance. For a simple test, you can use the following. To configure the KS file yourself, you can install the system-config-kickstart package first. Then run the system-config-kickstart command

# # # auth-- useshadow-- enablemd5 bootloader-- location=mbr key-- skip zerombr clearpart-- all-- initlabel text firewall-- disable firstboot-- disable keyboard us lang en_US logging-- level=info url-- url= ftp://192.168.1.101/pub/cdrom/ # Root password rootpw-- iscrypted $1 $dT2L65Y6 $baJycC0jPzMYrjGL2IXq01 selinux-- enforcing timezone Asia/Shanghai install xconfig-defaultdesktop=GNOME-- depth=8-- resolution=640x480 part / boot-- bytes-per-inode=4096-- fstype= "ext3"-- size=100 part /- -bytes-per-inode=4096-- fstype= "ext3"-- size=4000 part swap-- bytes-per-inode=4096-- fstype= "swap"-- size=2048% packages @ gnome-desktop # #

Next is the implementation of the DHCP function:

# yum install dhcp*

# chkconfig dhcpd on

# cp / usr/share/doc/dhcpd-3.0.5/dhcpd.conf.sample / etc/dhcpd.conf

# vim / etc/dhcpd.conf

In the conf file, modify the IP of different network segments according to your network segment:

# ddns-update-style interim Ignore client-updates; subnet 192.168.1.0 netmask 255.255.255.0 {option routers 192.168.1.101; option subnet-mask 255.255.255.0; option time-offset-18000; # Eastern Standard Time range dynamic-bootp 192.168.1.128 192.168.1.254; default-lease-time 21600 Max-lease-time 43200; filename "pxelinux.0"; # next-server 192.168.1.101 must be added to this line # this line must be added} # #

Client settings:

Boot and modify the customer host BIOS to the network boot mode. Then the system will automatically search the DHCP server of this network segment, and after the search, it will be truly unattended. All you have to do is stand by and watch your results.

The above is all the contents of the article "how to install RHEL 5.3 through Dhcp+Vsftp+Tftp+Xinted and other services". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report