Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/soas-appliance.ks
diff options
context:
space:
mode:
authorSebastian Dziallas <sebastian@when.com>2009-05-25 14:41:25 (GMT)
committer Sebastian Dziallas <sebastian@when.com>2009-05-25 14:41:25 (GMT)
commit702e0beee16f9ed56cae616b28714e5b3a6dc9e1 (patch)
treef8d36a485f8d8342408af04a8ab7339429673efc /soas-appliance.ks
parent2fe59ce9b81b7c9d10e0e08b69e0045bec904301 (diff)
move olpc files to fedora-xo git repo - clean up
Diffstat (limited to 'soas-appliance.ks')
-rw-r--r--soas-appliance.ks318
1 files changed, 318 insertions, 0 deletions
diff --git a/soas-appliance.ks b/soas-appliance.ks
new file mode 100644
index 0000000..9c8b3db
--- /dev/null
+++ b/soas-appliance.ks
@@ -0,0 +1,318 @@
+lang en_US.UTF-8
+keyboard us
+timezone US/Eastern
+auth --useshadow --enablemd5
+selinux --disabled
+firewall --enabled --service=mdns
+xconfig --startxonboot
+
+bootloader --timeout=1 --append="acpi=force"
+network --bootproto=dhcp --device=eth0 --onboot=on
+services --enabled=network --disabled=acpid,avahi-daemon,auditd,cups,dnsmasq,exim, ip6tables,iptables,irda,kerneloops,mdmonitor,netfs,nfs,nfslock,nscd,portreserve,rpcbind,rpcgssd,rpcidmapd,sshd
+
+device virtio_blk
+device virtio_pci
+device scsi_wait_scan
+
+part / --size 1536 --fstype ext3 --ondisk sda
+
+repo --name=sugar --baseurl=http://download.sugarlabs.org/soas/repositories/2/
+
+# compose against rawhide now again
+repo --name=rawhide --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=i386 --excludepkgs=abiword,libabiword,generic-logos,plymouth,plymouth-*,PolicyKit-kde
+
+# use if mirrors are outdated
+# repo --name=rawhide --baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/i386/os/ --excludepkgs=abiword,libabiword,generic-logos,plymouth,plymouth-*,PolicyKit-kde
+
+%packages --excludedocs --instLangs en_US
+
+# basic package set
+@base-x
+@base
+@core
+kernel
+
+# sugar!
+@sugar-desktop
+
+# additional packages
+DeviceKit-disks
+espeak
+etoys
+evince-djvu
+gtksourceview2
+gvfs
+libffi
+numpy
+olpcsound
+pygame
+python-json
+squeak-vm
+sugar-update-control
+
+# use gdm to get login working
+gdm
+
+# work around for keyboard layout
+system-config-keyboard
+
+# e-mail client
+alpine
+
+# multimedia implementations
+gnash-plugin
+
+# sound
+pulseaudio
+alsa-plugins-pulseaudio
+alsa-utils
+gstreamer-plugins-good
+gstreamer-plugins-espeak
+
+# no need for kudzu if the hardware doesn't change
+-kudzu
+-prelink
+-setserial
+-ed
+
+# Remove the authconfig pieces
+-authconfig
+-rhpl
+-wireless-tools
+
+# Remove the kbd bits
+-kbd
+-usermode
+
+# these are all kind of overkill but get pulled in by mkinitrd ordering
+-mkinitrd
+-kpartx
+-dmraid
+-mdadm
+-lvm2
+-tar
+
+# save some space
+-cracklib-dicts
+-nss_db
+-acpid
+-anacron
+-mailcap
+-nano
+-wavpack
+-createrepo
+-irqbalance
+-specspo
+-esc
+-samba-client
+-a2ps
+-mpage
+-redhat-lsb
+-sox
+-hplip
+-hpijs
+-sendmail
+-ssmtp
+-numactl
+-isdn4k-utils
+-autofs
+
+# exclude input methods
+-scim*
+-m17n*
+
+# dictionaries are big
+-aspell-*
+-hunspell-*
+-man-pages-*
+-words
+
+# smartcards won't really work on the livecd.
+-coolkey
+-ccid
+
+# duplicate functionality
+-pinfo
+-vorbis-tools
+-wget
+
+# lose the compat stuff
+-compat*
+
+# scanning takes quite a bit of space :/
+-xsane
+-xsane-gimp
+-sane-backends
+
+# no printing
+-system-config-printer
+-cups*
+-foomatic*
+-gutenprint*
+
+# attempt to remove dependencies on perl
+-w3m
+-logwatch
+-lftp
+-fbset
+-exim
+-deltarpm
+
+# remove SELinux stack
+-setroubleshoot
+-policycoreutils
+-policycoreutils-gui
+-checkpolicy
+-selinux-*
+-libselinux-python
+-libselinux
+
+# other random stuff
+-bluez*
+-samba*
+-smolt*
+-*-backgrounds
+-compiz-gnome
+-nautilus-cd-burner-PackageKit*
+
+# strip fedora trademarks
+-fedora-logos
+generic-logos
+
+# make sure debuginfo doesn't end up on the live image
+-*debuginfo
+%end
+
+%post
+
+# create soas user
+/usr/sbin/useradd -m -c "soas user" soas
+/usr/bin/passwd -d soas
+
+# make sure to own home directory
+chown soas /home/soas
+chgrp soas /home/soas
+
+# turn off firstboot service
+chkconfig --level 345 firstboot off 2>/dev/null
+
+# try to work-around issues with NM and APs
+rm -f /etc/NetworkManager/dispatcher.d/05-netfs
+
+# fix issues with dbus and ck
+rm /etc/X11/xinit/xinitrc.d/00-start-message-bus.sh
+
+# Needed for spin debranding
+sed -i -e 's/Fedora/SoaS/g' /etc/fedora-release
+
+# add Sugar repository to yum
+cat >> /etc/yum.repos.d/sugar.repo << FOE
+[sugar]
+name=Sugar
+failovermethod=priority
+baseurl=http://download.sugarlabs.org/soas/repositories/2/
+enabled=1
+gpgcheck=0
+FOE
+
+# set up timed gdm auto-login for after 60 seconds
+cat >> /etc/gdm/custom.conf << FOE
+[daemon]
+TimedLoginEnable=true
+TimedLogin=soas
+TimedLoginDelay=60
+FOE
+
+# setup Xclients
+cat > /home/soas/.Xclients <<FOE
+
+eval \$(dbus-launch --sh-syntax --exit-with-session)
+
+RESOLUTION=\$(xdpyinfo | grep resolution | sed "s/.* \\([0-9][0-9]*\\)x.*/\\1/")
+if [ "\$RESOLUTION" -gt 150 ]; then
+ SUGAR_SCALING=100
+else
+ SUGAR_SCALING=72
+fi
+
+SUGAR_SCALING=\$SUGAR_SCALING sugar
+FOE
+
+# fix some permissions
+chmod a+x /home/soas/.Xclients
+chown soas:soas /home/soas/.Xclients
+
+# 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
+
+# setup activity directory
+mkdir -p /home/soas/Activities
+chown soas:soas /home/soas/Activities
+chown -R soas:soas /usr/share/sugar/honey
+for bundle in \`find /usr/share/sugar/honey -maxdepth 1\` ; do
+ln -s \$bundle /home/soas/Activities
+done
+
+# add more activities to the favorites
+cat > /usr/share/sugar/data/activities.defaults << FOE
+com.garycmartin.Moon
+org.laptop.AbiWordActivity
+org.laptop.Calculate
+org.laptop.Chat
+org.sugarlabs.InfoSlicer
+org.sugarlabs.IRC
+org.laptop.Memorize
+org.laptop.Pippy
+org.laptop.Terminal
+org.laptop.TurtleArtActivity
+org.laptop.WebActivity
+org.vpri.EtoysActivity
+vu.lux.olpc.Speak
+org.worldwideworkshop.olpc.JigsawPuzzle
+FOE
+
+%end
+
+%post --nochroot
+
+ASLO="$ASLO 4042" # InfoSlicer
+ASLO="$ASLO 4034" # Moon
+ASLO="$ASLO 4046" # JigsawPuzzle
+ASLO="$ASLO 4047" # SliderPuzzle
+ASLO="$ASLO 4063" # Memorize
+ASLO="$ASLO 4038" # Speak
+ASLO="$ASLO 4037" # CartoonBuilder
+ASLO="$ASLO 4044" # FlipSticks
+ASLO="$ASLO 4064" # JokeMachine
+ASLO="$ASLO 4029" # IRC
+ASLO="$ASLO 4054" # FreeCell
+ASLO="$ASLO 4039" # ViewSlides
+ASLO="$ASLO 4073" # StoryBuilder
+ASLO="$ASLO 4074" # Poll
+ASLO="$ASLO 4058" # Develop
+ASLO="$ASLO 4078" # Labyrinth
+ASLO="$ASLO 4082" # Paint
+ASLO="$ASLO 4081" # Record
+ASLO="$ASLO 4059" # TamTamEdit
+ASLO="$ASLO 4060" # TamTamJam
+ASLO="$ASLO 4061" # TamTamMini
+ASLO="$ASLO 4062" # TamTamSynth Lab
+
+WD=$PWD
+BUNDLES_DIR=$INSTALL_ROOT/usr/share/sugar/honey
+
+mkdir -p $BUNDLES_DIR
+cd $BUNDLES_DIR
+
+for id in $ASLO ; do
+ curl -L http://activities.sugarlabs.org/en-US/sugar/downloads/latest/$id > $id.xo
+done
+
+for file in *.xo ; do
+ unzip $file
+ rm $file
+done
+
+cd $WD
+
+%end