# no /var/www/html/pub/kickstart/MAC.txt #
# Content starts #

# PXE install - starts 0.06-051019 
# see:  http://www.owlriver.com/pub/kickstart/ks.php 
# Owl River ks.php ver. 0.06-051019 using ks.cfg 
# # Kickstart file automatically generated by anaconda.
#	default minimal base -- wipes disk

lang en_US
langsupport --default en_US en_US
keyboard us
mouse generic3ps/2 --device psaux
network --device eth0 --bootproto dhcp
url --url ftp://ftp/pub/install/ftpinstall/
rootpw --iscrypted $1$UwybGRX3$sRRussHerrold6s125qok/
firewall --disabled
authconfig --enableshadow --enablemd5
timezone America/New_York
bootloader --location=mbr 
# 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 	--all 	--drives=hda
part /boot 	--fstype ext3 	--size=250 		--ondisk=hda
part / 		--fstype ext3 	--size=1000  	--ondisk=hda
part /var 		--fstype ext3 	--size=1000  	--ondisk=hda
part /var/log 		--fstype ext3 	--size=1000  	--ondisk=hda
part /var/tmp 		--fstype ext3 	--size=2000  	--ondisk=hda
part /var/cache 	--fstype ext3 	--size=1000  	--ondisk=hda
part /usr 		--fstype ext3 	--size=5000  	--ondisk=hda
part /home 		--fstype ext3 	--size=5000  	--ondisk=hda
part /tmp 		--fstype ext3 	--size=1000  	--ondisk=hda
# part / 		--fstype ext3 	--size=700 --grow 	--ondisk=hda
part swap 	--size=256 	--grow 	--maxsize=768 	--ondisk=hda



#	mail-details 0.02-051007
LS=` rpm -qa --qf '%{name}\n' | grep '-release' | head -1 `
VER=` rpm -q $RLS `
#	GW refers to the gw device, not the default route gw host
GWDEV=` netstat -rn | grep '^' | awk '{print $8}' `
GWIP=` ifconfig $GWDEV | grep inet | grep -v inet6 | awk '{print $2}' | \
        awk -F: '{print $2}' `
GWMAC=` ifconfig $GWDEV | grep HW | awk '{print $5}' `
GWFQN=` host $GWIP | awk '{print $5}' `
GWNAME=` echo "$GWFQN " | awk -F. '{print $1}' `
GWDOMAIN=` echo "$GWFQN " | sed -e "s/${GWNAME}.//" `
export DEPLOY=`echo "${D1}${D2}${D3}"`
export PROFILE=`echo "${P1}${D2}${D3}"`

#       Get a PUID for updates customization
#	get_puid 0.02-051007
lynx -dump "$DEPLOY" 2> /dev/null | grep "PUID" | \
        awk '{print $1" "$2}' > /etc/PUID  &
# wget -O /dev/null "$DEPLOY" > /dev/null 2>&:1 &
# PUID=` cat $DEPLOY | awk '{print $2}'`
sleep 3
lynx -dump "$DEPLOY" 2> /dev/null > /root/ks-profile.txt  &
sleep 3

cp /etc/resolv.conf /etc/resolv.conf-ORIG
cat - << END > /etc/resolv.conf 

#	ver: 0.06-051019
domain first.lan
cat - << END >> /etc/modules.conf 

#	no floppies in these units
alias floppy off
#       turn off ipv6
alias net-pf-10 off
cat - << END >> /etc/modprobe.conf 

#	no floppies in these units
alias floppy off
#       turn off ipv6
alias net-pf-10 off
depmod -a 
mv /etc/syslog.conf /etc/syslog.conf_ORIG 
cat - << END > /etc/syslog.conf
#       ftp.first.lan
*.*             @

/sbin/service syslog start 
echo "hello post world" | /usr/bin/logger -plocal0.info  
rpm --import /usr/share/doc/centos-release-4/RPM-GPG-KEY 
echo "build keying in place" | /usr/bin/logger -plocal0.info  
rpm -q centos-yumconf > /dev/null 2>1 && rpm -e --nodeps centos-yumconf 

cat - << END | tr '@' '$' > /etc/yum.repos.d/local-orc-addons.repo 

#	auto generated for Owl River update scheme
#		within a DNS local domain, ver: 0.06-051019
#		debug
#		releasever: @releasever \@releasever
name=ORC addons

sed -e 's!$releasever!4!' < /etc/yum.repos.d/local-orc-addons.repo > /etc/yum.repos.d/local-orc-addons.repo-staged 

cat - << END | tr '@' '$' > /etc/yum.repos.d/local-respository.repo-staged 

#	auto generated for Owl River update scheme
#		within a DNS local domain, ver: 0.06-051019
name=Centos Linux @releasever - local-base

name=Centos Linux \@releasever - local-updates


