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
|
2009-08-03 21:44:14 +00:00
|
|
|
|
|
|
|
%packages
|
2011-03-05 15:54:28 +00:00
|
|
|
### LXDE desktop
|
2009-08-03 21:44:14 +00:00
|
|
|
@lxde-desktop
|
2012-09-07 19:37:13 +00:00
|
|
|
@lxde-apps
|
|
|
|
@lxde-media
|
|
|
|
@lxde-office
|
|
|
|
@firefox
|
2009-08-08 19:43:49 +00:00
|
|
|
|
2012-09-07 19:49:47 +00:00
|
|
|
# pam-fprint causes a segfault in LXDM when enabled
|
|
|
|
-fprintd-pam
|
|
|
|
|
|
|
|
|
2010-08-09 19:14:38 +00:00
|
|
|
# LXDE has lxpolkit. Make sure no other authentication agents end up in the spin.
|
|
|
|
-polkit-gnome
|
2010-04-09 23:22:26 +00:00
|
|
|
-polkit-kde
|
2009-08-18 19:58:04 +00:00
|
|
|
|
2009-10-07 00:04:54 +00:00
|
|
|
# make sure xfce4-notifyd is not pulled in
|
|
|
|
notification-daemon
|
2010-04-09 23:22:26 +00:00
|
|
|
-xfce4-notifyd
|
2009-10-07 00:04:54 +00:00
|
|
|
|
2010-10-19 01:19:59 +00:00
|
|
|
# make sure xfwm4 is not pulled in for firstboot
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=643416
|
|
|
|
metacity
|
|
|
|
|
2009-08-03 21:44:14 +00:00
|
|
|
|
|
|
|
# dictionaries are big
|
|
|
|
-aspell-*
|
|
|
|
-hunspell-*
|
|
|
|
-man-pages-*
|
|
|
|
-words
|
|
|
|
|
|
|
|
# save some space
|
|
|
|
-sendmail
|
|
|
|
ssmtp
|
|
|
|
-acpid
|
|
|
|
|
2009-10-27 00:42:10 +00:00
|
|
|
# drop some system-config things
|
|
|
|
-system-config-boot
|
|
|
|
#-system-config-language
|
|
|
|
-system-config-lvm
|
|
|
|
-system-config-network
|
|
|
|
-system-config-rootpassword
|
2009-10-27 02:38:04 +00:00
|
|
|
#-system-config-services
|
2009-10-27 00:42:10 +00:00
|
|
|
-policycoreutils-gui
|
2011-02-27 16:14:21 +00:00
|
|
|
-gnome-disk-utility
|
2009-10-27 00:42:10 +00:00
|
|
|
|
2011-10-31 21:38:21 +00:00
|
|
|
# we need UPower for suspend and hibernate
|
|
|
|
upower
|
|
|
|
|
2009-08-03 21:44:14 +00:00
|
|
|
%end
|
|
|
|
|
|
|
|
%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
|
2010-03-23 00:31:15 +00:00
|
|
|
MailClient=redhat-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
|
|
|
|
|