Skip to content
Snippets Groups Projects
kickstart23.cfg 5.18 KiB
Newer Older
# 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
Imran Hussain's avatar
Imran Hussain committed
cmake
lockfile-progs
procmail
%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
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
Imran Hussain's avatar
Imran Hussain committed
%end
Imran Hussain's avatar
Imran Hussain committed
%post
#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

Imran Hussain's avatar
Imran Hussain committed
%post
echo "Install stuff like steam and google chrome"
Imran Hussain's avatar
Imran Hussain committed
dnf install -y google-chrome-stable libtxc_dxtn gnome-tweak-tool kdenlive vlc-core flash-plugin
Imran Hussain's avatar
Imran Hussain committed
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