linux 无人值守安装

[root@localhost CentOS]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm (安装系统的时候我一个包都没有安装所以这里需要手动安装)

[root@localhost CentOS]# rpm -ivh tftp-server-0.42-3.1.el5.centos.i386.rpm

[root@localhost CentOS]# rpm -ivh tftp-0.42-3.1.el5.centos.i386.rpm (安装tftp服务器)
[root@localhost CentOS]# vi /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -u nobody -s /tftpboot
        disable                 = yes (yes修改成no)
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

复制一下配置文件到/tftpboot/
[root@localhost tftpboot]# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
[root@localhost mnt]# cp images/pxeboot/initrd.img /tftpboot/
[root@localhost mnt]# cp images/pxeboot/vmlinuz /tftpboot/
[root@localhost mnt]# cp isolinux/*.msg  /tftpboot/

在/tftpboot/建立文件夹 pxelinux.cfg
[root@localhost tftpboot]# mkdir pxelinux.cfg
[root@localhost mnt]# cp isolinux/isolinux.cfg /tftpboot/pxelinux.cfg/default

安装dhcp 服务器

[root@localhost CentOS]# rpm -ivh dhcp-3.0.5-3.el5.i386.rpm
Preparing...                ########################################### [100%]
   1:dhcp                   ########################################### [100%]
[root@localhost CentOS]# rpm -ivh dhcp-devel-3.0.5-3.el5.i386.rpm
Preparing...                ########################################### [100%]
   1:dhcp-devel             ########################################### [100%]
[root@localhost CentOS]# mv /etc/dhcpd.conf  /etc/dhcpd.conf.bak
[root@localhost CentOS]# cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
[root@localhost CentOS]# vi /etc/dhcpd.conf

ddns-update-style interim;
ignore client-updates;
next-server 192.168.0.2;
filename "/pxelinux.0";

以上2个配置文件必须要写否则的话会失败

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
        option routers                  192.168.0.1;
        option subnet-mask              255.255.255.0;

        option nis-domain               "domain.org";
        option domain-name              "domain.org";
        option domain-name-servers      192.168.1.1;

        option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.1.1;
#       option netbios-name-servers     192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#       option netbios-node-type 2;

        range dynamic-bootp 192.168.0.128 192.168.0.254;

搭建ftp服务器把光盘挂在到ftp的默认路径在安装过程之后会让你选择安装的方式以及路径
[root@localhost ftp]# rpm -ivh vsftpd-2.0.5-10.el5.i386.rpm
[root@localhost ftp]# service vsftpd start
[root@localhost ftp]# mount /dev/cdrom /var/ftp

基本上算是大功告成了,还可以安装KickStart 这软件主要是让你提前配置好安装过程之后需要输入的选项,这里就不写那么多了。

 

 

 

 


 

你可能感兴趣的:(linux,安装,server,protocol,default)