-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedberry-xfce.ks
174 lines (138 loc) · 3.75 KB
/
fedberry-xfce.ks
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
###
# Repositories
###
%include fedberry-repos.ks
###
# Kickstart Options
###
# System language
lang en_US.UTF-8 #--addsupport=de_DE.UTF-8,it_IT.UTF-8,es_ES.UTF-8,nl_NL.UTF-8,fr_FR.UTF-8,sv_SE.UTF-8
# Keyboard layouts
#keyboard --xlayouts=us,uk,de,fr,es
# Firewall configuration
firewall --enabled --service=mdns,ssh,samba-client
# System authorization information
auth --useshadow --passalgo=sha512
# Disable bootloader
bootloader --location=none --disabled
# Run the Setup Agent on first boot
firstboot --reconfig
# SELinux configuration
selinux --enforcing
# System services
services --disabled="lvm2-monitor,dmraid-activation" --enabled="rootfs-grow,initial-setup,saveclock"
# Define how large you want your rootfs to be
# NOTE: /boot and swap MUST use --asprimary to ensure '/' is the last partition in order for rootfs-resize to work.
# Need to create logical volume groups first then partition
part /boot --fstype="vfat" --size 512 --label=BOOT --asprimary
part / --fstype="ext4" --size 5120 --grow --label=rootfs --asprimary
# Note: the --fsoptions & --fsprofile switches dont seem to work at all!
# <SIGH> Need to edit fstab in %post :-(
###
# Packages
###
### Fedberry base packages
%include fedberry-pkgs.ks
%packages
### FedBerry xfce remix specific packages
chromium
fedberry-local-chromium
fedberry-local-xfce-config
fedberry-local-gtk-config
fedberry-local-xorg-config
omxplayer-desktop
plymouth-theme-charge
vlc
%end
%packages
@admin-tools
@core
@fonts
@hardware-support
@input-methods
@multimedia
@networkmanager-submodules
@printing
@standard
@xfce-apps
@xfce-desktop
@xfce-extra-plugins
# @xfce-office ## abiword is broken
dnfdragora
dracut-config-generic
glibc-all-langpacks
gnome-keyring-pam
gstreamer1-plugin-mpg123
gvfs-smb
initial-setup-gui
libreoffice-calc
libreoffice-writer
mpg123 ## mp3 support
pavucontrol
pragha
system-config-printer
rfkill
wget
xscreensaver-extras
youtube-dl
### @base-x pulls in too many uneeded drivers.
xorg-x11-drv-evdev
xorg-x11-drv-fbturbo
xorg-x11-drv-modesetting
xorg-x11-xauth
xorg-x11-xinit
xorg-x11-server-Xorg
xorg-x11-utils
xorg-x11-drv-fbdev
mesa-dri-drivers
glx-utils
### Remove misc packages
-acpid
-aspell-*
-autofs
-desktop-backgrounds-basic
-dnfdragora-updater ## just too buggy at present
-fedora-logos
-fedora-release
-fedora-release-notes
-firefox
-geolite2-city
-gimp-help
-ibus-typing-booster
-mpg123-plugins-jack
-rygel
-xfce4-sensors-plugin
%end
###
# Post-installation Scripts
###
### Two java runtime environments takes up a lot of space!
%post
dnf -y remove java-1.8.0-openjdk-aarch32-headless
%end
### Explicitly set graphical.target as default as this is how initial-setup detects which version to run
%post
echo -e "\nSetting graphical.target as default"
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
%end
### Tweak boot options
%post
echo "Enabling plymouth"
sed -i 's/quiet/quiet rhgb plymouth.ignore-serial-consoles logo.nologo/' /boot/cmdline.txt
%end
### Set gpu_mem=128 in /boot/config.txt
%post
sed -i s'/gpu_mem=32/gpu_mem=128/' /boot/config.txt
%end
### Edit some default options
%post
echo "Modifying xscreensaver defaults"
sed -i -e 's|mode:\(.*\)random|mode:\1blank|' -e 's|lock:\(.*\)True|lock:\1False|' /etc/xscreensaver/XScreenSaver.ad.header
/usr/sbin/update-xscreensaver-hacks
#Some .desktop files are missing icons when using breeze icon theme
ln -s /usr/share/icons/breeze/categories/32/applications-utilities.svg /usr/share/icons/breeze/categories/32/applications-accessories.svg
ln -s /usr/share/icons/breeze/apps/48/internet-web-browser.svg /usr/share/icons/breeze/apps/48/web-browser.svg
ln -s /usr/share/icons/breeze/apps/48/mail-client.svg /usr/share/icons/breeze/apps/48/emblem-mail.svg
gtk-update-icon-cache /usr/share/icons/breeze
%end
%include fedberry-post.ks