Stage 3: Install QEMU disk image to removable media
This step is going to destroy any data on your removable device so be sure to get your stuff off of it. Then run (as root):
# dd if=/path-to-QEMU-disk-image/name-of-disk-image of=/dev/removable-media-device bs=1M
# sync (if the drive auto-mounts after this step, unmount it before continuing)
# tune2fs /dev/removable-media-device-partition -L OLPCroot
Stage 4: Configure Ubuntu installation to boot on the XO
Now you need to boot up your XO and stick the SD card or USB drive with the Ubuntu environment in your XO. Open up a terminal or use the key combination Ctrl-Alt-Neighborhood and su to root. We’re going to need the kernel and some configuration files from Sugar before we can actually boot into the Ubuntu environment. Run these commands as root:
# cp -ra /boot /media/OLPCroot/
# cp -ra /lib/modules /media/OLPCroot/lib/
# cp -ra /lib/firmware /media/OLPCroot/lib/
# cp -ra /security /media/OLPCroot/
# mv /media/OLPCroot/etc/modprobe.d /media/OLPCroot/etc/modprobe.old
# cp -ra /etc/modprobe.d /media/OLPCRoot/etc/modprobe.d
# mv /media/OLPCroot/fstab /media/OLPCroot/fstab.old
# cp -ar /etc/fstab /media/OLPCroot/etc/fstab
# cp /etc/X11/xorg.conf /media/OLPCroot/etc/X11/xorg.olpc
# wget http://dev.laptop.org/~cscott/xorg.conf -O /media/OLPCroot/etc/X11/xorg.conf
# mv /media/OLPCroot/boot/olpc.fth /media/OLPCroot/boot/olpc.fth.nand
Then download a bootloader configuration for the type of install you’re doing:
Now reboot your XO. Hold down the check or tick button as it chimes and release it when instructed. Ubuntu will then boot and you’ll be looking at a GDM login prompt.