2010-03-25 20:44:43 +00:00
|
|
|
# fedora-livecd-soas.ks
|
2010-01-20 19:23:12 +00:00
|
|
|
#
|
|
|
|
# Description:
|
|
|
|
# - A Sugar environment that you can carry in your pocket
|
|
|
|
#
|
|
|
|
# Maintainers:
|
2021-02-18 17:59:24 +00:00
|
|
|
# - Chihurumnaya Ibiam <ibiamchihurumnaya AT gmail DOT com>
|
|
|
|
# - Alex Perez <aperez AT alexperez DOT com>
|
2010-01-20 19:23:12 +00:00
|
|
|
|
2012-12-10 22:49:06 +00:00
|
|
|
%include fedora-live-base.ks
|
2012-11-30 14:54:40 +00:00
|
|
|
%include fedora-live-minimization.ks
|
2017-01-18 11:28:09 +00:00
|
|
|
%include fedora-soas-common.ks
|
2010-01-20 19:23:12 +00:00
|
|
|
|
|
|
|
%post
|
2010-04-26 18:03:36 +00:00
|
|
|
|
2013-09-05 22:18:04 +00:00
|
|
|
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 Sugar as default session, otherwise login will fail
|
|
|
|
sed -i 's/^#user-session=.*/user-session=sugar/' /etc/lightdm/lightdm.conf
|
|
|
|
EOF
|
|
|
|
|
2012-12-10 22:49:06 +00:00
|
|
|
cat >> /etc/rc.d/init.d/livesys-late << EOF
|
|
|
|
|
|
|
|
# disable screensaver locking
|
|
|
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.desktop.screensaver.gschema.override << FOE
|
|
|
|
[org.gnome.desktop.screensaver]
|
|
|
|
lock-enabled=false
|
|
|
|
FOE
|
|
|
|
|
|
|
|
# and hide the lock screen option
|
|
|
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.override << FOE
|
|
|
|
[org.gnome.desktop.lockdown]
|
|
|
|
disable-lock-screen=true
|
2010-01-20 19:23:12 +00:00
|
|
|
FOE
|
|
|
|
|
2012-12-10 22:49:06 +00:00
|
|
|
# rebuild schema cache with any overrides we installed
|
|
|
|
glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
2011-06-12 11:11:59 +00:00
|
|
|
chmod 755 /etc/rc.d/init.d/livesys-late
|
|
|
|
/sbin/restorecon /etc/rc.d/init.d/livesys-late
|
|
|
|
/sbin/chkconfig --add livesys-late
|
|
|
|
|
2010-01-20 19:23:12 +00:00
|
|
|
%end
|