Ubuntu 8.10 (Intrepid) for XO
teapot:
XO adaptation of Ubuntu Intrepid is now at http://mars.illtel.denver.co.us/~abelits/torrents/OLPCFiles-intrepid-20081130.tar.bz2.torrent .
Developers may want to look at the files used in this build at http://mars.illtel.denver.co.us/~abelits/software/olpc/intrepid-install-from-scratch-20081130.tar.bz2 (update-files/installscript.sh is supposed to be run as root from the top directory), however the build procedure is fragile (does not recover from errors), and it is supposed to produce exactly the same set of files as in the archive, so it's really only good for audits and customization.
As I have mentioned before, this release is intended to be reliable and consistent.
Kernel is from OLPC release 8.2.0. USB boot fix in ramdisk is the only change that was applied to OLPC-distributed files.Ubuntu packages are properly identified as manually/automatically installed for easier customization, patched files are diverted, so package manager won't replace them on upgrades.Network Manager 0.7 is in Intrepid -- there is no need for custom repositories.clive package in Intrepid is also up to the latest version, so tubewatcher script is included without clive replacement.Firefox default configuration is adapted to screen resolution (larger fonts but no scaling for images), and libraries that come with xulrunner are replaced with ones that come with Firefox 3.0.4 release (for some reason libraries from xulrunner package occasionally replace images with noise).syslog is removed -- logging to SD or USB takes large amount of resources.Power management is by default enabled, "aggressive" power management mode that "invisibly" suspends on inactivity is by default disabled but can be enabled with sudo touch /etc/xo-suspend/aggressive and reboot, disabled with sudo rm /etc/xo-suspend/aggressive and rebootGTK theme is adapted to the changes in theme engines that come with Ubuntu -- it looks slightly better now, though differences are minimal.Splash screen is shown on boot and shutdown.
Installation procedure is pretty much the same as Hardy minus kernel/modules/firmware copying. To install it on the new SD card from USB stick with OLPCFiles-intrepid-20081130.tar.bz2 file on it:
--- Update: before installing Ubuntu, make sure that you have: ---
1. Developer key: http://wiki.laptop.org/go/Activation_and_Developer_Keys
2. OS upgraded at least to the version 8.2.0: http://wiki.laptop.org/go/Release_notes/8.2.0
3. Firmware upgraded at least to the version q2e18 (should come with OS 8.2.0): http://wiki.laptop.org/go/OLPC_Firmware_q2e18
Older versions are known to have major problems and incompatibilities (ex: erasing your SD card, refusing to boot, disabling USB2...)
---------------------------------- end of update ----------------------------------
Start Terminal in Sugar.
Connect the USB drive. Don't insert SD card yet.
Run mount | grep /dev/sd , repeat until it returns a line like this:
/dev/sda1 on /media/USB ...
(assuming the drive is named USB)
Become root and stop haldaemon:
sudo -s
/etc/init.d/haldaemon stop
Insert SD card into the slot (the card will be erased, so back up all data on it that you want to preserve).
Erase MBR and partition table:
dd if=/dev/zero of=/dev/mmcblk0 bs=4096 count=1
Make the partition table:
echo -e ',,L,*\n\n\n' | sfdisk /dev/mmcblk0
Create the root filesystem:
mke2fs -jLOLPCRoot /dev/mmcblk0p1
Mount the filesystem and unpack the tarball onto it:
mount /dev/mmcblk0p1 /mnt
cd /mnt
tar xvjf /media/USB/OLPCFiles-intrepid-20081130.tar.bz2
Copy the developer key:
cp /security/* security/
If you want to enable aggressive power saving mode, at this point you can run:
touch /mnt/etc/xo-suspend/aggressive
Reboot:
reboot
After booting into a new system, log in as user olpc with password olpcolpc, and perform final updates:
Click on the Network Manager icon at the bottom panel, select the wireless network you want to use.
If wireless network uses encryption, you will be prompted for the key/password.
If it's a public access point that requires browser login (like T-Mobile hotspot), start Firefox and log in.
Start Terminal and complete the configuration:
passwd
(enter olpcolpc as the current password, then twice the password you intend to use)
sudo aptitude update
sudo aptitude safe-upgrade
sudo aptitude reinstall ssl-cert
sudo aptitude clean
sudo /etc/init.d/cups start
mkdir .mplayer
echo -e 'vo=sdl\nframedrop=1\nlavdopts=skiploopfilter=all:fast=1' > .mplayer/config
exit
At that point you may want to install Ubuntu packages (gimp, inkscape, msttcorefonts , flashplugin-nonfree), non-Ubuntu-maintained packages (OpenOffice.org 3.0), Firefox extensions (flashblock and adblock are very helpful on XO), etc.
After installing flashplugin-nonfree, run
sudo ln -s /etc/alternatives/firefox-flashplugin /usr/lib/firefox-addons/plugins/flashplugin-alternative.so
and install flashblock extension (the usual way, from the browser itself).
Update: mavrothal is maintaining an index of "solution posts at http://www.olpcnews.com/forum/index.php?topic=4057.msg27470;topicseen#msg27470 -- please check it if you encountered problems, it may be something already answered.
mavrothal:
OK!...
THANK YOU!
Quote
Create the root filesystem:
mke2fs -jLOLPCRoot /dev/mmcblk0p1
Shouldn't this be
mke2fs -jL OLPCRoot /dev/mmcblk0p1 ?
Quote
Make the partition table:
echo -e ',,L,*\n\n\n' | sfdisk /dev/mmcblk0
This would make whole the card one partition correct?
teapot:
Quote from: mavrothal on November 30, 2008, 09:50:55 AM
OK!...
THANK YOU!
Quote
Create the root filesystem:
mke2fs -jLOLPCRoot /dev/mmcblk0p1
Shouldn't this be
mke2fs -jL OLPCRoot /dev/mmcblk0p1 ?
Space between option and argument is optional.
Quote
Quote
Make the partition table:
echo -e ',,L,*\n\n\n' | sfdisk /dev/mmcblk0
This would make whole the card one partition correct?
Yes.
linyanam:
Thanks Teapot.
Is swap not needed if you are using GIMP, Openoffice etc. If I want to create swap, can I do that from within Sugar. I know how to create partitions with "Partition editor", but my understanding is, I can't do from Ubuntu in XO as SD card is mounted and is already in use.
Once again Thanks,
Linyanam.
StewieGriffin:
Thanks a bunch! Been using it an hour already, no problems at all!
Navigation
[0] Message Index
[#] Next page