fedora-kickstarts/fedora-livecd-soas.ks

167 lines
4.3 KiB
Plaintext
Raw Normal View History

# fedora-livecd-soas.ks
#
# Description:
# - A Sugar environment that you can carry in your pocket
#
# Maintainers:
# - Peter Robinson <pbrobinson AT gmail DOT com>
# - Sebastian Dziallas <sdz AT fedoraproject DOT org>
# - Mel Chua <mchua AT fedoraproject DOT org>
%include fedora-live-mini.ks
part / --size=2560
2011-12-23 16:34:54 +00:00
firewall --enabled --service=mdns,presence
%packages
# == Core Sugar Platform ==
2011-04-05 08:05:16 +00:00
@sugar-desktop
2011-11-12 10:22:59 +00:00
# Write breaks unless we do this (we don't need it anyway)
# enable for testing in the F17 dev cycle
@input-methods
# == Platform Components ==
2011-11-12 10:22:59 +00:00
# from http://wiki.sugarlabs.org/go/0.94/Platform_Components
alsa-plugins-pulseaudio
alsa-utils
gstreamer-plugins-good
gstreamer-plugins-espeak
gstreamer-plugins-bad-free
pulseaudio
2010-04-26 22:36:15 +00:00
pulseaudio-utils
# explicitly remove openbox and add metacity to hopefully deal with what firstboot wants
2011-04-05 08:05:16 +00:00
-openbox
2010-04-26 19:24:43 +00:00
# Usefulness for DSL connections as per:
# http://bugs.sugarlabs.org/ticket/1951
rp-pppoe
# Useful for SoaS duplication from:
# http://bugs.sugarlabs.org/ticket/74
2010-04-26 22:36:15 +00:00
livecd-tools
2010-04-26 19:24:43 +00:00
# Get the Sugar boot screen
-plymouth-system-theme
-plymouth-theme-charge
sugar-logos
# == Hardware ==
# Lets support Broadcom and XO wifi hardware
b43-openfwwf
libertas-usb8388-firmware
%end
%post
# 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
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
# Get proper release naming in the control panel
cat >> /boot/olpc_build << EOF
2011-10-28 09:17:56 +00:00
Sugar on a Stick 7
Fedora release 17 (Beefy Miracle)
EOF
2011-06-12 11:11:59 +00:00
cat >> /etc/rc.d/init.d/livesys-late << EOF
# Don't use the default system user (in SoaS liveuser) as nick name
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t string /desktop/sugar/user/default_nick disabled >/dev/null
# Disable the logout menu item in Sugar
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /desktop/sugar/show_logout false >/dev/null
# Enable Sugar power management
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /desktop/sugar/power/automatic True >/dev/null
2011-04-05 08:05:16 +00:00
# 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
FOE
# disable updates plugin
cat >> /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.override << FOE
[org.gnome.settings-daemon.plugins.updates]
active=false
FOE
# Create a default gnome keyring - should fix RHBZ # 649013
if [ ! -e /home/liveuser/.gnome2/keyrings/login.keyring ]; then
mkdir -p /home/liveuser/.gnome2/keyrings
cat >> /home/liveuser/.gnome2/keyrings/login.keyring << FOE
[keyring]
display-name=login
ctime=1302886515
mtime=1302886515
lock-on-idle=false
lock-timeout=0
FOE
2011-06-12 11:11:59 +00:00
chown -R liveuser:liveuser /home/liveuser/.gnome2/keyrings
fi
# Add our activities to the favorites
cat > /usr/share/sugar/data/activities.defaults << FOE
org.laptop.AbiWordActivity
org.laptop.Chat
org.laptop.Calculate
org.laptop.Clock
2011-10-27 13:30:09 +00:00
org.laptop.ImageViewerActivity
org.laptop.Log
org.laptop.Memorize
org.laptop.physics
org.laptop.Pippy
2010-04-26 19:00:20 +00:00
org.laptop.RecordActivity
org.laptop.Terminal
org.laptop.TurtleArtActivity
2012-04-23 13:27:13 +00:00
org.laptop.WebActivity
2011-10-09 16:42:06 +00:00
org.laptop.community.TypingTurtle
2011-10-27 13:30:09 +00:00
org.laptop.sugar.Jukebox
2012-04-23 13:27:13 +00:00
org.laptop.sugar.ReadActivity
org.gnome.Labyrinth
2011-10-09 18:30:29 +00:00
com.laptop.Ruler
org.sugarlabs.AbacusActivity
org.sugarlabs.IRC
2012-04-23 13:27:13 +00:00
org.sugarlabs.Infoslicer
org.sugarlabs.PortfolioActivity
2011-10-09 16:42:06 +00:00
org.sugarlabs.VisualMatchActivity
org.vpri.EtoysActivity
2011-10-09 16:42:06 +00:00
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
vu.lux.olpc.Speak
FOE
2011-04-05 08:05:16 +00:00
# rebuild schema cache with any overrides we installed
glib-compile-schemas /usr/share/glib-2.0/schemas
# set up timed auto-login for after 60 seconds
cat >> /etc/gdm/custom.conf << FOE
[daemon]
2011-04-05 08:05:16 +00:00
AutomaticLoginEnable=True
AutomaticLogin=liveuser
FOE
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
%end