# ks.cfg - kickstart configuration file for Fedora Core 3
#
# When you boot a machine from this floppy it will automaticall
# install AND CONFIGURE Fedora Core 3 from ftp://santiam.vassar.edu
# (as named by IP below in two places). Edit as you require.
#
# Eric Myers <myers@vassar.edu> - Vassar College
# $Id: ks.cfg,v 3.4 2004/05/06 20:44:09 myers Exp myers $
######################################################################
# @(#) Last changed: -EAM 03Apr2005
# Install or Upgrade?
install
text
# Interactive will ask to verify; good for debugging, but omit otherwise
#interactive
### Language/Localization Specifications:
lang en_US
langsupport en_US
keyboard us
mouse generic3ps/2 --device psaux
timezone --utc US/Eastern
### Network Configuration using DHCP
network --bootproto dhcp --nodns --hostname kick-me
### Installation Method: this can be either nfs, cdrom, url, or harddrive
url --url ftp://143.229.45.82/pub/linux/fedora/core/3/
### Authorization/Authentication
authconfig --enableshadow --enablemd5
# (since this is publicly known you must CHANGE THE ROOT PASSWORD soon!)
rootpw pASSword
firewall --disabled
### Simplest X configuration
#xconfig --card "Matrox G450" --videoram 32MB --hsync .0 --vsync 60 --resolution 1600x1200 --depth 24
skipx
## Partitioning Information
## Which partitions to format/clear (--linux/--all). Default is only Linux!
## (Use wipe.cfg to get --all )
clearpart --linux
## Which partitions to set up on new system, as well as sizes
## (This partitioning should fit in a 10GB hardrive with a little extra)
part /boot --size 128 --fstype=ext3 --asprimary
part / --size 512 --fstype=ext3 --asprimary
part swap --size 512
part /tmp --size 512 --fstype=ext3
part /var --size 512 --fstype=ext3
part /usr --size 4096 --fstype=ext3
part /home --size 2048 --fstype=ext3
### Whether to clear out the Master Boot Record (yes/no)
zerombr yes
### LILO or GRUB boot loader? GRUB seems to be the default
bootloader --location=mbr
######################################################################
# Packages:
#
## The package names, as well as the groups they are a part of can be
## found in the /Fedora/base/comps file; individual packages can be
## specified by entering their names one per line; groups can be
## specified by appending a "@" in front of the group name;
## e.g. '@ X Window System'
%packages
@ office
@ engineering-and-scientific
@ mysql
@ editors
@ system-tools
@ text-internet
@ x-software-development
@ legacy-network-server
@ dialup
@ authoring-and-publishing
@ ftp-server
@ network-server
@ base-x
@ graphics
@ web-server
@ printing
@ kde-desktop
@ mail-server
@ server-cfg
@ sound-and-video
@ admin-tools
@ development-tools
@ graphical-internet
mdadm
icon-slicer
-cdp
-ggv
-system-config-samba
kdeadmin
mod_auth_kerb
tetex-xdvi
talk-server
openldap-servers
-xsane-gimp
-ckermit
-openoffice.org
-gdm
-samba-client
-tux
-gcc-java
xpdf
httpd-suexec
pvm
-up2date-gnome
kdegraphics
-planner
net-snmp-utils
-rhythmbox
-evolution-webcal
ypserv
-automake15
-squid
-cdda2wav
-cdrecord
-dvd+rw-tools
system-config-boot
dmalloc
-switchdesk
dejagnu
expect
-evolution
mysql-server
postfix
-automake14
-bluez-pin
-openoffice.org-i18n
iptraf
-automake16
-HelixPlayer
amanda-server
-dovecot
-elinks
ncftp
xfig
-openssh-askpass-gnome
-xsane
php-mysql
cyrus-imapd
lynx
-sane-frontends
x3270-x11
-cdlabelgen
cyrus-imapd-utils
-xdelta
amanda-client
-sound-juicer
uucp
system-config-kickstart
e2fsprogs
grub
-gpdf
-fetchmail
rusers-server
-gnomemeeting
krb5-server
gftp
lam
ddd
kernel-smp
mtx
am-utils
-system-config-soundcard
rdesktop
######################################################################
# Post processing: KISS (Keep It Simple, Supid)
#
# This just marks the system as being under construction and copies
# a few files over for continuing the process. To change the process
# you should change those files (which is easier to do anyway).
# The files are:
# * ks.sh - shell script to configure system
# * kick-me-install.tar.gz - pre-packaged configuration
# In addition, a number of rpm packages are copied over. They should
# be installed or updated automatically, but you may need to do this
# by hand. Here's what you'll find and where
# * /tmp/updates - FC 3 *updates* to be applied after installation
# * /root/rpm - local updates are *installed* on the system
#
%post
cat <<EOF >>/etc/motd
KICK-ME Magic Kickstart Bootdisk for Fedora Core 3
Installed `date`
* LINUX INSTALLATION STILL IN PROGRESS!
* REMEMBER TO CHANGE THE ROOT PASSWORD!
* REMEMBER TO CHANGE THE HOSTNAME AND IP ADDRESS!
EOF
cat /etc/motd >>/root/ks.log
cat /etc/motd
####################
# Get latest configuration files & RPM updates via ftp
echo " * ftp connect to server... " >>/root/ks.log
cd /root
mkdir -p /root/rpm/updates/fedora/core/3
mkdir -p /tmp/updates
ftp -n 143.229.45.82 <<EOF
user anonymous -ks@`hostname`
binary
lcd /root
cd /pub/linux/local-updates/
get ks.sh
get kick-me-install.tar.gz
lcd /root/rpm/
prompt
mget *.rpm
cd /pub/linux/fedora/core/updates/3/i386/
lcd /tmp/updates/
mget *.rpm
quit
EOF
ls ks.sh kick-me-install.tar.gz >>/root/ks.log
ls -R rpm >>/root/ks.log
####################
# If there is a config script ks.sh then run it!
echo " " >>/root/ks.log
if [ -f /root/ks.sh ]; then
echo " * Execing /root/ks.sh..." >>/root/ks.log
chmod +x /root/ks.sh
exec /root/ks.sh >>/root/ks.log
else
echo " * No ks.sh found." >>/root/ks.log
fi
exit 0
# EOF
查看全部回复
我也来说两句