# # Kickstart configuration file # # # This helps the RedHat anaconda installation program to automatically # configure and install Linux on your machine. # # set the language to US english lang en_US langsupport en_US keyboard us # default is a general 3 button ps/2 mouse mouse generic3ps/2 # set the timezone to EDT timezone America/New_York # set a root password -- you can also encrypt this rootpw _some_password_ # uncomment to have the system reboot after install has completed #reboot # install in text mode text # use the Lilo boot loader, turn on the linear flag, and write it into # the master boot record bootloader --useLilo --linear --location=mbr # uncomment to have the user confirms each dialog #interactive # this is like interactive but the user confirms each page not each dialog #autostep # install Linux, don't upgrade install # install from the cdrom cdrom # clear all of the existing partitions from the disk and make new ones clearpart --all --initlabel part /boot --fstype ext3 --size 52 part swap --size 1024 part / --fstype ext3 --size 2048 --grow # You can configure network settings here. I am working toward using # dhcp an pump to get the configs for a certain host and then fix them # statically at the end of the installation process. #network --bootproto static --ip ... --netmask ... --gateway ... --nameserver ... # configure how passwords are stored auth --useshadow --enablemd5 # setup a medium strength firewall and allow ssh incoming connections firewall --medium --ssh # skip the x windows configuration skipx # # The following lists the RPMs that will be installed by the system. # The @ lines are sort-of macros which are defined in the # RedHat/base/comps file on the cdrom. I've added nc and zsh at the # end because I wanted them and they weren't in any of the @ lines. # # An alternative to this list would be to list the specific RPMs to # install although that might get big. You will need to check this # list carefully since we are going to pair down the RPMs so they fill # on one CD. # %packages @X Window System @Network Support @Spelling @NFS File Server @DNS Name Server @Network Managed Workstation @Emacs @Utilities @Software Development nc zsh # # The following commands are executed at the end of the installation # process by /bin/sh while you are chrooted into the new system. This # allows you to add user accounts, turn on or off autobooted software, # etc.. # # Note that at the end of the script I have an example of how to get # input from the user. I'd like to hear if anyone has better ways of # doing this. My way basically uses the 3rd virtual terminal to both # echo to and read from. It works. # %post # turn off packages that we don't want running #echo Turning off some packages #/sbin/chkconfig --level 0123456 apmd off #/sbin/chkconfig --level 0123456 sendmail off #/sbin/chkconfig --level 0123456 lpd off #/sbin/chkconfig --level 0123456 xfs off #/sbin/chkconfig --level 0123456 gpm off #/sbin/chkconfig --level 0123456 wine off # turning on packages that we need #echo Turning on some packages #/sbin/chkconfig --level 345 ntpd on # Maybe add a ntp server to the ntp.conf #echo Adding entries to ntp.conf #cat >> /etc/ntp.conf << EOF #server my.good.ntp.home.com #EOF # Maybe add some entries to the sudoers file #echo Adding some entries to the sudoers file #cat >> /etc/sudoers << EOF #me ALL = (ALL) ALL #EOF # example of user i/o if necessary # # # redirect IO to the 3rd terminal -- thanks Charles. # exec < /dev/tty3 > /dev/tty3 # # echo -n "Enter something: " # read yn # echo "We got $yn"