# Was just "en" 
lang en_US
network --bootproto dhcp
#network --bootproto static --ip=xxx.xxx.xxx.xxx --netmask=255.255.255.0
--gateway=xxx.xxx.xxx.xxx --nameserver=xxx.xxx.xxx.xxx
cdrom
keyboard us
zerombr yes
## This is going to clear ALL partitions on ALL drives
## This is going to clear ALL partitions on ALL drives so be carefull
clearpart --all
#clearpart --linux
part / --size 1000
part swap --size 127
install
#update
mouse genericps/2
timezone --utc US/Pacific
#xconfig --monitor "Generic Multisync"
xconfig --server "SVGA" --hsync "31.5,36-65" --vsync "50-70"
rootpw xxxxxx
auth --useshadow --enablemd5
lilo --location mbr
%packages
@ Networked Workstation
@ X Window System
@ DOS/Windows Connectivity
@ Mail/WWW/News Tools
cpp
xntp3
%post --nochroot
## This will only work in the --nochroot mode in Fermi Linux 6.1.1
## This is just a example of a real kickstart file.  It was
## used at the 1999 Usenix LISA confernce to install 40 PC's in
## 1.5 hours with RedHt Linux 6.1
echo "Log file in /tmp/postinstall.log" >/dev/tty5
#
CHROOT="/mnt/sysimage"
INSTALLIMAGE="/mnt/source"
PATH=$PATH:/$CHROOT/bin:/$CHROOT/usr/bin:/$CHROOT/sbin:/$CHROOT/usr/sbin
VERSION=Usenix
SECUREHOST=dhcp201
NTPHOST=tserver
TCLHOST=dhcp201
#
RUN="chroot /mnt/sysimage"
#
#
touch $CHROOT/tmp/postinstall.log
## The following is to install ssh.  We put it in a special place on the cdrom
## so that we can control the export of this cdrom
if [ -d /$INSTALLIMAGE/DONOTEXPORT ] ; then
   /$CHROOT/bin/rpm --root $CHROOT -i /$INSTALLIMAGE/DONOTEXPORT/*.i386.rpm >>  $CHROOT/tmp/postinstall.log 2>&1
fi 
## Set up some of the on boot daemons the way we like
$RUN /sbin/chkconfig xntpd on
$RUN /sbin/chkconfig linuxconf off
## Run the customize for Usenix script in a chroot environment 
cp /$INSTALLIMAGE/Usenix/chroot.sh /$CHROOT/tmp/chroot.sh
chmod 0777 $CHROOT/tmp/chroot.sh
$RUN  /tmp/chroot.sh >> $CHROOT/tmp/postinstall.log 2>&1
## Fix up some ssh config options
#echo "DenyHosts *" >> /$CHROOT/etc/sshd_config
echo "AllowHosts *${SECUREHOST}*" >> /$CHROOT/etc/sshd_config
echo "AllowSHosts *${SECUREHOST}*" >> /$CHROOT/etc/sshd_config
echo "AllowUsers root" >> /$CHROOT/etc/sshd_config
echo "${SECUREHOST} root" > /$CHROOT/root/.shosts
chmod 600 /$CHROOT/root/.shosts
## Fix up the xntp time sync host
sed -e "/^server/s/127.127.1.0/${NTPHOST}/" /$CHROOT/etc/ntp.conf >/$CHROOT/tmp/ntp.conf
cp /$CHROOT/tmp/ntp.conf /$CHROOT/etc/ntp.conf
## Remove lpr so that they cannot print
cd /$CHROOT
rm usr/bin/lpr
## Untar the Usenix stuff.  In this case we have setiathome
for a in $INSTALLIMAGE/Usenix/*.tar
do
 tar -xf $a >> $CHROOT/tmp/postinstall.log 2>&1
done
## Fix up inittab so that users cannot just reboot into single user mode 
## without a password
echo "~~:S:wait:/bin/sulogin" >/tmp/stuff
cat $CHROOT/etc/inittab /tmp/stuff >/tmp/otherstuff
cp /tmp/otherstuff /$CHROOT/etc/inittab
## Well the tulip ethernet driver that came with RedHat 6.1 did not work
## with the ethernet cards that we have.  So we got a newer driver and
## put it on the floppy and now have to install it
ln -s /$CHROOT/dev/fd0 /dev/fd0
$CHROOT/usr/bin/mcopy a:/tulip.gz /tmp
$CHROOT/usr/bin/gunzip /tmp/tulip.gz
cp /tmp/tulip $CHROOT/lib/modules/2.2.12-20/net/tulip.o
## Well the Xserver for the Trident 3DImage 9850 did not work until we
## turned off the accel option.
cp /$CHROOT/etc/X11/XF86Config /$CHROOT/etc/X11/XF86Save
sed -e '/Identifier  "Trident Microsystems|3DImage 9850"/a\
Option "noaccel"\
Option "no_mmio"' /$CHROOT/etc/X11/XF86Config >/$CHROOT/tmp/XF86
cp /$CHROOT/tmp/XF86 /$CHROOT/etc/X11/XF86Config
