#CentOS Asterisk@Home Kickstart with build env #System language lang en_US #Language modules to install langsupport en_US #System keyboard keyboard us #System mouse mouse none #Sytem timezone timezone America/New_York #Root password rootpw --iscrypted $1$ktpzON6C$w9JcCCFIjJY57Uq42mcvW1 #Reboot after installation reboot #Use text mode install text #Install Red Hat Linux instead of upgrade install #Use CDROM installation media cdrom #System bootloader configuration bootloader --location=mbr #Clear the Master Boot Record zerombr yes #Partition clearing information clearpart --all --initlabel part /boot --fstype ext3 --size=100 part / --fstype ext3 --size=1024 --grow part swap --size=256 --grow --maxsize=768 #System authorization infomation auth --useshadow --enablemd5 #Network information network --bootproto=dhcp --device=eth0 #Firewall configuration firewall --disabled selinux --disabled #Do not configure XWindows skipx #Package install information %packages --resolvedeps audiofile-devel bison cpp curl cvs dhcp flex gcc gcc-c++ gd glibc-devel glibc-headers glibc-kernheaders grub httpd kernel kernel-sourcecode krb5-devel libcap libpcap libstdc++-devel libtermcap-devel libtiff libtiff-devel libxml2 libxml2-devel lm_sensors mkisofs mysql mysql-devel mysql-server ncurses-devel newt-devel ntp openssl096b openssl-devel perl perl-libwww-perl perl-DBD-MySQL perl-DBI perl-Time-HiRes perl-XML-Parser php php-mysql php-gd readline readline-devel system-config-date system-config-keyboard rpm-build slang-devel sox tftp-server vsftpd zlib-devel %post --nochroot mkdir /mnt/source mount /dev/hda /mnt/source mount /tmp/cdrom /mnt/source mkdir /mnt/sysimage/var/aah_load #cd /mnt/sysimage/var/aah_load #tar xvfz /mnt/source/asteriskathome.tar.gz #create build env mkdir /mnt/sysimage/var/build_aah #mkdir /mnt/sysimage/var/build_aah/disk1 #cp -r /mnt/source/* /mnt/sysimage/var/build_aah/disk1 #cp /mnt/source/.discinfo /mnt/sysimage/var/build_aah/disk1 #unmount CD-ROM umount /mnt/source # ------------------------------------------ # Post install # ------------------------------------------ %post #echo "/var/aah_load/install_all.sh" >> /etc/rc3.d/S99local echo "NETWORKING=yes" > /etc/sysconfig/network echo "HOSTNAME=generico.local" >> /etc/sysconfig/network echo "# Do not remove the following line, or various programs" > /etc/hosts echo "# that require network functionality will fail." >> /etc/hosts echo "127.0.0.1 generico.local generico localhost" >> /etc/hosts echo "driftfile /var/lib/ntp/drift" > /etc/ntp.conf echo "server 0.pool.ntp.org" >> /etc/ntp.conf echo "server 1.pool.ntp.org" >> /etc/ntp.conf echo "server 2.pool.ntp.org" >> /etc/ntp.conf echo "server 127.127.1.0" >> /etc/ntp.conf echo "fudge 127.127.1.0 stratum 10" >> /etc/ntp.conf #create build env mkdir /var/build_aah/asterisk_src mkdir /var/build_aah/install_files mkdir /var/build_aah/configs mkdir /var/build_aah/ks_config mkdir /var/build_aah/www mkdir /var/build_aah/tftpboot mkdir /var/build_aah/scripts #cp /var/aah_load/* /var/build_aah/install_files #cd /var/build_aah #tar xvf /var/aah_load/build.tar #cd /var/build_aah/asterisk_src #tar xvfz /var/aah_load/asterisk_src.tar.gz #cd /var/build_aah/www #tar xzvf /var/aah_load/webapps.tar.gz #cd /var/build_aah/ks_config #tar xvf /var/aah_load/ks_config.tar #cd /var/build_aah/configs #tar xvf /var/aah_load/asterisk_config.tar #cd /var/build_aah/tftpboot #tar xvf /var/aah_load/tftpboot.tar #cd /var/build_aah/ #tar xvfz /var/aah_load/AMP.tar.gz #cd /var/build_aah/scripts #tar xvfz /var/aah_load/scripts.tar.gz #cp -f /var/aah_load/splash.xpm.gz /boot/grub cp -f /boot/grub/grub.conf /boot/grub/grub.conf.old sed -e "s/hiddenmenu/#hiddenmenu/" /boot/grub/grub.conf.old > /boot/grub/grub.conf