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:
|
|
|
|
# - Peter Robinson <pbrobinson AT gmail DOT com>
|
2011-11-28 10:46:38 +00:00
|
|
|
# - Sebastian Dziallas <sdz AT fedoraproject DOT org>
|
2010-03-25 20:44:43 +00:00
|
|
|
# - Mel Chua <mchua AT fedoraproject DOT org>
|
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
|
2013-01-25 03:51:40 +00:00
|
|
|
%include fedora-soas-packages.ks
|
2010-01-20 19:23:12 +00:00
|
|
|
|
2011-12-23 16:34:54 +00:00
|
|
|
firewall --enabled --service=mdns,presence
|
2010-07-01 15:46:36 +00:00
|
|
|
|
2010-01-20 19:23:12 +00:00
|
|
|
%post
|
2010-04-26 18:03:36 +00:00
|
|
|
|
|
|
|
# Rebuild initrd for Sugar boot screen
|
|
|
|
KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
|
|
|
|
/usr/sbin/plymouth-set-default-theme sugar
|
|
|
|
/sbin/dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
2011-11-12 10:22:59 +00:00
|
|
|
|
2011-01-26 06:51:41 +00:00
|
|
|
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
|
|
|
rm -f /var/lib/rpm/__db*
|
2010-04-26 18:03:36 +00:00
|
|
|
|
2010-04-26 19:07:24 +00:00
|
|
|
# Get proper release naming in the control panel
|
|
|
|
cat >> /boot/olpc_build << EOF
|
2014-10-03 09:32:18 +00:00
|
|
|
Sugar on a Stick
|
2010-04-26 19:07:24 +00:00
|
|
|
EOF
|
2014-10-03 09:32:18 +00:00
|
|
|
cat /etc/fedora-release >> /boot/olpc_build
|
2010-04-26 19:07:24 +00:00
|
|
|
|
2010-04-26 18:03:36 +00:00
|
|
|
# Add our activities to the favorites
|
2012-12-10 22:49:06 +00:00
|
|
|
cat > /usr/share/sugar/data/activities.defaults << EOF
|
2012-05-05 13:04:16 +00:00
|
|
|
org.laptop.WebActivity
|
|
|
|
org.laptop.HelpActivity
|
2010-04-26 18:03:36 +00:00
|
|
|
org.laptop.Chat
|
2012-05-05 13:04:16 +00:00
|
|
|
org.laptop.sugar.ReadActivity
|
|
|
|
org.laptop.sugar.GetBooksActivity
|
|
|
|
org.laptop.AbiWordActivity
|
|
|
|
org.laptop.TurtleArtActivity
|
2011-04-11 14:46:57 +00:00
|
|
|
org.laptop.Calculate
|
2011-09-12 09:37:18 +00:00
|
|
|
org.laptop.Clock
|
2011-10-27 13:30:09 +00:00
|
|
|
org.laptop.ImageViewerActivity
|
2011-04-11 14:46:57 +00:00
|
|
|
org.laptop.Memorize
|
2010-03-25 20:44:43 +00:00
|
|
|
org.laptop.physics
|
2011-04-11 14:46:57 +00:00
|
|
|
org.laptop.Pippy
|
2010-04-26 19:00:20 +00:00
|
|
|
org.laptop.RecordActivity
|
2012-05-05 13:04:16 +00:00
|
|
|
org.laptop.Oficina
|
2012-12-10 22:49:06 +00:00
|
|
|
org.laptop.StopWatchActivity
|
|
|
|
org.laptop.community.Finance
|
2011-10-09 16:42:06 +00:00
|
|
|
org.laptop.community.TypingTurtle
|
2011-10-27 13:30:09 +00:00
|
|
|
org.laptop.sugar.Jukebox
|
2013-10-23 16:35:44 +00:00
|
|
|
org.eq.FotoToon
|
2012-04-23 13:27:13 +00:00
|
|
|
org.gnome.Labyrinth
|
2011-10-09 18:30:29 +00:00
|
|
|
com.laptop.Ruler
|
2011-04-11 14:46:57 +00:00
|
|
|
org.sugarlabs.AbacusActivity
|
2010-03-25 20:44:43 +00:00
|
|
|
org.sugarlabs.IRC
|
2012-12-10 22:49:06 +00:00
|
|
|
org.sugarlabs.InfoSlicer
|
2012-04-23 13:27:13 +00:00
|
|
|
org.sugarlabs.PortfolioActivity
|
2011-10-09 16:42:06 +00:00
|
|
|
org.sugarlabs.VisualMatchActivity
|
|
|
|
com.garycmartin.Moon
|
2012-04-23 13:27:13 +00:00
|
|
|
mulawa.Countries
|
2011-06-12 17:41:33 +00:00
|
|
|
tv.alterna.Clock
|
2011-10-09 16:42:06 +00:00
|
|
|
vu.lux.olpc.Maze
|
2011-04-11 14:46:57 +00:00
|
|
|
vu.lux.olpc.Speak
|
2012-12-10 22:49:06 +00:00
|
|
|
EOF
|
2011-04-05 08:05:16 +00:00
|
|
|
|
2013-06-24 23:04:31 +00:00
|
|
|
cat > /etc/sysconfig/desktop <<EOF
|
|
|
|
PREFERRED=/usr/bin/sugar
|
|
|
|
DISPLAYMANAGER=/usr/sbin/lightdm
|
2012-12-10 22:49:06 +00:00
|
|
|
EOF
|
|
|
|
|
2013-06-24 23:04:31 +00:00
|
|
|
# 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
|
|
|
|
|
2012-12-10 22:49:06 +00:00
|
|
|
# Don't use the default system user (in SoaS liveuser) as nick name
|
|
|
|
# Disable the logout menu item in Sugar
|
|
|
|
# Enable Sugar power management
|
2014-10-17 16:32:26 +00:00
|
|
|
cat >/usr/share/glib-2.0/schemas/sugar.soas.gschema.override <<EOF
|
|
|
|
[org.sugarlabs.user]
|
|
|
|
default-nick='disabled'
|
|
|
|
|
|
|
|
[org.sugarlabs]
|
|
|
|
show-logout=false
|
|
|
|
|
|
|
|
[org.sugarlabs.power]
|
|
|
|
automatic=true
|
|
|
|
EOF
|
|
|
|
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/sugar.soas.gschema.override
|
2012-12-10 22:49:06 +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
|