# Kickstart file automatically generated by anaconda. install cdrom lang en_US.UTF-8 langsupport --default en_US.UTF-8 en_US.UTF-8 #keyboard jp106 mouse none skipx network --device eth0 --bootproto static --ip 172.16.1.1 --netmask 255.255.255.0 #rootpw abc123 firewall --disabled authconfig --enableshadow --enablemd5 #timezone Asia/Tokyo bootloader --location=mbr # 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 --all #part / --fstype ext3 --onpart sda1 #part /home --fstype ext3 --onpart sda2 #part /var --fstype ext3 --onpart sda3 #part swap --onpart sda5 %packages @ web-server @ mail-server @ dns-server @ text-internet -rp-pppoe -httpd-manual kernel -mutt -squid -dovecot -slrn -caching-nameserver -tux grub -php-ldap bind-chroot expect telnet-server perl-URI net-snmp %post # change LogFormat perl -pi.bak -e 's/LogFormat "%h %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\"" combined/LogFormat "%v %h %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\"" combined/g' /etc/httpd/conf/httpd.conf # disable error alias perl -pi.bak -e 's|^Alias /error/|#Alias /error/|g' /etc/httpd/conf/httpd.conf # change /etc/httpd/conf.d/php.conf perl -pi.bak -e 's/^AddType/#AddType/' /etc/httpd/conf.d/php.conf # enable quota perl -pi.bak -e 'if (/^LABEL=\/home/) { s/defaults/defaults,usrquota,grpquota/}' /etc/fstab /bin/mount -o remount /home /sbin/quotacheck -acugfm /sbin/quotaon -aug ## change nsswitch.conf /bin/cp /etc/nsswitch.conf /etc/nsswitch.conf.bqsave perl -pi -e 's/^passwd: files$/passwd: db files/g' /etc/nsswitch.conf perl -pi -e 's/^shadow: files$/shadow: db files/g' /etc/nsswitch.conf perl -pi -e 's/^group: files$/group: db files/g' /etc/nsswitch.conf ## enable daemon /sbin/chkconfig httpd on ## disable daemon /sbin/chkconfig gpm off /sbin/chkconfig apmd off /sbin/chkconfig pcmcia off /sbin/chkconfig nfslock off /sbin/chkconfig portmap off