全部博文(409)
分类:
2012-03-21 20:45:53
text
key --skip
keyboard us
lang en_US
langsupport --default en_US en_US
#network --bootproto dhcp
network --bootproto=static --ip=172.16.24.1 --netmask=255.255.0.0 --gateway=172.16.0.1 --nameserver=172.16.0.1
url --url ftp://172.16.0.1/pub
logging --host=172.16.0.1
zerombr yes
clearpart --all
part swap --size 1024
part /boot --size 100
part pv.01 --size 51200
volgroup vol0 pv.01
logvol / --vgname=vol0 --size=10000 --name=root
logvol /home --vgname=vol0 --size=500 --name=home
logvol /var --vgname=vol0 --size=10000 --name=var
logvol /usr --vgname=vol0 --size=10000 --name=usr
logvol /usr/local --vgname=vol0 --size=10000 --name=usrlocal
timezone Asia/Shanghai --utc
xconfig --resolution=1024x768 --depth=16 –startxonboot
rootpw redhat
authconfig --useshadow --enablemd5
firewall --disabled
bootloader
reboot
%packages
@ GNOME Desktop Environment
@ X Window System
@ Printing Support
# KDE is huge...install it if you wish
#@ KDE
@ Development Tools
#@ Windows File Server
#@ Web Server
elinks
openssh
openssh-server
openssh-clients
vim-enhanced
samba-common
samba-client
gimp
gimp-data-extras
enscript
libcap
ntp
coreutils
elfutils
elfutils-libelf
gimp-print-plugin
gnome-icon-theme
gstreamer
gstreamer-tools
libgnomeprint22
libgnomeprintui22
libgsf
libIDL
libraw1394
nautilus-cd-burner
openmotif
pyorbit
startup-notification
ttmkfdir
firefox
mutt
screen
#定制随系统安装的软件包
%post
ntpdate -b 172.16.0.1
hwclock --systohc –utc
cat > /etc/ntp.conf <
restrict default ignore
restrict 127.0.0.1
restrict 172.16.0.1
server 172.16.0.1
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
END
echo "172.16.0.1" >> /etc/ntp/step-tickers
chkconfig ntpd on
useradd student
echo "student" | passwd --stdin student
useradd visitor
echo "password" | passwd --stdin visitor
mkdir /home/student/Desktop
${httpget} -source http://172.16.0.1/pub/gls/ClassInteractives.desktop > /home/student/Desktop/Class\ Interactives.desktop
chown -R student:student /home/student/Desktop
perl -pi -e 's,DAILY_UPDATE=no,DAILY_UPDATE=yes,g' /etc/updatedb.conf
# mkisofs -o boot.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T iso/