Newer
Older
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
149
150
# Network clean install
install
url --url="http://mirror.sucs.org/pub/linux/fedora/releases/23/Workstation/x86_64/os"
repo --name=sucsmirror --baseurl="http://mirror.sucs.org/pub/linux/fedora/releases/23/Everything/x86_64/os" --install
repo --name=fedora --cost=10
# Firewall configuration
firewall --disabled
# Root password
rootpw --iscrypted
# System authorization information
auth --useshadow --enableldap --enableldapauth --ldapserver=ldaps://sucs.org --ldaploadcacert=http://sucs.org/globalsign-root.crt --ldapbasedn=dc=sucs,dc=org --enableldaptls
# Use text install
text
# Run the Setup Agent on first boot
firstboot --disabled
# System keyboard
keyboard --xlayouts='gb'
# System language
lang en_GB --addsupport=cy_GB
# SELinux configuration
selinux --enforcing
# Installation logging level
logging --level=info
# X Window System configuration information
xconfig --startxonboot
# System timezone
timezone --ntpservers=sucs.org --isUtc Europe/London
zerombr
# System bootloader configuration
bootloader --location=mbr --timeout=5
# Partition clearing information
clearpart --all
# Disk partitioning information
part /boot --fstype="ext4" --size=500
part swap --fstype="swap" --size=4096
part / --fstype="ext4" --grow --size=1
#Enable updates repo
repo --name=updates
%packages
@gnome-desktop
@mate
@kde-desktop
@xfce
@lxde
@Administration Tools
@Design Suite
@Editors
@Educational Software
@libreoffice
@Office/Productivity
@Sound and Video
@System Tools
@Text-based Internet
@Window Managers
@Development Tools
@Books and Guides
@Engineering and Scientific
@Games and Entertainment
@Fedora Eclipse
@C Development Tools and Libraries
@base-x
@core
@dial-up
@fonts
@hardware-support
@input-methods
@multimedia
@printing
@standard
vim
cinnamon
inkscape
kile
usbutils
frozen-bubble
psi
gnucash
ncftp
bzflag
totem
armacycles-ad
subversion
bzflag
openttd
ghc
emacs
rosegarden
clusterssh
thunderbird
eclipse-subclipse
git-core
pl
meld
hugin
mapnik
ganglia-gmond
ganglia-gmond-python
terminator
gobby
pidgin
supertuxkart
tremulous
sl
freeciv
eclipse-photran
bzr
kdegraphics
ntp
dwm
texmaker
htop
openldap
openldap-clients
nss-pam-ldapd
thunderbird-lightning
clusterssh
iotop
iftop
thunderbird
terminator
switchdesk
i3
i3status
xscreensaver
xsane
icedtea-web
cowsay
libreoffice-base
wine
i3lock
nitrogen
freerdp
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
%end
%post
echo "Test, does this post script get run?"
touch /IGotRun
%end
%post
echo "YOU WILL BE WORKSTATION!"
dnf remove -y firewalld-config-standard
dnf groupinstall -y "Fedora Workstation"
echo "congrats it's a workstation"
%end
%post
echo "dnf update -y"
dnf update -y
echo "finsih dnf update"
%end
%post
echo "Starting rpm fusion repo install"
#Add RPM Fusion Repo
echo "install rpmfusion rpm"
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
echo "RPM Fusion added"
%end
%post
#Install stuff from RPM Fusion
echo "install stuff from rpm fusion"
dnf install -y mplayer flash-plugin vlc-core system-switch-displaymanager
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
echo "finished installing stuff from rpm fusion"
%end
%post
echo "remove gnome crap"
dnf remove -y initial-setup gnome-initial-setup
echo "removed gnome first time use stuff"
%end
%post
echo "add sucs certs"
#Some more custom configuration
cd /etc/openldap/certs/
wget http://sucs.org/globalsign-root.crt
echo "TLS_CACERT /etc/openldap/certs/globalsign-root.crt" >> /etc/openldap/ldap.conf
echo "certs added"
%end
%post
echo "fiddle with some services"
chkconfig gmond on
service gmond restart
chkconfig bluetooth on
systemctl enable sshd.service
systemctl enable sssd.service
systemctl enable nslcd.service
systemctl enable nscd.service
sudo -u gdm dbus-launch gsettings set org.gnome.login-screen disable-user-list true
echo "fiddling done"
%end
%post
echo "lets add /home"
#Add /home to fstab and mount!
echo "137.44.10.1:/home /home nfs vers=3.0,rw,soft,fsc,nolock 0 0" >> /etc/fstab
setsebool -P use_nfs_home_dirs on
mount -o nolock 137.44.10.1:/home /home
echo "/home should be accessable"
%end
%post
echo "copy some stuff of the nfs"
cp -RfL /home/install/etc/* /etc/
cp /home/install/bin/cupslogs /bin/cupslogs
# Add the scanner ~imranh
# scanner firmware
cp /home/install/scanner-firmware.bin /usr/share/sane/u176v046.bin
%end
%post
echo "make gdm default"
dnf install -y system-switch-displaymanager
system-switch-displaymanager gdm
#Gnome nfs tweak
echo "Doing the gnome nfs tweak"
echo "service-db:keyfile/user" > /etc/dconf/profile/user
%end
%post
echo "install welsh language"
dnf langinstall -y cy_GB
echo "system welshed"
%end
%post
echo "Switch to gdm as default"
rm /etc/systemd/system/display-manager.service
systemctl enable gdm
%end
%post
echo "disable gpg check on sucsmirror"
echo "gpgcheck=0" >> /etc/yum.repos.d/sucsmirror.repo
%end
dnf install -y google-chrome-stable libtxc_dxtn gnome-tweak-tool kdenlive vlc-core flash-plugin
dnf install -y steam
# mp3 is not a crime
dnf install -y gstreamer-{ffmpeg,plugins-{good,ugly,bad{,-free,-nonfree}}}
%end
%post
echo "Done!"
echo "reboot!"
reboot
%end