#Generated by Kickstart Configurator #System language lang en_US #Language modules to install langsupport --default=en_US #System keyboard keyboard us #System mouse mouse generic3ps/2 #Sytem timezone timezone --utc Europe/Amsterdam #Root password rootpw --iscrypted 0ysN6JV.KX4OI #Reboot after installation reboot #Use text mode install text #Install Red Hat Linux instead of upgrade install #Use Web installation url --url http://www.dutchgrid.nl/mirror/www.caosity.org/cAos/centos-3/3.3/os/i386/ #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 128 --asprimary part swap --size 512 --asprimary part / --fstype ext3 --size 2048 --grow #System authorization infomation auth --useshadow --enablemd5 #Network information network --bootproto=dhcp #Firewall configuration firewall --enabled --ssh #Do not configure XWindows #skipx xconfig --depth=32 --resolution=1024x768 --defaultdesktop=GNOME #Package install information %packages --resolvedeps @ X Window System @ GNOME Desktop Environment @ Editors @ Engineering and Scientific @ Graphical Internet @ Text-based Internet #@ Graphics #@ Authoring and Publishing @ Server Configuration Tools @ Web Server @ Mail Server @ Network Servers @ Development Tools #@ Kernel Development @ Administration Tools @ System Tools @ Printing Support yum centos-yumconf lynx wget net-tools iproute junit # post-installation %post LOG=/root/postinstall.log echo "Logging to $LOG, it will be quiet now ..." exec > $LOG 2>&1 echo "Putting in a decent resolv.conf" cat > /etc/resolv.conf <> /etc/sysconfig/network-scripts/ifcfg-eth0 < /etc/yum.conf cat <> /etc/yum.conf [gang2004] name=GANG2004 baseurl=http://www.dutchgrid.nl/install/gang/ [eugridpma] name=EUGridPMA baseurl=http://www.eugridpma.org/distribution/current/ EOF fi echo "Installing CentOS GPG key in RPM GPG repository" wget -q -O /root/RPM-GPG-KEY-CentOS-3 http://www.dutchgrid.nl/mirror/www.caosity.org/cAos/centos-3/RPM-GPG-KEY-CentOS-3 rpm --import /root/RPM-GPG-KEY-CentOS-3 echo "Removing improper PostgreSQL" rpm -e rh-postgresql-devel echo "Removing improper Ant" rpm -e ant echo "installing GANG prerequisites" yum -y install j2sdk yum -y install postgresql postgresql-libs postgresql-server echo "installing EUGridPMA Accredited CAs and the EDG-Tutorial CA" yum -y install ca_policy_eugridpma ca_EDG-Tutorial wget -q -O /root/apache-ant-1.6.0-bin.tar.gz http://www.dutchgrid.nl/install/gang/apache-ant-1.6.0-bin.tar.gz wget -q -O /root/gt3.2.1-all-linux-rh9-installer.tar.gz http://www.dutchgrid.nl/mirror/ftp.globus.org/pub/gt3/3.2/3.2.1/installers/bin/gt3.2.1-all-linux-rh9-installer.tar.gz wget -q -O /root/XF86Config http://www.dutchgrid.nl/install/gang/XF86Config wget -q -O /root/HelloProject.tar.gz http://www.dutchgrid.nl/install/gang/HelloProject.tar.gz echo "Adding local user 'gang' with password" adduser -u 500 -g users -c "GANG 2004 generic user" -p TagBLGbAGIppM gang chmod 755 /home/gang echo "Performing system upgrade to latest patch level" yum -y update echo "Installing ant in /opt" ( cd /opt ; tar zxvf /root/apache-ant-1.6.0-bin.tar.gz ; ln -s apache-ant-1.6.0 ant ) echo "Symlinking java" ( cd /usr/java ; ln -s j2sdk1.4.2_06 j2sdk ) echo "Making patches to profile" cat > /etc/profile.d/gang.sh < /etc/profile.d/gang.csh <> /home/gang/.bashrc echo "Installing Globus 3.2.1" yum -y install globus-toolkit echo "Ejecting CDROM" eject cdrom > /dev/null 2>&1