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