Created
April 19, 2014 20:05
-
-
Save hroncok/11095857 to your computer and use it in GitHub Desktop.
Fedora 3D printing kickstart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fedora-livecd-3dprint.ks | |
# | |
# Description: | |
# - Fedora Live Spin with the light-weight Xfce Desktop Environment and 3D printing stuff | |
# | |
# Maintainer(s): | |
# - Miro Hrončok <[email protected]> | |
%include fedora-live-base.ks | |
repo --name=netfabb --baseurl=http://netfabb-repo.hroncok.cz/$basearch/ --ignoregroups=true | |
%packages | |
@xfce-desktop | |
@3d-printing | |
schroedinger-cat-backgrounds-extras-base | |
netfabb-basic | |
# some Xfce apps | |
midori | |
ristretto | |
xarchiver | |
xfce4-clipman-plugin | |
pavucontrol | |
xfce4-mixer | |
mousepad | |
# unlock default keyring. FIXME: Should probably be done in comps | |
gnome-keyring-pam | |
# save some space | |
-autofs | |
-acpid | |
-gimp-help | |
-desktop-backgrounds-basic | |
-realmd # only seems to be used in GNOME | |
-PackageKit* # we switched to yumex, so we don't need this | |
-aspell-* # dictionaries are big | |
-foomatic-db-ppds | |
-foomatic | |
-stix-fonts | |
-ibus-typing-booster | |
-xfce4-sensors-plugin | |
-blueman | |
-recordmydesktop | |
-xscreensaver* | |
-sendmail | |
-greybird-* | |
-bluebird-* | |
-albatross-* | |
-ibus* | |
-java* | |
-icedtea-web* | |
# drop some system-config things | |
-system-config-boot | |
#-system-config-network | |
-system-config-rootpassword | |
#-system-config-services | |
-policycoreutils-gui | |
%end | |
%post | |
# xfce configuration | |
# This is a huge file and things work ok without it | |
rm -f /usr/share/icons/HighContrast/icon-theme.cache | |
# create /etc/sysconfig/desktop (needed for installation) | |
cat > /etc/sysconfig/desktop <<EOF | |
PREFERRED=/usr/bin/startxfce4 | |
DISPLAYMANAGER=/usr/sbin/lightdm | |
EOF | |
cat >> /etc/rc.d/init.d/livesys << EOF | |
mkdir -p /home/liveuser/.config/xfce4 | |
cat > /home/liveuser/.config/xfce4/helpers.rc << FOE | |
FileManager=Thunar | |
WebBrowser=midori | |
FOE | |
# deactivate xfconf-migration (#683161) | |
rm -f /etc/xdg/autostart/xfconf-migration-4.6.desktop || : | |
# deactivate xfce4-panel first-run dialog (#693569) | |
mkdir -p /home/liveuser/.config/xfce4/xfconf/xfce-perchannel-xml | |
cp /etc/xdg/xfce4/panel/default.xml /home/liveuser/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml | |
# set up lightdm autologin | |
sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf | |
sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf | |
#sed -i 's/^#show-language-selector=.*/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf | |
# set Xfce as default session, otherwise login will fail | |
sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf | |
# Show harddisk install on the desktop | |
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop | |
mkdir /home/liveuser/Desktop | |
cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop | |
# and mark it as executable (new Xfce security feature) | |
chmod +x /home/liveuser/Desktop/liveinst.desktop | |
# group | |
usermod -a -G dialout liveuser | |
# change default background | |
ln -sf schroedinger-cat/extras/fedora-printed.jpg /usr/share/backgrounds/default.png | |
ln -sf ../default.png /usr/share/backgrounds/images/default.png | |
ln -sf ../default.png /usr/share/backgrounds/images/default-16_10.png | |
ln -sf ../default.png /usr/share/backgrounds/images/default-5_4.png | |
# this goes at the end after all other changes. | |
chown -R liveuser:liveuser /home/liveuser | |
restorecon -R /home/liveuser | |
EOF | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment