using kickstart to automate Redhat/Fedora setups

22 Oct 2006

Using kickstart to automate Redhat/Fedora setups

(tested on Fedora Core 3)

  • copy all of DVD files to a directory, and export via NFS (more features for setups than ftp or http). For example:
$ cat /etc/exports
 /var/fc3 *(ro,sync)
  • copy the attached ks.cfg to the root of the exported directory (root password is ‘password’)
  • boot from a boot CD (faster) or floppy, use the following command:
linux ks=nfs:192.168.1.1:/var/fc3/ks.cfg
  • for troubleshooting, look at logs on consoles F2 onwards
# Kickstart file automatically generated by anaconda.

install
nfs --server=172.16.40.131 --dir=/var/ftp/pub
#autostep
reboot
text
lang en_US.UTF-8
langsupport --default=en_AU.UTF-8 en_AU.UTF-8
keyboard us
#xconfig --card "ATI Radeon Mobility M9" --videoram 32704 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16 --startxonboot  --defaultdesktop gnome
xconfig --resolution 800x600 --depth 16 --startxonboot  --defaultdesktop gnome
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$W9a/KVA6$DXVjD3cnKgpN0WdMygzcn.
firewall --disabled
selinux --disabled
authconfig --enableshadow --enablemd5
timezone Australia/Sydney
bootloader --location=mbr --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all
part / --fstype "ext3" --size=7000 --asprimary
part swap --size=512 --asprimary

%packages
@ office
@ editors
@ system-tools
@ gnome-software-development
@ text-internet
@ x-software-development
@ dns-server
@ gnome-desktop
@ dialup
@ ftp-server
@ games
@ emacs
@ smb-server
@ base-x
@ graphics
@ web-server
@ printing
@ mail-server
@ server-cfg
@ sound-and-video
@ admin-tools
@ development-tools
@ graphical-internet
kernel
pcmcia-cs
e2fsprogs
grub

%post
comments powered by Disqus

  « Previous: Next: »