1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-29 18:33:09 +00:00

Security: Sync LXDE and LXDM configuration with LXDE spin

This commit is contained in:
Christoph Wickert 2010-03-23 19:42:50 +01:00
parent 8ca163d935
commit ad63119312

View File

@ -170,30 +170,26 @@ PolicyKit-gnome
%end %end
%post %post
# LXDE and LXDM configuration
# set up auto-login for liveuser
cat >> /etc/slim.conf << FOE
auto_login yes
default_user liveuser
FOE
# create /etc/sysconfig/desktop (needed for installation) # create /etc/sysconfig/desktop (needed for installation)
cat >> /etc/sysconfig/desktop <<EOF cat > /etc/sysconfig/desktop <<EOF
PREFERRED=/usr/bin/startlxde PREFERRED=/usr/bin/startlxde
DISPLAYMANAGER=/usr/bin/slim-dynwm DISPLAYMANAGER=/usr/sbin/lxdm
EOF EOF
cat >> /etc/rc.d/init.d/livesys << EOF cat >> /etc/rc.d/init.d/livesys << EOF
# disable screensaver locking and make sure gamin gets started # disable screensaver locking and make sure gamin gets started
rm -f /etc/xdg/lxsession/LXDE/autostart cat > /etc/xdg/lxsession/LXDE/autostart << FOE
cat >> /etc/xdg/lxsession/LXDE/autostart << FOE
/usr/libexec/gam_server /usr/libexec/gam_server
@lxde-settings-daemon
@pulseaudio -D
@lxpanel --profile LXDE @lxpanel --profile LXDE
@pcmanfm -d @pcmanfm -d
@pulseaudio -D
FOE FOE
# set up auto-login for liveuser
sed -i 's|# autologin=dgod|autologin=liveuser|g' /etc/lxdm/lxdm.conf
# Show harddisk install on the desktop # Show harddisk install on the desktop
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
mkdir /home/liveuser/Desktop mkdir /home/liveuser/Desktop
@ -202,9 +198,10 @@ cp /usr/share/applications/liveinst.desktop /home/liveuser/Desktop
# Add autostart for parcellite # Add autostart for parcellite
cp /usr/share/applications/fedora-parcellite.desktop /etc/xdg/autostart cp /usr/share/applications/fedora-parcellite.desktop /etc/xdg/autostart
#last thing to do # this goes at the end after all other changes.
chown -R liveuser:liveuser /home/liveuser chown -R liveuser:liveuser /home/liveuser
restorecon -R /home/liveuser restorecon -R /home/liveuser
EOF EOF
%end %end