# Kickstart Installation for PSLIB (CentOS 4) install interactive #text #url --url ftp://ftp.pslib.cz/pub/linux/centos.org/4/os/i386 nfs --server=ftp.pslib.cz --dir=/var/ftp/pub/linux/centos.org/4/isos/x86_64 lang cs_CZ.UTF-8 langsupport cs_CZ.UTF-8 keyboard cz-lat2 mouse #skipx xconfig --startxonboot --resolution 1024x768 #xconfig --card "ATI Radeon 7500" --videoram 65536 --hsync 30-63 --vsync 55-75 --resolution 800x600 --depth 16 #firstboot --disable network --device eth0 --bootproto dhcp #rootpw root.root #rootpw --iscrypted $1$1ZG9xUGw$PZhGCmVWqLkWzLRoBWP4V1 firewall --disabled selinux --permissive authconfig --enableshadow --enablemd5 timezone Europe/Prague bootloader --location=mbr reboot # 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 --linux #autopart #part / --fstype "ext3" --onpart hda2 #part swap --onpart hda3 %packages #@ czech-support #@ base-x #@ gnome-desktop #@ editors #@ games #@ graphical-internet #@ graphics #@ office #@ sound-and-video #-emacs #-emacs-el #-emacs-leim #-emacspeak #-irda-utils #-isdn4k-utils #-kernel-smp #-netdump #-netdump-server #-nfs-utils #-portmap #-rhn-applet #-ypbind #-ypserv #-yp-tools %post set -x PATH=/sbin:/bin:/usr/sbin:/usr/bin # modify /etc/inittab and /boot/grub/grub.conf perl -pi -e 's/(mingetty) (tty1)/$1 --noclear $2/' /etc/inittab perl -pi -e 's/default=0/default=1/; s/title Other/title Windows/' /boot/grub/grub.conf perl -pi -e 's@(cz_qwerty")@us,$1\n\tOption\t"XkbOptions" "grp:shift_toggle,grp_led:scroll,grp:switch"@' /etc/X11/xorg.conf # import public keys to the RPM database TMPDIR=$(mktemp -d /tmp/pubkeys.XXXXXX) wget -q -P $TMPDIR -nd -m -np ftp://ftp.pslib.cz/pub/local/ks/pubkeys/ rpm --import ${TMPDIR}/RPM* rm -rf $TMPDIR # install our yum #export URL="http://ftp.pslib.cz/pub/users/Milan.Kerslager/RHEL-4/stable/" #rpm -Uvh ${URL}$(wget -O- -q ${URL} | grep yum | perl -p -e 's@.*(yum[a-z0-9\.-]*).*@$1@') # install our yum.conf #wget -q http://ftp.pslib.cz/pub/local/ks/ict-t4-yum.conf #mv -f ict-c4-yum.conf /etc/yum.conf # update the system #yum -y update # delete all kernels except latest (after update) #if [ $(rpm -q kernel | wc -l) -gt 1 ]; then # rpm -e $(rpm -q kernel | sed '$d') #fi # disable all installed services (at startup) #chkconfig --list | grep '[35]:on' | awk '{print "chkconfig "$1" off"}' | sh # enable services for runlevel 3 and 5 #for i in gpm network readahead_early readahead sendmail syslog; do # chkconfig --level 35 $i on #done # enable for runlevel 5 only (multiuser with X Windows system) #for i in haldaemon messagebus xfs; do # chkconfig --level 5 $i on #done