2009-08-03 21:44:14 +00:00
|
|
|
# fedora-livecd-lxde.ks
|
|
|
|
#
|
|
|
|
# Description:
|
|
|
|
# - Fedora Live Spin with the light-weight LXDE Desktop Environment
|
|
|
|
#
|
|
|
|
# Maintainer(s):
|
|
|
|
# - Christoph Wickert <cwickert@fedoraproject.org>
|
|
|
|
|
|
|
|
%include fedora-live-base.ks
|
2010-03-23 13:14:04 +00:00
|
|
|
%include fedora-live-minimization.ks
|
2013-01-25 02:42:55 +00:00
|
|
|
%include fedora-lxde-packages.ks
|
2009-08-03 21:44:14 +00:00
|
|
|
|
|
|
|
%post
|
2010-03-23 18:41:51 +00:00
|
|
|
# LXDE and LXDM configuration
|
2009-08-03 21:44:14 +00:00
|
|
|
|
|
|
|
# create /etc/sysconfig/desktop (needed for installation)
|
2010-03-23 00:31:15 +00:00
|
|
|
cat > /etc/sysconfig/desktop <<EOF
|
2009-08-03 21:44:14 +00:00
|
|
|
PREFERRED=/usr/bin/startlxde
|
2010-03-23 00:31:15 +00:00
|
|
|
DISPLAYMANAGER=/usr/sbin/lxdm
|
2009-08-03 21:44:14 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
2009-11-21 21:17:27 +00:00
|
|
|
# disable screensaver locking and make sure gamin gets started
|
2010-03-23 00:31:15 +00:00
|
|
|
cat > /etc/xdg/lxsession/LXDE/autostart << FOE
|
2009-11-21 21:17:27 +00:00
|
|
|
/usr/libexec/gam_server
|
2009-10-27 00:42:10 +00:00
|
|
|
@lxpanel --profile LXDE
|
2011-05-06 09:04:53 +00:00
|
|
|
@pcmanfm --desktop --profile LXDE
|
2011-10-31 21:38:21 +00:00
|
|
|
/usr/libexec/notification-daemon
|
2010-03-23 00:31:15 +00:00
|
|
|
FOE
|
|
|
|
|
|
|
|
# set up preferred apps
|
|
|
|
cat > /etc/xdg/libfm/pref-apps.conf << FOE
|
|
|
|
[Preferred Applications]
|
2012-03-30 14:15:41 +00:00
|
|
|
WebBrowser=firefox.desktop
|
2013-04-19 21:37:56 +00:00
|
|
|
MailClient=sylpheed.desktop
|
2009-10-27 00:42:10 +00:00
|
|
|
FOE
|
2009-08-03 21:44:14 +00:00
|
|
|
|
2009-10-27 00:42:10 +00:00
|
|
|
# set up auto-login for liveuser
|
2010-03-23 18:41:51 +00:00
|
|
|
sed -i 's|# autologin=dgod|autologin=liveuser|g' /etc/lxdm/lxdm.conf
|
2009-08-03 21:44:14 +00:00
|
|
|
|
2009-10-07 00:04:54 +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
|
|
|
|
|
2009-10-27 00:42:10 +00:00
|
|
|
# Add autostart for parcellite
|
|
|
|
cp /usr/share/applications/fedora-parcellite.desktop /etc/xdg/autostart
|
|
|
|
|
2009-10-07 00:04:54 +00:00
|
|
|
# this goes at the end after all other changes.
|
|
|
|
chown -R liveuser:liveuser /home/liveuser
|
|
|
|
restorecon -R /home/liveuser
|
|
|
|
|
2009-08-03 21:44:14 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
%end
|
|
|
|
|