r-x 1 root root 103 Feb 5 11:31 default
-rwxr-xr-x 1 root root 158364 Feb 5 10:48 vesamenu.c32
-rw-r--r-- 1 root root 1545551 Feb 1 10:05 vmlinuz
拥有帝国一切,皆有可能。欢迎访问phome.net
2、安装vsftpd
从 RedHat Enterprise Linux AS 4 update 7 安装光盘找到 vsftpd-2.0.1-6.el4.i386.rpm 软件包并安装.
vsftpd默认支持匿名下载,无需修改配置,只要启动 vsftpd 服务#service vsftpd start.
建立 RedHat Enterprise Linux AS 4 update 7 安装树.
#mount -o loop RHEL4.7-i386-AS-DVD.iso /mnt
#cp -avr /mnt /var/ftp/rhel
3、安装dhcpd
从 RedHat Enterprise Linux AS 4 update 7 安装光盘找到 dhcp-3.0.1-62.EL4.i386.rpm 软件包并安装.
修改 ll /etc/dhcpd.conf 文件:
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
#option domain-name-servers 192.168.0.1;
option time-offset -18000;
range dynamic-bootp 192.168.0.100 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.0.1;
filename "/pxelinux.0";
} |
用以上的内容替换原来的文件内容.
修改服务器网卡eth0的配置文件 /etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=static
TYPE=Ethernet
ONBOOT=yes
IPADDR=192.168.0.1
NETMASK=255.255.255.0 |
拥有帝国一切,皆有可能。欢迎访问phome.net修改dhcp启动网卡的配置文件 /etc/sysconfig/dhcpd
# Command line options here
DHCPDARGS=eth0 |
启动网卡#ifup eth0
启动dhcp服务#service dhcpd start
4、配置ks.cfg
按照下面的内容或者安装你需要的内容配置ks.cfg文件,并将文件复制大/var/ftp目录下.
# Kickstart file automatically generated by anaconda.
install
url --url=ftp://192.168.0.1/rhel/
lang zh_CN.UTF-8
langsupport --default=en_US.UTF-8 zh_CN.UTF-8 en_US.UTF-8
keyboard us
xconfig --card "ATI ES1000" --videoram 32768 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16 --startxonboot --defaultdesktop kde
text
network --device eth0 --bootproto dhcp
network --device eth1 --bootproto dhcp
rootpw --iscrypted $1$VhK0ct0.$yLPLHRWsKYEUFnNbGA4s2.
firewall --enabled --port=22:tcp --port=80:tcp --port=21:tcp --port=25:tcp
selinux --enforcing
poweroff
authconfig --enableshadow --passalgo=md5
timezone Asia/Shanghai
bootloader --location=mbr
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --initlabel
part /boot --fstype ext3 --size=200
part swap --size=2048
part / --fstype ext3 --size=100 --grow
%packages
@ editors
@ emacs
@ system-tools
@ text-internet
@ dialup
@ ftp-server
@ compat-arch-support
@ legacy-software-development
@ chinese-support
@ development-tools
sysstat
-ckermit
-OpenIPMI-tools
-openldap-clients
rdesktop
-samba-client
kernel-devel
-bluez-pin
iptraf
-wireshark
kernel
-xdelta
e2fsprogs
-zsh
-open
grub
net-snmp-utils
%post
|
|