2015-05-27 18:39:08 +00:00
|
|
|
# fedora-live-cinnamon.ks
|
|
|
|
#
|
|
|
|
# Description:
|
|
|
|
# - Fedora Live Spin with the Cinnamon Desktop Environment
|
|
|
|
#
|
|
|
|
# Maintainer(s):
|
|
|
|
# - Dan Book <grinnz@grinnz.com>
|
|
|
|
|
2015-05-27 19:09:09 +00:00
|
|
|
%include fedora-live-base.ks
|
2017-01-18 11:28:09 +00:00
|
|
|
%include fedora-cinnamon-common.ks
|
2015-05-27 18:39:08 +00:00
|
|
|
|
2018-11-13 16:28:30 +00:00
|
|
|
part / --size=8192
|
2015-05-27 18:39:08 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
# cinnamon configuration
|
|
|
|
|
|
|
|
# create /etc/sysconfig/desktop (needed for installation)
|
|
|
|
|
|
|
|
cat > /etc/sysconfig/desktop <<EOF
|
|
|
|
PREFERRED=/usr/bin/cinnamon-session
|
|
|
|
DISPLAYMANAGER=/usr/sbin/lightdm
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> /etc/rc.d/init.d/livesys << EOF
|
|
|
|
|
|
|
|
# set up lightdm autologin
|
|
|
|
sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf
|
|
|
|
sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf
|
|
|
|
#sed -i 's/^#show-language-selector=.*/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf
|
|
|
|
|
|
|
|
# set Cinnamon as default session, otherwise login will fail
|
|
|
|
sed -i 's/^#user-session=.*/user-session=cinnamon/' /etc/lightdm/lightdm.conf
|
|
|
|
|
2017-07-14 16:02:47 +00:00
|
|
|
# no updater applet in live environment
|
|
|
|
rm -f /etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop
|
|
|
|
|
2015-05-27 18:39:08 +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
|
|
|
|
|
|
|
|
# and mark it as executable
|
|
|
|
chmod +x /home/liveuser/Desktop/liveinst.desktop
|
|
|
|
|
|
|
|
# this goes at the end after all other changes.
|
|
|
|
chown -R liveuser:liveuser /home/liveuser
|
|
|
|
restorecon -R /home/liveuser
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%end
|
|
|
|
|
|
|
|
|