cat - << END | tr '@' '$' > /etc/yum.repos.d/CentOS-Base-local.repo 

#	auto generated for Owl River update scheme
#		ver: 0.06-051019

name=CentOS-@releasever - Base
# baseurl=http://mirror.centos.org/centos/@releasever/os/@basearch/

#released updates
name=CentOS-@releasever - Updates
# baseurl=http://mirror.centos.org/centos/@releasever/updates/@basearch/


sed -e 's!$releasever!4!' < /etc/yum.repos.d/CentOS-Base-local.repo | sed -e 's!$basearch!i386!' > /etc/yum.repos.d/CentOS-Base-local.repo-staged 

cat - << END | tr '@' '$' > /etc/yum.repos.d/proprietary-local.repo 

#	auto generated for Owl River proprietary content, local archive
#		ver: 0.06-051019
name=CentOS-@releasever - Base


sed -e 's!$releasever!4!' < /etc/yum.repos.d/proprietary-local.repo > /etc/yum.repos.d/proprietary-local.repo-staged 
# manifest-post.txt 
yum -t -y install  acl acpid alsa-lib alsa-lib-devel apr apr-util arts arts-devel ash aspell aspell-en at atk atk-devel attr audiofile audiofile-devel audit audit-libs aumix authconfig autoconf automake basesystem bash bc beancounter beecrypt bind-libs bind-utils binutils bison blas bluez-bluefw bluez-hcidump bluez-libs bzip2 bzip2-devel bzip2-libs cdparanoia-libs centos-release centos-yumconf checkpolicy chkconfig chkfontpath comps coreutils cpio cpp cracklib cracklib-dicts crash crontabs cryptsetup cups cups-devel cups-libs curl cyrus-sasl cyrus-sasl-md5 cyrus-sasl-plain db4 db4-devel dbh dbus dbus-glib dbus-x11 desktop-backgrounds-basic desktop-file-utils device-mapper dhclient dhcpv6_client dialog diffutils diskcheck diskdumputils dmraid docbook-dtds dos2unix dosfstools dump e2fsprogs e2fsprogs-devel ed eject elfutils elfutils-libelf esound esound-devel ethtool expat expat-devel fbset fetchmail file filesystem findutils finger firefox flex fontconfig fontconfig-devel fonts-xorg-100dpi fonts-xorg-75dpi fonts-xorg-base fonts-xorg-ISO8859-14-100dpi fonts-xorg-ISO8859-14-75dpi fonts-xorg-ISO8859-15-100dpi fonts-xorg-ISO8859-15-75dpi fonts-xorg-ISO8859-2-100dpi fonts-xorg-ISO8859-2-75dpi fonts-xorg-ISO8859-9-100dpi fonts-xorg-ISO8859-9-75dpi fonts-xorg-syriac fonts-xorg-truetype freetype freetype-devel ftp gamin gamin-devel gawk gcc gcc-c++ gcc-g77 GConf2 gdb gdbm gdk-pixbuf gdm gettext ghostscript ghostscript-devel ghostscript-fonts gkrellm gkrellm-devel glib glib2 glib2-devel glibc glibc-common glibc-devel glibc-headers glibc-kernheaders glib-devel gmp gnome-keyring gnome-mime-data gnome-vfs2 gnupg gpg-pubkey gpm graphviz graphviz-devel graphviz-doc graphviz-graphs graphviz-tcl grep groff grub gsview gtk+ gtk2 gtk2-devel gtk+-devel gv gzip hal hdparm hesiod hicolor-icon-theme hotplug htmlview httpd httpd-suexec hwdata ImageMagick indexhtml info initscripts intltool iproute ipsec-tools iptables iptstate iputils ipython j2sdk joe jpackage-utils jwhois kbd kdebase kdebase-devel kdelibs kdelibs-devel kernel kernel kernel-utils krb5-devel krb5-libs krb5-workstation kudzu lapack less lftp lha libacl libart_lgpl libart_lgpl-devel libattr libbonobo libbonoboui libcap libcroco libf2c libgcc libgcrypt libglade2 libgnome libgnomecanvas libgnomecups libgnomeprint22 libgnomeprintui22 libgnomeui libgpg-error libgsf libIDL libidn libidn-devel libjpeg libjpeg-devel libmng libmng-devel libogg libogg-devel libpcap libpng libpng-devel libraw1394 librsvg2 libselinux libsepol libstdc++ libstdc++-devel libtermcap libtermcap-devel libtiff libtiff-devel libtool-libs libusb libuser libvorbis libvorbis-devel libwvstreams libxfce4mcs libxfce4mcs-devel libxfce4util libxfcegui4 libxml2 libxml2-devel libxml2-python libxslt libxslt-devel lm_sensors lockdev logrotate logwatch lrzsz lsof lvm2 lynx m4 mailcap mailx make MAKEDEV man man-pages mdadm metacity mgetty mingetty minicom mkbootdisk mkinitrd mktemp module-init-tools mpage mtools mtr mt-st mysql mysqlclient10 mysqlclient10-devel mysql-devel nail nano nc ncftp ncurses ncurses-devel netconfig netdump net-tools NetworkManager newt nfs-utils nmap nmh nscd nss_db nss_ldap ntp ntsysv numactl numarray openjade openldap openmotif openssh openssh-clients openssh-server openssl openssl-devel ORBit2 pam pam_ccreds pam-devel pam_krb5 pam_passwdqc pam_smb pango pango-devel parted passwd patch pax pciutils pcre pcre-devel pdksh perl perl-DateManip perl-DBD-MySQL perl-DBI perl-Filter perl-Finance-YahooQuote perl-HTML-Parser perl-HTML-Tagset perl-libwww-perl perl-Statistics-Descriptive perl-URI perl-URI-Find perl-X11-GUITest perl-XML-Parser php php-pear pine pinfo pkgconfig policycoreutils popt portmap postgresql postgresql-devel postgresql-libs ppp prelink procmail procps psacct psmisc pygtk2 pygtk2-libglade PyKDE PyKDE-devel pyOpenSSL PyQt PyQt-devel PyQt-examples PyQt-qscintilla PyQwt python python-devel python-elementtree python-IbPy python-numeric python-sqlite python-tools python-urlgrabber pyxf86config qscintilla qscintilla-designer qscintilla-devel qt qt-config qt-designer qt-devel qt-MySQL qt-ODBC qt-PostgreSQL quota rdate rdist readline redhat-artwork redhat-logos redhat-lsb redhat-menus rhnlib rhpl rmt rootfiles rpm rpm-build rpmdb-CentOS rpm-libs rpm-python rp-pppoe rsh rsync samba-common schedutils scipy_core scrollkeeper sed selinux-policy-targeted sendmail sendmail-cf setarch setools setserial setup setuptool sgml-common shadow-utils shared-mime-info sip sip-devel slang slocate specspo sqlite startup-notification statserial stunnel sudo switchdesk symlinks sysklogd syslinux sysreport sysstat system-config-display system-config-mouse system-config-network-tui system-config-securitylevel-tui SysVinit talk tar tcl tcl-devel tcl-html tclx tclx-devel tclx-doc tcpdump tcp_wrappers tcsh telnet termcap tetex tetex-fonts time tix tk tk-devel tkinter tmpwatch traceroute ttmkfdir tzdata udev unix2dos unixODBC unixODBC-devel unzip urw-fonts usbutils usermode utempter util-linux vconfig VFlib2 vim-minimal vixie-cron wget which wireless-tools words wvdial Xaw3d Xaw3d-devel xfce4-iconbox xfce4-panel xfce4-panel-devel xfce4-systray xfce-mcs-manager xfce-mcs-manager-devel xfce-mcs-plugins xfce-utils xfdesktop xfwm4 xinetd xinitrc xml-common xmlsec1 xmlsec1-openssl xorg-x11 xorg-x11-deprecated-libs xorg-x11-deprecated-libs-devel xorg-x11-devel xorg-x11-font-utils xorg-x11-libs xorg-x11-Mesa-libGL xorg-x11-Mesa-libGLU xorg-x11-tools xorg-x11-xauth xorg-x11-xdm xorg-x11-xfs xosview xpdf xsri ypbind yp-tools yum zip zlib zlib-devel 
# janitor.txt 
rpm -e  anacron apmd autofs bluez-utils irda-utils isdn4k-utils pcmcia-cs up2date lksctp-tools keyutils OpenIPMI OpenIPMI-libs net-snmp-libs postgresql-tcl lksctp-tools keyutils gkrellm-daemon 
# updates 
yum -y update 
touch /.yum-updated-through 
[ -e /etc/yum.conf_ORIG ] && mv /etc/yum.conf_ORIG /etc/yum.conf 
chkconfig anacron       off 
chkconfig apmd          off 
chkconfig audit         off 
chkconfig autofs        off 
chkconfig cups          off 
chkconfig isdn          off 
chkconfig kudzu         off 
chkconfig mdmonitor     off 
chkconfig mdmpd         off 
chkconfig microcode_ctl off 
chkconfig pcmcia        off 
chkconfig readahead_early          off 
chkconfig xinetd        off 
chkconfig netfs         on 
chkconfig smartd        on 
cat - << END > /var/lib/supportinfo
# /var/lib/supportinfo
#  supported hardware descriptor for CentOS-3
#		Owl River dials RAM warning back from 256 to 96
#		ver. 0.06-051019
Variant: AS
MinRAM: 96 MB

wget -O /root/ks.php.txt http://www.first.lan/pub/kickstart/ks.php 

# Content ends