# Fresh install install url --url http://192.168.2.46:8888/centos/4.5/os/i386/ lang en_US.UTF-8 langsupport --default=en_US.UTF-8 en_US.UTF-8 keyboard us skipx network --device eth0 --bootproto dhcp --hostname changeme rootpw --iscrypted $1$w0T5ZXVE$kgswLuUpy0KMCEGa5dC/N/ firewall --enabled --port=22:tcp selinux --enforcing authconfig --enableshadow --enablemd5 timezone --utc America/Chicago bootloader --location=mbr --append="console=ttyS0,115200" # Once we're done reboot reboot # Partition our disk (hda) # - clear the whole disk to use the whole disk # - create 100mb /boot # - create a vg called VolGroup00 # - create swap of 1024mb to 2048mb based on space # - create a / of 1024mb but grow to the full size clearpart --all --drives=hda --initlabel part /boot --fstype ext3 --size=100 --ondisk=hda part pv.3 --size=0 --grow --ondisk=hda volgroup VolGroup00 --pesize=32768 pv.3 logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=1024 --grow --maxsize=2048 logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow %packages --resolvedeps e2fsprogs gcc grub kernel kernel-devel lvm2 ntp sudo vim-enhanced %post # Don't upgrade a kernel package if someone accidently runs yum upgrade echo "exclude=kernel*" >> /etc/yum.conf # Don't do a graphical startup sed -i "s/^id:5:init/id:3:init/g" /etc/inittab # Don't use stock mirrorlist as it doesn't work sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-Base.repo # Enable our local mirror sed -i "s/^#baseurl/baseurl/" /etc/yum.repos.d/CentOS-Base.repo sed -i "s@baseurl=http://mirror.centos.org/centos@baseurl=http://vault.centos.org@" /etc/yum.repos.d/CentOS-Base.repo sed -i "s@releasever/@releasever.5/@" /etc/yum.repos.d/CentOS-Base.repo # Disable unnecessary init scripts chkconfig apmd off chkconfig cups off chkconfig gpm off chkconfig kudzu off chkconfig microcode_ctl off chkconfig openibd off chkconfig pcmcia off chkconfig smartd off # Enable certain services chkconfig nfs on chkconfig ntpd on # Enable serial Magic SysRqs via break sed -i "s/^kernel.sysrq = 0/kernel.sysrq = 1/g" /etc/sysctl.conf # Enable the serial console for login echo "ttyS0" >> /etc/securetty echo "" >> /etc/inittab echo "# Run a getty on the serial port" >> /etc/inittab echo "s0:2345:respawn:/sbin/agetty ttyS0 115200 -h vt100-nav" >> /etc/inittab # Add Subversion to the PATH echo 'export PATH=/opt/CollabNet_Subversion/bin:${PATH}' > /etc/profile.d/svn.sh chmod +x /etc/profile.d/svn.sh # Add Python.org's Python2.4 rpm --import http://www.python.org/ftp/python/2.4/rpms/KRUD-GPG-KEY cat <<-EOF > /etc/yum.repos.d/python24.repo [python24] name=Python 2.4 baseurl=http://www.python.org/ftp/python/2.4/rpms/fedora-3/ enabled=1 gpgcheck=1 gpgkey=http://www.python.org/ftp/python/2.4/rpms/KRUD-GPG-KEY EOF # Setup an initial resolv.conf echo "nameserver 8.8.8.8" > /etc/resolv.conf # Install Python 2.4 yum -y install python2.4 python2.4-tools python-2.4-devel # Create a BuildBot user useradd -m -d /var/lib/buildbot buildbot