-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathks-centos5-64.cfg
149 lines (137 loc) · 4.46 KB
/
ks-centos5-64.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#
# From: Manuel Wolfshant <wolfy@nobugconsulting.ro>
#
# 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