hello
As asked by Karanbir, please find attached two kickstart files that I use. One is used for servers and does an [almost] minimal install (with support for ssh -Y); the other one is almost 100% the actual ks that I use for the workstations (it adds some 3rd party software, beyond what Centos provides). For 32bit flavor, only the link to the local mrepo must be modified
manuel
# System keyboard keyboard us # System language lang en_US.UTF-8 # Root password rootpw --iscrypted $1$.A66cJ18$2YhwhpQs.fRNno/PAzqc7/ firewall --disabled firstboot --disable authconfig --enableshadow --enablemd5 # SELinux configuration selinux --disabled # Install OS instead of upgrade install # Use network installation url --url http://internal/mrepo/centos5-x86_64/disc1 # Use network installation network --device eth0 --bootproto dhcp # System timezone timezone --utc Europe/Bucharest # X Window System configuration information xconfig --defaultdesktop=KDE --depth=24 --resolution=1280x1024 --startxonboot # System bootloader configuration bootloader --location=mbr --driveorder=sda # 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 --initlabel part /boot --fstype ext3 --size=100 part pv.6 --size=0 --grow volgroup VolGroup00 --pesize=32768 pv.6 logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=880 --grow --maxsize=1760 repo --name=updates --baseurl=http://internal.nobugconsulting.ro/mrepo/centos5-x86_64/RPMS.updates/ reboot
%packages @core @ admin-tools @ editors @ base-x @ printing @ kde-desktop @ sound-and-video @ development-tools @ graphical-internet kernel-devel -bluez-utils -cdrecord -cdparanoia kernel -mkisofs -dvd+rw-tools -kdeaddons -evolution-webcal -evolution -pidgin -ppp -pcsc-lite -pam_ccreds -pam_krb5 -pam_passwdqc -pam_pkcs11 -pam_smb -Deployment_Guide-en-US -firstboot -gcc-gfortran -ypbind -yp-tools -coolkey -ccid -ifd-egate -pcsc-lite evolution kdesdk xchat firefox thunderbird compat-libstdc++-33 libXp libXaw libXmu mc -crash -system-config-rootpassword -NetworkManager
%post echo 'NFS mount' mkdir -p /mnt/{cdrom,floppy} /etc/init.d/portmap start /etc/init.d/nfslock start mount 192.168.50.40:/arhive/linux /mnt/cdrom -o soft,timeo=40 echo 'copying .ssh' mkdir -p /root/.ssh cp /mnt/cdrom/ks-stuff/authorized_keys /root/.ssh echo "This is a proprietary computer system. This system is for the use of authorized users only. Individuals using this computer system without authority, or beyond the limits of their authority or for inappropriate or unlawful purposes are subject to having all of their activities on this system monitored and recorded. In the course of monitoring individuals improperly using this system, or in the course of system maintenance, the activities of authorized users may also be monitored.
Anyone using this system expressly consents to such monitoring. If monitoring reveals unauthorized, inappropriate or possible unlawful activity, system personnel will provide information derived from such monitoring to NoBug management or outside legal authorities, as appropriate. Misuse of this system may result in disciplinary action, including termination.
NoBug Consulting" > /etc/motd sed -ie "s/PASS_MAX_DAYS 99999/PASS_MAX_DAYS 90/;s/PASS_WARN_AGE 7/PASS_WARN_AGE 14/" /etc/login.defs echo "NOZEROCONF=yes" >> /etc/sysconfig/network sed -i "/HOSTNAME/d" /etc/sysconfig/network sed -i -e "s/NETWORKING_IPV6=yes/NETWORKING_IPV6=no/" /etc/sysconfig/network echo 'copying yum.conf' cp /mnt/cdrom/distributions/centos/5/CentOS-Base.repo /mnt/cdrom/distributions/centos/5/nobug.repo /etc/yum.repos.d echo "installing 3rd party repositories" rpm -i /mnt/cdrom/adobe/adobe-repo.rpm /mnt/cdrom/distributions/centos/5/rpmforge-release-*.el5.rf.x86_64.rpm /mnt/cdrom/distributions/centos/5/epel-release-5-3.noarch.rpm
#echo 'yum update' #yum -y update /bin/mkdir /apps ln -s /apps/vera.sh /etc/profile.d ln -s /apps/vcs.sh /etc/profile.d ln -s /apps/specman.sh /etc/profile.d ln -s /apps/ncsim.sh /etc/profile.d ln -s /apps/questasim.sh /etc/profile.d echo "apps:/apps /apps nfs defaults,ro,users,exec,noauto 0 0" >> /etc/fstab
cp -f /mnt/cdrom/distributions/centos/5/rpmforge.repo /etc/yum.repos.d echo "installing java and adobe" yum -y install java-1.5.0-sun.i586 java-1.5.0-sun-fonts.i586 java-1.5.0-sun-plugin.i586 nedit --enablerepo=nobugcustom flash-plugin AdobeReader_enu openoffice*
#yum -y install libXp.i386
ln -s /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
yum -y install pidgin --enablerepo=nobugcustom --disablerepo=updates #pac pac
umount /mnt/cdrom %end
install text reboot url --url http://internal/mrepo/centos5-x86_64/disc1 lang en_US.UTF-8 keyboard us skipx network --device eth0 --bootproto dhcp rootpw --iscrypted $1$.A66cJ18$2YhwhpQs.fRNno/PAzqc7/ firewall --disabled selinux --permissive authconfig --enableshadow --enablemd5 timezone Europe/Bucharest 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 --initlabel part /boot --fstype ext3 --size=250 part pv.2 --size=0 --grow volgroup VolGroup00 --pesize=32768 pv.2 logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 --grow --maxsize=512 repo --name=updates --baseurl=http://internal.nobugconsulting.ro/mrepo/centos5-x86_64/RPMS.updates/
%packages --nobase --excludedocs coreutils yum rpm e2fsprogs lvm2 grub sysstat ntp openssh-server openssh-clients xorg-x11-xauth -dhcpv6-client -iptables-ipv6 -system-config-securitylevel-tui -wireless-tools -rhpl
%post
On 04/01/2010 10:20 AM, Manuel Wolfshant wrote:
hello
As asked by Karanbir, please find attached two kickstart files that I
Thanks, imported into :
https://nazar.karan.org/cgit/bluecain/tree/
- KB
On 01/04/10 10:20, Manuel Wolfshant wrote:
hello
As asked by Karanbir, please find attached two kickstart files that I use. One is used for servers and does an [almost] minimal install (with support for ssh -Y);
Hi,
Your minimal install is interesting.
What does the --excludedocs option to %packages do? I can't find it documented anywhere?
My approach to a minimal package list has been to use --nobase, then install the @core group and then install only mandatory packages from the base group, which I determine dynamically with this (pre-install) script (I use cobbler):
yum groupinfo base | perl -we 'my $in_mand = 0; while (<>) { $in_mand = 0 if /\s+default packages/i ; print if $in_mand ; $in_mand = 1 if /\s+mandatory packages/i; }' > /tmp/package_base_mandatory
I then include the generated file in the %packages section.
R.
-----Original Message----- From: centos-devel-bounces@centos.org [mailto:centos-devel-bounces@centos.org] On Behalf Of Robin Bowes Sent: maandag 10 mei 2010 0:11 To: centos-devel@centos.org Subject: Re: [CentOS-devel] two kickstarts I use around here
On 01/04/10 10:20, Manuel Wolfshant wrote:
hello
As asked by Karanbir, please find attached two kickstart files that I use. One is used for servers and does an [almost] minimal install (with support for ssh -Y);
Hi,
Your minimal install is interesting.
What does the --excludedocs option to %packages do? I can't find it documented anywhere?
http://fedoraproject.org/wiki/Anaconda/Kickstart#Chapter_3._Package_Selection If you do an `rpm -qd` on a package, all files that are listed won't be installed with that switch.
Met vriendelijke groet,
Sander Hoentjen Research & Development engineer | Oxilion | +31 (0)88-78 77 678 | http://www.oxilion.nl/
On 10/05/10 06:59, Sander Hoentjen - Oxilion wrote:
-----Original Message----- From: centos-devel-bounces@centos.org [mailto:centos-devel-bounces@centos.org] On Behalf Of Robin Bowes Sent: maandag 10 mei 2010 0:11 To: centos-devel@centos.org Subject: Re: [CentOS-devel] two kickstarts I use around here
Your minimal install is interesting.
What does the --excludedocs option to %packages do? I can't find it documented anywhere?
http://fedoraproject.org/wiki/Anaconda/Kickstart#Chapter_3._Package_Selection If you do an `rpm -qd` on a package, all files that are listed won't be installed with that switch.
Ah, that's nice to know.
However, is that present in CentOS 5.4, or just Fedora?
R.
Robin Bowes wrote:
On 10/05/10 06:59, Sander Hoentjen - Oxilion wrote:
-----Original Message----- From: centos-devel-bounces@centos.org [mailto:centos-devel-bounces@centos.org] On Behalf Of Robin Bowes Sent: maandag 10 mei 2010 0:11 To: centos-devel@centos.org Subject: Re: [CentOS-devel] two kickstarts I use around here
Your minimal install is interesting.
What does the --excludedocs option to %packages do? I can't find it documented anywhere?
http://fedoraproject.org/wiki/Anaconda/Kickstart#Chapter_3._Package_Selection If you do an `rpm -qd` on a package, all files that are listed won't be installed with that switch.
Ah, that's nice to know.
However, is that present in CentOS 5.4, or just Fedora?
all rpm versions support it.