kickstart.cfg sample file

Computer/Linux July 7th, 2009 12:02 kage
kickstart.cfg파일에 대한 예제를 간단히 만들어봅니다.
이전 글에 사용했던 것에 이어서 사용가능 하도록 간락하게 수정했습니다.
 
------------------------------------------------------------------------------------#Set installation Number for RHEL
#key <RHEL에 대한 installation number>
#System  language
lang en_US
langsupport  --default=en_US
#System keyboard and mouse
keyboard us
mouse generic3ps/2
#Sytem timezone
timezone Asia/Seoul
#System Root password
rootpw --iscrypted $1$7no/cZ3y$aFVse3k5xgiU9z/ZYrwck.
#Reboot after installation
reboot
#Redhat new install mode on text mode
text
install
#Kickstart installation Media
#nfs server : 10.10.10.1 and exported directory is /drbd/rhel5.1
nfs --server=10.10.10.1 --dir=/drbd/rhel5.1
#if you want ftp then change nfs to want protocol

#System bootloader configuration
bootloader --location=mbr
#Remove the Master Boot Record
zerombr yes
#System partitioning
#Initilaze harddisk partition table
clearpart --initlabel --all
#Disk partition
part swap --fstype swap --size 8000 --asprimary --ondisk=sda
part /boot --fstype ext3 --size 100 --asprimary  --ondisk=sda
part / --fstype ext3 --size 40000 --grow --asprimary --ondisk=sda
 
#Password type
auth  --useshadow  --enablemd5
#or authconfig --enableshadow --enablemd5
#setup network device
network --device eth0 --bootproto static --ip 10.10.10.11 --netmask 255.255.255.0 --gateway 10.10.10.1 --nameserver 10.10.10.1 --hostname test1
#network --bootproto=dhcp --device=eth0 --onboot=on
#Remove firewall
firewall --disabled
# remove first boot
firstboot --disable
logging --level=info
# remove SELinux
selinux --disabled
#X-windows config
xconfig --startxonboot
 
#Select installation package list
%packages
@office
@development-libs
@editors
@gnome-software-development
@text-internet
@x-software-development
@gnome-desktop
@dialup
@core
@base
@games
@java
@base-x
@graphics
@printing
@sound-and-video
@admin-tools
@development-tools
@graphical-internet
mesa-libGLU-devel
kexec-tools
device-mapper-multipath
xorg-x11-utils
xorg-x11-server-Xnest
xorg-x11-server-Xvfb
libsane-hpaio
imake
-sysreport
 
%pre
#start this part before upper install information
 
%post
#start this part after upper install information
#make a script or command in this part
#install rpm package
#rpm -i ftp://chicken.swedish-chef.org/rpms/squid.rpm
 
# turn on/off daemon
chkconfig --level 2345 sendmail off
chkconfig --level 2345 bluetooth off
chkconfig --level 2345 cups off
chkconfig --level 2345 gpm off
chkconfig --level 2345 hplip off
chkconfig --level 2345 iptables off
chkconfig --level 2345 ip6tables off
chkconfig --level 2345 isdn off
chkconfig --level 2345 rhnsd off
chkconfig --level 2345 yum-updatesd off
chkconfig --level 2345 cpuspeed off
chkconfig --level 2345 pcscd off
chkconfig --level 2345 rpcgssd off
chkconfig --level 2345 ricci off
chkconfig --level 2345 xfs off
chkconfig --level 2345 hidd off
chkconfig --level 2345 microcode_ctl on
 
#change runlevel ( 5 to 3)
cat /etc/inittab | while read line ;do  [ -n "$(echo $line | grep "id:5:initdefault:")" ] &&  echo "id:3:initdefault:" || echo $line ; done > /etc/inittab~
mv /etc/inittab~ /etc/inittab
 
# create root SSH keys
ssh-keygen -b 1024 -t rsa -f /root/.ssh/ssh_host_key -N ""
------------------------------------------------------------------------------------
크리에이티브 커먼즈 라이센스
Creative Commons License
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://www.cep.kr/blog/cep/rss/response/169

댓글+트랙백 ATOM :: http://www.cep.kr/blog/cep/atom/response/169

트랙백 주소 :: http://www.cep.kr/blog/cep/trackback/169

트랙백 RSS :: http://www.cep.kr/blog/cep/rss/trackback/169

트랙백 ATOM :: http://www.cep.kr/blog/cep/atom/trackback/169

댓글을 달아 주세요

댓글 RSS 주소 : http://www.cep.kr/blog/cep/rss/comment/169
댓글 ATOM 주소 : http://www.cep.kr/blog/cep/atom/comment/169
[Login][OpenID?]
You have to log in with and OpenID to leave a comment.