mirror of
https://pagure.io/fedora-kickstarts.git
synced 2025-12-06 11:39:40 +08:00
Switch all live media variants to use livesys-scripts
Reference: https://fedoraproject.org/wiki/Changes/ModernizeLiveMedia
This commit is contained in:
@@ -19,46 +19,8 @@ PREFERRED=/usr/bin/startlxde
|
||||
DISPLAYMANAGER=/usr/sbin/lxdm
|
||||
EOF
|
||||
|
||||
cat >> /etc/rc.d/init.d/livesys << EOF
|
||||
# disable screensaver locking and make sure gamin gets started
|
||||
cat > /etc/xdg/lxsession/LXDE/autostart << FOE
|
||||
/usr/libexec/gam_server
|
||||
@lxpanel --profile LXDE
|
||||
@pcmanfm --desktop --profile LXDE
|
||||
/usr/libexec/notification-daemon
|
||||
FOE
|
||||
|
||||
# set up preferred apps
|
||||
cat > /etc/xdg/libfm/pref-apps.conf << FOE
|
||||
[Preferred Applications]
|
||||
WebBrowser=firefox.desktop
|
||||
MailClient=sylpheed.desktop
|
||||
FOE
|
||||
|
||||
# set up auto-login for liveuser
|
||||
sed -i 's/# autologin=.*/autologin=liveuser/g' /etc/lxdm/lxdm.conf
|
||||
|
||||
# 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
|
||||
|
||||
# create default config for clipit, otherwise it displays a dialog on startup
|
||||
mkdir -p /home/liveuser/.config/clipit
|
||||
cat > /home/liveuser/.config/clipit/clipitrc << FOE
|
||||
[rc]
|
||||
use_copy=true
|
||||
save_uris=true
|
||||
save_history=false
|
||||
statics_show=true
|
||||
single_line=true
|
||||
FOE
|
||||
|
||||
# this goes at the end after all other changes.
|
||||
chown -R liveuser:liveuser /home/liveuser
|
||||
restorecon -R /home/liveuser
|
||||
|
||||
EOF
|
||||
# set livesys session type
|
||||
sed -i 's/^livesys_session=.*/livesys_session="lxde"/' /etc/sysconfig/livesys
|
||||
|
||||
%end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user