2008-05-01 16:30:50 +02:00
|
|
|
# fedora-livecd-xfce.ks
|
2008-04-25 12:10:13 +02:00
|
|
|
#
|
|
|
|
# Description:
|
|
|
|
# - Fedora Live Spin with the light-weight XFCE Desktop Environment
|
|
|
|
#
|
|
|
|
# Maintainer(s):
|
2008-09-25 16:45:23 +05:30
|
|
|
# - Rahul Sundaram <sundaram@fedoraproject.org>
|
2009-10-10 01:49:20 +02:00
|
|
|
# - Christoph Wickert <cwickert@fedoraproject.org>
|
2008-09-25 16:45:23 +05:30
|
|
|
# - Kevin Fenzi <kevin@tummy.com>
|
2011-01-07 10:40:57 -06:00
|
|
|
# - Adam Miller <maxamillion@fedoraproject.org>
|
2008-04-23 10:21:10 +02:00
|
|
|
|
2008-04-24 01:29:55 +02:00
|
|
|
%include fedora-live-base.ks
|
2010-03-23 09:14:04 -04:00
|
|
|
%include fedora-live-minimization.ks
|
2013-01-24 18:27:54 -06:00
|
|
|
%include fedora-xfce-packages.ks
|
2008-04-23 10:21:10 +02:00
|
|
|
|
|
|
|
%post
|
|
|
|
# xfce configuration
|
|
|
|
|
2013-05-11 11:44:13 -06:00
|
|
|
# This is a huge file and things work ok without it
|
|
|
|
rm -f /usr/share/icons/HighContrast/icon-theme.cache
|
|
|
|
|
2008-04-23 10:21:10 +02:00
|
|
|
# create /etc/sysconfig/desktop (needed for installation)
|
|
|
|
|
|
|
|
cat > /etc/sysconfig/desktop <<EOF
|
|
|
|
PREFERRED=/usr/bin/startxfce4
|
2012-07-21 15:02:37 -06:00
|
|
|
DISPLAYMANAGER=/usr/sbin/lightdm
|
2008-04-23 10:21:10 +02:00
|
|
|
EOF
|
|
|
|
|
2008-10-02 11:05:16 -04:00
|
|
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
2008-04-23 10:21:10 +02:00
|
|
|
|
2009-08-18 15:27:56 -05:00
|
|
|
mkdir -p /home/liveuser/.config/xfce4
|
|
|
|
|
2009-09-22 16:38:33 -06:00
|
|
|
cat > /home/liveuser/.config/xfce4/helpers.rc << FOE
|
2009-08-18 15:27:56 -05:00
|
|
|
MailReader=sylpheed-claws
|
2011-04-05 01:21:48 +02:00
|
|
|
FileManager=Thunar
|
2013-05-17 20:10:07 -06:00
|
|
|
WebBrowser=midori
|
2009-09-22 16:38:33 -06:00
|
|
|
FOE
|
2009-08-18 15:27:56 -05:00
|
|
|
|
2011-04-05 01:29:11 +02:00
|
|
|
# disable screensaver locking (#674410)
|
2010-03-16 10:35:06 -06:00
|
|
|
cat >> /home/liveuser/.xscreensaver << FOE
|
2011-02-02 22:46:03 +01:00
|
|
|
mode: off
|
|
|
|
lock: False
|
|
|
|
dpmsEnabled: False
|
2010-03-16 10:35:06 -06:00
|
|
|
FOE
|
2011-04-05 01:29:11 +02:00
|
|
|
|
|
|
|
# deactivate xfconf-migration (#683161)
|
|
|
|
rm -f /etc/xdg/autostart/xfconf-migration-4.6.desktop || :
|
|
|
|
|
2011-04-08 22:38:41 +02:00
|
|
|
# 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
|
|
|
|
|
2012-07-21 15:02:37 -06:00
|
|
|
# set up lightdm autologin
|
2012-11-24 15:48:37 +01:00
|
|
|
sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf
|
2013-01-08 16:24:49 +01:00
|
|
|
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
|
2008-09-25 17:00:25 +05:30
|
|
|
|
2013-01-08 22:25:16 +01:00
|
|
|
# set Xfce as default session, otherwise login will fail
|
|
|
|
sed -i 's/^#user-session=.*/user-session=xfce/' /etc/lightdm/lightdm.conf
|
|
|
|
|
2009-09-22 16:38:33 -06:00
|
|
|
# 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
|
|
|
|
|
2013-01-09 00:15:13 +01:00
|
|
|
# and mark it as executable (new Xfce security feature)
|
|
|
|
chmod +x /home/liveuser/Desktop/liveinst.desktop
|
|
|
|
|
2009-09-22 16:38:33 -06:00
|
|
|
# this goes at the end after all other changes.
|
|
|
|
chown -R liveuser:liveuser /home/liveuser
|
|
|
|
restorecon -R /home/liveuser
|
|
|
|
|
2008-04-23 10:21:10 +02:00
|
|
|
EOF
|
2008-04-24 01:29:55 +02:00
|
|
|
|
2008-04-23 10:21:10 +02:00
|
|
|
%end
|
|
|
|
|