# Kickstart file automatically generated by anaconda.

#version=centos
install
url --url ftp://CentOs65x64_server/inst
#lang en_US.UTF-8
lang ja_JP.eucJP
keyboard us
#xconfig --startxonboot
#network --device eth0 --bootproto static --ip 192.168.1.245 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.1 --hostname redhat4.localdomain
network --device eth0 --bootproto dhcp --hostname CentOs65x64_server
network --device eth1 --bootproto dhcp --hostname CentOs65x64_server
network --device eth2 --bootproto dhcp --hostname CentOs65x64_server
rootpw --iscrypted $1$tfNkYYje$Kfb.kd6JntEejoZPi5Bmq.
firewall  --port=22:tcp --port=23:tcp --port=21:tcp --port=53:udp --port=69:udp --enabled 
authconfig --enableshadow --enablemd5
selinux --disable
timezone --utc Asia/Tokyo
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
# 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 --linux

##40G
clearpart --all --initlabel
part /boot --fstype ext3 --size=100
part / --fstype ext3 --size=20000
part /home --fstype ext3 --size=10000
part /var --fstype ext3 --size=5000
part /tmp --fstype ext3 --size=3000
part swap --size=2856 --grow


%packages
@base
@chinese-support
@core
@development-libs
@development-tools
@dialup
@editors
@ftp-server
xinetd
ncompress
expect
@gnome-desktop
@games
@graphical-internet
@graphics
@japanese-support
@kde-desktop
@legacy-network-server
@mail-server
@network-server
@news-server
@office
@printing
@server-cfg
@sound-and-video
@text-internet
@web-server
@smb-server
@base-x
telnet-server
keyutils
iscsi-initiator-utils
trousers
fipscheck
device-mapper-multipath
perl-Convert-ASN1
python-imaging
imake
java-1.6.0-openjdk
kdegraphics
libsane-hpaio
vnc-server
kdepim
kdemultimedia
xorg-x11-server-Xnest
xorg-x11-server-Xvfb
dhcp
tftp-server
caching-nameserver
bind
bind-utils
bind-libs
bind-chroot

%post

/sbin/chkconfig --level 345 telnet on
/sbin/chkconfig --level 345 vsftpd on
/sbin/chkconfig --level 345 dhcpd  on
/sbin/chkconfig --level 345 named  on
/sbin/chkconfig --level 345 tftp   on

/usr/sbin/useradd jin -p '$KKK'
echo "jin123" | /usr/bin/passwd --stdin "jin"

##echo "192.168.10.129  acd-jin" >> /etc/hosts
##echo "192.168.1.101   acd-jin" >> /etc/hosts
##echo "192.168.1.224   207-jin" >> /etc/hosts
