2.配置Apache
# yum -y install httpd
# cd /usr/local/games
# wget http://mirrors.163.com/ubuntu-releases/12.04/ubuntu-12.04-alternate-amd64.iso
# mount -o loop /usr/local/games/ubuntu-12.04-alternate-amd64.iso /var/www/html/ubuntu1204/
# service httpd restart
# chkconfig --levels 35 httpd on
3.配置tftp
# yum -y install tftp-server tftp
# cat /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 = -s /var/lib/tftpboot
disable = no #"yes"改为"no"
per_source = 11
cps = 100 2
flags = IPv4
}
# cp -rf /var/www/html/ubuntu1204/install/netboot/* /var/lib/tftpboot/
# service xinetd restart
附ks.cfg
#Generated by Kickstart Configurator
#platform=x86
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone Asia/Shanghai
#Root password
rootpw --iscrypted $1$J0eYtxji$hzWrjxysHMaxAYPAEfwUp.
#Initial user
user --disabled
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url http://192.168.2.25/ubuntu1204
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext4 --size 200
part swap --size 1600
part / --fstype ext4 --size 10000
part /opt --fstype ext4 --size 1 --grow
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --disabled
#Do not configure the X Window System
skipx