Newbie School: Linux operating system network installation summary

Source: Internet
Author: User
Tags domain name server
Article title: Newbie School: Linux operating system network installation summary. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Environment: centos4.5 + dhcp + tftp + dns + apache + ftp + nfs + syslinux + grub4dos

Local IP address: 192.168.0.105

Note: apache, ftp, and nfs are designed to work with the content of the non-CD-free installation disc. All service configurations are not the focus of this article.

Pxelinux.0 based on syslinux

For apache, nfs, and ftp, it is best to configure dns based on the installation needs, because after the IP address is automatically obtained during the automatic installation process, the linux installation program automatically determines its machine name, will find the domain name server, if not configured, it will be stuck here for a long time.

Dhcp

Rpm-ivh dhcp-3.0.1 *

Cp/usr/share/doc/dhcp-3.0.1/dhcpd. conf. sample/etc/dhcp. conf

The original configuration is kept by default, but the following statements are added under the global configuration:

Option domain-name "rainbird.com"; // domain name to be used

Option domain-name-servers 192.168.0.105; // The dnsIP to be used. the local machine is used here.

Allow bootp;

Allow booting; // these two sentences define network boot

Next-server local IP address; // tftp server

Filename "pxelinux.0"; // defines the configuration file that tftp reads by default during network boot.

Service dhcpd start

Check whether dhcp works properly.

Tftp

Rpm-ivh tftp-server *. rpm

Vi/etc/xinitd. d/tftp

Change disable = yes to diable = no.

If you want to install a large number of systems at the same time, make sure to change wait = yes to wait = no.

OK. the configuration file of tftp is easy to handle.

Service xinetd restart

Make sure that tftp works properly.

Pxe

In fact, it is better to list this item as pxe to describe how to configure the tftp root directory. the tftp root directory is/tftpboot by default, that is to say, we only need to put what we need in this directory. here we need to use the first linux CD. by default, there is an isolinux directory, all we need to do is copy all of the above to the/tftpboot directory and use mkdir/tftpboot/pxelinux. cfg

Create a configuration directory and run the command cp/tftpboot/isolinux. cfg/tftpboot/pxelinux. cfg/default.

Copy isolinux. cfg to the configuration file default. then, we have mentioned pxelinux.0 in dhcp configuration. where is it? yes, it is stored in the current directory.

One sentence

Cp/usr/lib/syslinux/pxelinux.0/tftpboot/

Prepare to install directory tree

Copy all content of the installation CD to the default ftp directory/var/ftp/pub, and create a directory tree for easy installation.

Mount/dev/cdrom/mnt/cdrom

Cp-au/mnt/cdrom/*/var/ftp/pub

Apache

Httpd-2 rpm-ivh .*

Ln-s/var/ftp/pub/var/www/html

Service httpd start

Access http: // 192.168.0.105/pub. if you can see the directory tree of the installation disc, the installation is successful.

Vsftpd

Rpm-ivh vsftpd *

Service vsftpd start

Ftp: // 192.168.0.105/pub to check whether the directory tree can be seen

Nfs

Vi/etc/exports

/Var/ftp/pub 192.168.2.0/24 (ro, sync)

Save and exit

Service nfs restart

Dns

To reduce the time required by the installer to install the service by name

Rpm-ivh bind-9 *
Rpm-ivh cacheing -*
Vi/etc/named. conf
Zone "rainbird.com" IN {
Type master;
Files "123 ";
Allow-update {none ;};
};
Zone "0.168.192.in-addr. arpa" IN {
Type master;
Files "321 ";
Allow-update {none ;};
};
Cp localhost. zone 123
Cp named. local 321
Vi 123
Vi 321

Configuration complete

Service named start

OK. Now you can start the client and install it based on the configured pxelinux/default and ks. cfg.

Based on grub4dos

Required File: grldr (pxe startup file) fonts (font) default under xp2008.xpm.gz (background) menu. lst (default boot)

The required services are the same as above.

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.