Kickstart : Automated Installations of RHEL, CentOS and Oracle Linux
network --device eth0 --bootproto dhcp --hostname pxe
install url --url http://XXX.XXX.XXX.5/centos5 text lang ja_JP.UTF-8 langsupport --default=ja_JP.UTF-8 ja_JP.UTF-8 keyboard jp106 network --device eth0 --bootproto static --ip XXX.XXX.XXX.10 --netmask 255.255.255.0 --gateway XXX.XXX.XXX.1 --nameserver XXX.XXX.XXX.1 --hostname centos5 rootpw --iscrypted [yourpassword] firewall --disabled selinux --disabled authconfig --enableshadow --passalgo=md5 timezone Asia/Tokyo bootloader --location=mbr clearpart --all part /boot --fstype ext3 --size=100 part swap --size=256 part / --fstype ext3 --size=100 --grow services --enabled auditd,psacct --disabled apmd,autofs,avahi-daemon,cpuspeed,cups,iiim,irqbalance,isdn,lvm2-monitor,mdmonitor,mdmpd,netfs,nfslock,pcmcia,portmap,rhnsd,rpcgssd,rpcidmapd,sendmail,xfs reboot # Package Section %packages @ japanese-support autoconf automake cpp e2fsprogs e2fsprogs-devel gcc gcc-c++ glibc-headers glibc-kernheaders grub krb5-devel libgomp libstdc++-devel ntp openssl-devel zlib-devel # Script Section %post # Remote User Add groupadd -g 1000 [youruser] useradd -u 1000 -g 1000 -d /home/[youruser] -s /bin/bash [youruser] echo [yourpassword] | passwd --stdin [youruser] # Update Packages yum update -y