Difference between revisions of "Sugar on a Stick Ubuntu"

From Sugar Labs
Jump to navigation Jump to search
m
m
Line 18: Line 18:
 
How to make your own sugar.squashfs
 
How to make your own sugar.squashfs
  
First, create a stock Ubuntu 8.10 live USB system as described above and boot from it. Next, we need to fix a bug the initrd so that /cow is shown when we use the "show-cow" boot option by executing this script. Now, we add "show-cow" to the boot arguments in syslinux.conf. Then, boot the system using the fix initrd, and do the following in the running system:
+
First, create a stock Ubuntu 8.10 live USB system as described above and boot from it. Next, we need to fix a bug the initrd so that /cow is shown when we use the "show-cow" boot option by executing [http://launchpadlibrarian.net/18966594/apply-casper-patch.sh this] script. Now, we add "show-cow" to the boot arguments in syslinux.conf. Then, boot the system using the fix initrd, and do the following in the running system:
  
 
  sudo su
 
  sudo su
Line 26: Line 26:
 
  apt-get --force-yes -y  install sugar-* squashfs-tools
 
  apt-get --force-yes -y  install sugar-* squashfs-tools
  
Then do
+
* Then do
  
 
  cat > exclude <<\EOF
 
  cat > exclude <<\EOF

Revision as of 02:01, 16 December 2008

Note: this procedure works for these circumstances Taken from http://dev.laptop.org/~probono/sbuntu/

* Ubuntu 8.10 Intrepid Ibex * Built November 29, 2008 * Browse activity works

How to make a Ubuntu 8.10 Sugar Live USB system

  1. Download the stock ubuntu-8.10-desktop-i386.iso and burn it
  2. Create a Live USB system using the built-in Live USB installer (In Ubuntu 8.10 and later: System --> Administration --> Create a USB startup disk). If you choose "Stored in reserved extra space", do NOT use up the entire available space, but leave at least 100 MB so that we can add sugar in the next step.
  3. Add the file sugar.squashfs to the directory casper/ on the USB stick

Done

The file sugar.squashfs is kept separate from the Ubuntu system itself, which stays unmodified. This way, sugar can easily be updated without having to download the entire Ubuntu system. Just replace sugar.squashfs with the updated version.

The instructions below are only interesting if you want to make your own sugar.squashfs instead of the one provided for download here. How to make your own sugar.squashfs

First, create a stock Ubuntu 8.10 live USB system as described above and boot from it. Next, we need to fix a bug the initrd so that /cow is shown when we use the "show-cow" boot option by executing this script. Now, we add "show-cow" to the boot arguments in syslinux.conf. Then, boot the system using the fix initrd, and do the following in the running system:

sudo su
echo "deb http://archive.ubuntu.com/ubuntu intrepid universe" >> /etc/apt/sources.list
echo "deb http://ppa.launchpad.net/sugarteam/ubuntu intrepid main" >> /etc/apt/sources.list
apt-get update
apt-get --force-yes -y  install sugar-* squashfs-tools
  • Then do
cat > exclude <<\EOF
etc
casper
cdrom
cow
home
media
rofs
tmp
var/cache
var/log
var/run
var/tmp
var/lock
var/mail
EOF
  • It is important to exclude etc because otherwise permissions are mixed up
mount /cdrom -o remount,rw
time mksquashfs /cow/ /cdrom/casper/sugar.squashfs -ef exclude
  • If you want the system to boot straight into Sugar (instead of Gnome) during boot, do:
mkdir -p add/etc/skel/
cat > add/etc/skel/.dmrc <<\EOF
[Desktop]
Session=sugar
EOF
mksquashfs add/ /cdrom/casper/sugar.squashfs

Acknowledgments

   * OLPC Foundation
   * Sugar Labs
   * Debian Edu Developers and Debian OLPC
   * Ubuntu sugarteam

Author

Simon Peter http://wiki.laptop.org/go/User:probono