# Kickstart file automatically generated by anaconda. install cdrom #interactive lang en_US.UTF-8 keyboard us network --device eth0 --bootproto static --ip 192.168.10.10 --netmask 255.255.255.0 --gateway 192.168.10.5 --nameserver 192.168.10.5 --hostname gimbli.softdux.com #network --device eth1 --onboot no --bootproto dhcp --hostname gimbli.softdux.com rootpw --iscrypted $1$PCfN/uRk$lI/TG0P6vxBvw3kCIKVGy0 firewall --enabled --port=22:tcp authconfig --enableshadow --enablemd5 selinux --disabled timezone Africa/Johannesburg bootloader --location=mbr --driveorder=sda #driverdisk --source=/mnt/source/r1000-2.6.18_8.img #driverdisk --source=cdrom:/r1000-2.6.18_8.img zerombr yes clearpart --all #%include /tmp/partinfo %pre # Determine how many number/type/size of drives we have set $(list-harddrives) let numd=$#/2 # This will provide the total # of drives d1=$1 # This is the device of disk 1 d2=$3 # This is the device of disk 2, etc. d3=$5 d4=$7 d5=$9 S1=$2 # This is the size of disk 1 S2=$4 # This is the size of disk 2, etc. S3=$6 S4=$8 S5=$10 # This would be a partition scheme for three or more drives if [ $numd -ge 3 ] ; then cat << EOF >> /tmp/partinfo part raid.11 --size 200 --asprimary --ondrive=$d1 part raid.12 --size 2048 --asprimary --ondrive=$d1 part raid.13 --size 1 --grow --ondrive=$d1 part raid.21 --size 200 --asprimary --ondrive=$d2 part raid.22 --size 2048 --asprimary --ondrive=$d2 part raid.23 --size 1 --grow --ondrive=$d2 part raid.31 --size 200 --asprimary --ondrive=$d3 part raid.32 --size 2048 --asprimary --ondrive=$d3 part raid.33 --size 1 --grow --ondrive=$d3 raid /boot --fstype ext3 --device md0 --level=RAID1 raid.11 raid.21 raid.31 --spare=1 raid swap --fstype swap --device md1 --level=RAID1 raid.12 raid.22 raid.32 --spare=1 raid pv.01 --fstype ext3 --device md2 --level=RAID1 raid.13 raid.23 raid.33 --spare=1 logvol / --vgname=sysvg --size=3072 --name=root logvol /usr --vgname=sysvg --size=8192 --name=usr logvol /tmp --vgname=sysvg --size=1024 --name=tmp logvol /var --vgname=sysvg --size=8192 --name=var logvol /home --vgname=sysvg --size=20480 --name=home logvol /bck --vgname=pv.02 --size=1 --grow --name=bck EOF elif [ $numd - ge 2 ]; then cat << EOF >> /tmp/partinfo part /boot --fstype ext3 --size=150 --ondisk=$d1 part swap --size=4092 --ondisk=$d1,$d2 part pv.01 --fstype ext3 --size=100 --grow --ondisk=$d1 part pv.02 --fstype ext3 --size=100 --grow --ondisk=$d2 logvol / --vgname=sysvg --size=3072 --name=root logvol /usr --vgname=sysvg --size=8192 --name=usr logvol /tmp --vgname=sysvg --size=1024 --name=tmp logvol /var --vgname=sysvg --size=8192 --name=var logvol /home --vgname=sysvg --size=20480 --name=home EOF else cat << EOF >> /tmp/partinfo part /boot --fstype ext3 --size=150 --ondisk=$d1 part swap --size=4092 --ondisk=$d1 part pv.01 --fstype ext3 --size=100 --grow --ondisk=$d1 logvol / --vgname=sysvg --size=3072 --name=root logvol /usr --vgname=sysvg --size=8192 --name=usr logvol /tmp --vgname=sysvg --size=1024 --name=tmp logvol /var --vgname=sysvg --size=8192 --name=var logvol /home --vgname=sysvg --size=20480 --name=home EOF fi part %include /tmp/partinfo part /boot --fstype ext3 --size=150 --ondisk=$d1 part swap --size=4092 --ondisk=$d1,$d2 part pv.01 --fstype ext3 --size=100 --grow --ondisk=$d1 part pv.02 --fstype ext3 --size=100 --grow --ondisk=$d2 # LVM configuration so that we can resize /, /var and /usr/ later logvol / --vgname=sysvg --size=3072 --name=root logvol /usr --vgname=sysvg --size=8192 --name=usr logvol /tmp --vgname=sysvg --size=1024 --name=tmp logvol /var --vgname=sysvg --size=8192 --name=var logvol /home --vgname=sysvg --size=20480 --name=home #logvol /bck --vgname=pv.02 --size=1 --grow --name=bck #reboot %packages --nobase #@dialup #openssh-server #bash #@virtualization wget #lynx #mutt #links ftp #mlocate #mrtg #man #bzip2 #groff -aspell -aspell-en -bluez-utils -gpm -finger -irda-utils -isdn4k-utils -logwatch -ppp -rdate -rdist -rp-pppoe -rsh -wvdial -ypbind -yp-tools %post # Disabled Services chkconfig cpuspeed off chkconfig iptables off /sbin/chkconfig sendmail off /usr/sbin/adduser -m -G users lordmerlin echo "siloam123" | passwd lordmerlin mkdir -p /etc/system-info date --iso-8601=minutes > /etc/system-info/install-date echo "method=kickstart version=1 revision=1" > /etc/system-info/install-method exec < /dev/tty3 > /dev/tty3 chvt 3 echo echo echo "######################################" echo " " echo " Downloading the latest cPanel releas " echo " " echo "######################################" echo echo mkdir /home/cpins cd /home/cpins #wget http://layer1.cpanel.net/latest echo echo echo "######################################" echo " " echo " Busy installing cPanel....... " echo " " echo "######################################" echo echo sh latest echo echo echo "######################################" echo " " echo " The latest cPanel has been installed " echo " " echo "######################################" echo echo