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
|
2008-04-23 08:21:10 +00:00
|
|
|
|
|
|
|
%packages
|
2008-09-25 16:21:08 +00:00
|
|
|
|
2008-04-23 08:21:10 +00:00
|
|
|
@xfce-desktop
|
2012-09-07 19:37:13 +00:00
|
|
|
@xfce-apps
|
|
|
|
@xfce-extra-plugins
|
|
|
|
@xfce-media
|
|
|
|
@xfce-office
|
|
|
|
@firefox
|
2008-04-23 08:21:10 +00:00
|
|
|
|
|
|
|
# save some space
|
|
|
|
-autofs
|
2008-09-25 11:30:25 +00:00
|
|
|
-acpid
|
2012-10-17 18:02:19 +00:00
|
|
|
-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
|
2012-11-16 16:13:28 +00:00
|
|
|
-gnumeric
|
2012-10-17 18:02:19 +00:00
|
|
|
#-man-pages-*
|
2009-10-27 00:26:01 +00:00
|
|
|
|
|
|
|
# drop some system-config things
|
|
|
|
-system-config-boot
|
|
|
|
-system-config-lvm
|
|
|
|
-system-config-network
|
|
|
|
-system-config-rootpassword
|
2009-10-27 02:38:04 +00:00
|
|
|
#-system-config-services
|
2009-10-27 00:26:01 +00:00
|
|
|
-policycoreutils-gui
|
|
|
|
|
2008-04-23 08:21:10 +00:00
|
|
|
%end
|
|
|
|
|
|
|
|
%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
|
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-09-18 16:52:35 +00:00
|
|
|
sed -i 's/^#autologin-user=/autologin-user=liveuser/' /etc/lightdm/lightdm.conf
|
2012-10-15 14:45:15 +00:00
|
|
|
sed -i 's/^#autologin-user-timeout=0/autologin-user-timeout=30/' /etc/lightdm/lightdm.conf
|
|
|
|
sed -i 's/^#show-language-selector=false/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf
|
2008-09-25 11:30:25 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|