#Generated by Kickstart Configurator #platform=x86, AMD64, or Intel EM64T #System language lang en_US #Language modules to install langsupport en_US #System keyboard keyboard us #System mouse mouse #Sytem timezone timezone --utc Australia/Melbourne #Root password rootpw selinux #Reboot after installation #reboot #Install OS instead of upgrade install #Use CDROM installation media #cdrom #Use Web installation #url --url http://SERVERIP/fc4 #Use NFS installation Media nfs --server=SERVERIP --dir=/exp/fc4 #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 ext3 --size 100 --asprimary part pv.10 --size=1 --grow --asprimary volgroup mls pv.10 logvol / --fstype ext3 --name=root --vgname=mls --size=5000 logvol swap --fstype swap --name=swap --vgname=mls --size=500 #part / --fstype ext3 --size 5000 #part swap --size 500 #System authorization infomation auth --useshadow --enablemd5 #Network information network --bootproto=dhcp --device=eth0 --hostname=mls #Firewall configuration firewall --enabled --ssh #SELinux configuration selinux --enforcing #Do not configure XWindows skipx # comment the above line and uncomment the next for a 1280x1024 TFT display #xconfig --depth=16 --resolution=1280x1024 --defaultdesktop=GNOME --startxonboot --monitor="LCD Panel 1280x1024" #Package install information %packages #@ base-x #@ gnome-desktop #@ editors #@ graphical-internet bind ntp @ text-internet lynx #@ web-server #@ mail-server @ development-tools postfix %post #mount SERVERIP:/exp/fc4 -o ro /mnt mkdir -p /etc/yum.repos.d/unused mv /etc/yum.repos.d/* /etc/yum.repos.d/unused cd /tmp wget http://SERVERIP/rpms.tar tar xf rpms.tar rm rpms.tar # wget http://www.coker.com.au/selinux/mls/etc.tgz wget http://SERVERIP/etc.tgz cd / tar xvzf /tmp/etc.tgz rm /tmp/etc.tgz rpm -e oprofile rpm -e acpid apmd pcmcia-cs rpm -e bluez-utils rpm -e redhat-lsb cups rpm -e nfs-utils rpm -e autofs rpm -e gcc-gfortran libgfortran rpm -e isdn4k-utils rpm -e ppp rp-pppoe wvdial rpm -e tcsh cvs rpm -e mgetty minicom mutt rpm -U /tmp/*.rpm 2>&1 | grep -v snd.usb rm /tmp/*.rpm mv /etc/selinux/mls/contexts/default_contexts.mine /etc/selinux/mls/contexts/default_contexts echo "export http_proxy=http://PROXYIP:8080/" >> /etc/profile echo "export PS1=\"[\\\`id -Z\\\`@\h \W]# \"" >> /etc/profile rpm --import /usr/share/rhn/*GPG* chkconfig sendmail off chkconfig postfix on echo "myhostname = mls.coker.com.au" >> /etc/postfix/main.cf /usr/sbin/alternatives --set mta /usr/sbin/sendmail.postfix rpm -e sendmail newaliases chkconfig named on chkconfig ntpd on chkconfig mDNSResponder off chkconfig nifd off sed -e "s/server 0.pool.ntp.org/server SERVERIP/" < /etc/ntp.conf | grep -v server...pool.ntp.org > /etc/ntp.conf.new mv /etc/ntp.conf.new /etc/ntp.conf lokkit -q -n --selinuxtype=mls setenforce 0 ln -s /etc/selinux/mls/src/policy /etc/selinux/src cd /etc/selinux/src mv ethereal.te unused make install cp /boot/grub/grub.conf /boot/grub/grub.conf.bak sed -e "s/root$/root enforcing=0/" < /boot/grub/grub.conf.bak > /boot/grub/grub.conf echo "mail.* /dev/tty11" >> /etc/syslog.conf echo "*.info;mail.none;news.none;authpriv.none;cron.none /dev/tty12" >> /etc/syslog.conf tune2fs -c 7 /dev/hda1 tune2fs -c 17 /dev/mls/root