/A Sample ks.cfg Kickstart Configuration File ------------------------------------------------------------------------ / # -------- This is an example ks.cfg, kickstart config file. -------- # Comment lines start with "#" and continue until the end of the line. # Keywords must be in order. Changing their order may produce bad # results. # Specify Language using "lang" keyword followed by two letter ISO # language code. lang en # Specify network paramaters. For statically assigned IPs, we must # include ip address, netmask, and gateway. This must all be # contained on a single line. Although it is shown here wrapped with # the backslash character, this is not allowed. network --bootproto static \ --ip 192.168.1.4 \ --netmask 255.255.255.0 \ --gateway 192.168.1.254 # Specify the install medium. We're using a cdrom, so "cdrom." Cdrom # Specify keyboard layout. keyboard us # Partitions. First, we decide whether or not to erase the master # boot record. This is a good idea when installing on new hard # drives. We say "no." Next, we make some space. We can clear all # partitions (i.e., NTFS, FAT, HPFS, and Linux EXT 2) with "clearpart # --all" or we can remove only Linux partitions with "clearpart # --linux." We then need to create partitions for our install. There # are two mandatory partitions, a swap partition, and a root or "/" # partition. We create them with the "part" keyword followed by the # mountpoint (i.e., "/home" or "/boot" or "/"). We use "--size xx" to # specify the partition size. "xx" is the size value in MegaBytes. # We may also use "--grow" to have the partition grow to fill any # unused space on the disk. The exact form is: # part --size [--grow] [--maxsize ] zerombr no clearpart --linux part / --size 1000 --grow part swap --size 64 # Next we specify the install path. This can be either "install" or # upgrade." Install # Specifying the mouse requires knowing the type codes. The general # form is "mouse --kickstart mousetype [--device ]." Our # device is autoprobed (ps/2) so we don't need to include it. mouse --kickstart generic3ps/2 # Specify the time zone. If the system clock is set to UTC, this can # be specified: "timezone --utc US/Eastern." timezone US/Eastern # Configuring X Windows is a matter of using the keyword "xconfig." # If the graphics card is PCI, there is probably no need to specify # the X server. The monitor is specified as '--monitor # "known_monitor_type".' Refer to the Red Hat manual for more # information on this. xconfig --monitor "HP D1195A" # Specify the root password rootpw papabear # Here we specify lilo (Linux Loader) parameters. We will tell lilo # to reside in the master boot record (mbr). lilo --location mbr # Finally, we tell kickstart which components (packages grouped for # specific function) and which individual packages to install. # Components are preceded by "@ " and packages are listed without a # preceding character. %packages # Install these Components @ Base @ Printer Support # Install these additional packages ImageMagick ORBit X11R6-contrib XFree86 XFree86-75dpi-fonts XFree86-libs XFree86-xfs Xaw3d Xconfigurator audiofile bind-utils chkfontpath control-center control-panel desktop-backgrounds . . ( List shortened for printability. ) . # A script can be run when the kickstart installation is finished. # This script will include any lines following the "%post" keyword. %post echo "Kickstart-installed RH6.0 on `/bin/date`" > /etc/motd #-------------- END OF KS.CFG FILE-------------------------------