#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth --useshadow --enablemd5
# Use text mode install
text
# Firewall configuration
firewall --disabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# system language support
langsupport --default=en_US.UTF-8 zh_CN.UTF-8 en_US.UTF-8
# Installation logging level
logging --level=info
# Use network installation
url --url=
# Network information
#network --bootproto=dhcp --device=eth0 --onboot=on
#network --bootproto=dhcp --device=eth1 --onboot=on
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $1$nqG/B0$gTFsHvEWrsJp4uzM59xLP/
#
#interactive
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# System timezone
timezone Asia/Shanghai
# Install OS instead of upgrade
install
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all
# Disk partitioning information
part / --fstype ext3 --size=1 --grow
part swap --fstype swap --size=1024
part /boot --fstype ext3 --size=128
%packages
@admin-tools
@development-libs
@base
@core
#@development-tools
@chinese-support
@editors
@system-tools
@web-server
#@base-x
#@gnome-desktop
system-config-kickstart
trousers
fipscheck
device-mapper-multipath
libstdc++44-devel
gcc44-c++
imake
gcc-objc
gcc44
expect
arpwatch
arptables_jf
createrepo
lynx
mod_auth_pgsql
xorg-x11-server-Xnest
pcre
pcre-devel
sysstat
iptraf
perl
cyrus-sasl
lrzsz
subversion
-system-config-lvm
-setroubleshoot
-system-config-kdump
-system-config-rootpassword
-nss_db
-acpid
-krb5-workstation
-ksh
-words
-vconfig
-mdadm
-ftp
-nano
-finger
-irqbalance
sendmail
-sos
-rsh
-nfs-utils
-ipsec-tools
-rp-pppoe
-irda-utils
-ypbind
-nc
-setarch
-bluez-utils
-gnupg
-talk
-lockdev-devel
-cyrus-sasl-devel
-xulrunner-devel
-openldap-devel
-slang-devel
-db4-devel
-gmp-devel
-xmlsec1-devel
-coolkey-devel
-boost-devel
-dbus-devel
-libcap-devel
-gdbm-devel
-libuser-devel
-hesiod-devel
-libogg-devel
-expat-devel
-newt-devel
-libvorbis-devel
-diffstat
-splint
-valgrind
-systemtap
-subversion
-texinfo
-byacc
-rcs
-cups
-ctags
-dogtail
-swig
-dev86
-doxygen
-cvs
-pstack
-oprofile
-cscope
-zsh
-xdelta
-bluez-hcidump
-bluez-gnome
-slrn
-fetchmail
-cadaver
-tux
-webalizer
-php-ldap
-squid
-php
-exim
-iptables-ipv6
%post
chkconfig --level 2345 sshd on
cd /root/
mkdir -p /root/.ssh
cat </root/.ssh/authorized_keys
ssh-rsa ........
.......为安全起见省略
EOF
curl -sO /bonetpa/ifstat-ins.sh
sh ifstat-ins.sh
#Disable ipv6:
sed -i '/NETWORKING_IPV6/{s/yes/no/}' /etc/sysconfig/network
sed -i '$a\IPV6INIT=no' /etc/sysconfig/network
echo "install ipv6 /bin/true" >>/etc/modprobe.conf
#Install the third software:
#cd /tmp/
#curl -sO /bonetpa/bonet365.tgz
......
#
for s in autofs bluetooth cups firstboot rhnsd xfs yum-updatesd sendmail atd pcmcia irqbalance ip6tables avahi-daemon portmap dnsmasq nfslock ; do chkconfig $s off ; done
===============================================
# cat pxelinux.cfg/default
default local #本地硬盘启动
prompt 1
timeout 300
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linux
kernel vmlinuz
append initrd=initrd.img
label text
kernel vmlinuz
append initrd=initrd.img text
label ks
kernel vmlinuz
append ks initrd=initrd.img
label local
localboot 0
label memtest86
kernel memtest
append -
label centos5.6
kernel vmlinuz_c5u6
append ks=_ks.cfg initrd=initrd_c5u6.img ksdevice=eth0
label boai2
kernel vmlinuz_c5u6
append ks= initrd=initrd_c5u6.img ksdevice=eth0
label boai8
kernel vmlinuz_c5u6
append ks= initrd=initrd_c5u6.img ksdevice=eth0
============================================================================
# cat dhcpd.conf
ddns-update-style interim;
allow booting;
allow bootp;
authoritative;
subnet 10.0.4.0 netmask 255.255.252.0 {
option routers 10.0.4.1;
option subnet-mask 255.255.252.0;
option ip-forwarding false;
option domain-name-servers 10.0.4.3;
range 10.0.5.201 10.0.5.210;
default-lease-time 21600;
max-lease-time 43200;
next-server 10.0.6.66;
filename "pxelinux.0";
}
=============================================
阅读(1691) | 评论(0) | 转发(0) |