Contents
new debxo images
DebXO allows you to install Debian (lenny) and Gnome easily on your XO. It's a bit rough around the edges, but it's perfectly usable (I'm typing this email from within claws on it).
It can be downloaded from here:
http://lunge.queued.net/~dilinger/debxo-latest/images/ext3/
The git repository can be downloaded via:
git clone git://lunge.mit.edu/git/xodist/
Full installation instructions are in DebXO on wiki.laptop.org
ToDo
- add /home from sd card
Installing Debian from Fedora
This is originally described in Debian as upgrade on wiki.laptop.org.
In a root shell enter:
olpc-update -r -f -v debian
or
olpc-update -r -f -v debian-big
You need network access for this to work.
This is described in detail at http://wiki.laptop.org/go/Installing_Debian_as_an_upgrade
- This script works also:
tgz_url="http://dev.laptop.org/~cscott/xo-debian.tgz"
cd /versions/pristine
mkdir debian
cd debian
# wget -O- "$tgz_url" | tar xz
wget -q -O- "$tgz_url" | tar xvz
cp /etc/{hosts,fstab} /versions/pristine/debian/etc/
cp -r /lib/modules/* /versions/pristine/debian/lib/modules
cp -r /lib/firmware/* /versions/pristine/debian/lib/firmware
mkdir -p /versions/pristine/debian/{versions,security,var/cache/apt/cache}
rm -rf /versions/pristine/debian/boot
cp -r /boot /versions/pristine/debian
cat <<END > /versions/pristine/debian/etc/rcS.d/S00unfreeze.sh
#! /bin/sh
mount -t sysfs /sys /sys
echo 0 > /sys/devices/platform/dcon/freeze
umount /sys
END
chmod a+rx /versions/pristine/debian/etc/rcS.d/S00unfreeze.sh
echo 'tmpfs /var/cache/apt/cache tmpfs defaults 0 0' >> /versions/pristine/debian/etc/fstab
cat <<END > /versions/pristine/debian/etc/apt/apt.conf.d/00-tmpfs-cache
Dir {
Cache "var/cache/apt/" {
srcpkgcache "cache/srcpkgcache.bin";
pkgcache "cache/pkgcache.bin";
};
};
END
cd /versions/boot
rm -rf alt
ln -s /versions/pristine/debian alt
cp -rl /versions/pristine/debian /versions/run/debian
/usr/sbin/setattr -R --iunlink /versions/run/debian
echo 'Debian is installed! Reboot and hold down the game key labelled "O"'- After rebooting you must do the networking part:
modprobe usb8xxx iwconfig eth0 essid <your-access-point>
Installing Debian from a USB-Stick
download the following two files to a USB stick: http://radian.org/~krstic/etch-xfce.tar and http://radian.org/~krstic/etch-xfce-home.tar
- get a developer key, disable security (g1g1 machines only)
- boot the normal build, switch to tty1 (ctrl+alt+f1), become root
- mount the USB key if not automounted; let's say it's mounted at /media/KEY
# cd /versions/pristine; tar xf /media/KEY/etch-xfce.tar
# cd /home/olpc; tar xf /media/KEY/etch-xfce-home.tar
# cp -rl /versions/pristine/debian /versions/run/debian
# /usr/sbin/setattr -R --iunlink /versions/run/debian
# ln -s /versions/pristine/debian /versions/boot/alt
# sync
- Power off the XO. Power on and immediately hold the 'O' game key (right hand side of the screen.
Boot should now proceed to a blue-background login screen. Log in as user 'olpc' with password 'olpc' -- that user has sudo access. Give XFCE a bit of time to load, and voila! Use the keyboard shortcuts below for some of the most useful options. Note that Firefox can take up to 15-20s to load after you start it, and you won't see a progress indication on the screen; that's expected. Also, you don't need to hold the 'O' key to boot into Debian next time; it'll be the default. Holding the key will get you back to the regular Sugar build.
Keyboard shortcuts
- Ctrl+alt+w -- wireless AP picker
- Ctrl+alt+t -- xterm (also alt+`)
- Ctrl+alt+f -- firefox
- Ctrl+alt+b -- thunderbird
- Ctrl+alt+x -- xmms
Thanks to Ivan Krstić < krstic@solarsail.hcs.harvard.edu > for this!
Native Debian
It is possible to install sugar doing
apt-get install sugar
Note: This packaging is still under heavy development.
Debian on a B2
This is a bit older:
Now, you can install debian base on an OLPC B2 machine please see http://wiki.debian.org/howto_debian_olpc
