Friday, January 09, 2009

loading Ubuntu Linux on Clamshell iBook - part 1

This will a long post.

The Clamshell iBook was hamstrung by non-availability of current browsers for MacOS 9. Loading MacOS X was not an option, with only 64 MB of RAM and no DVD drive. On an impulse, looked up Ubuntu, and found it had a PowerPC install supporting older machines with http://cdimage.ubuntu.com/ports/releases/hardy/release/ubuntu-8.04.1-alternate-powerpc.iso

First started the install using just the install-powerpc image, but this didn't work: it went on for 45 minutes before asking me for user info, then went on for 2 more hours or so before saying that the install failed. Probably due to the limited RAM, tho' the installer was in "Low memory mode".

Then tried the cli-expert-powerpc image. Chose the same partitioning scheme as before,
Guided - use full disk
It created a 180 MB swap
(#4 180 MB swap)

One problem with this install was that it did not ask for a username - it created username oem and added it to sudoers list. The message was that I could run oem-config-prepare and then oem-config to change the oem user to whatever name I wanted. But the latter did not work, probably because of the minimal install. So, manually added user using adduser and added to sudo list using the method given here
sudo usermod -a -G admin username
removing the oem user with the technique given here, userdel.

Sound started working by adding snd-powermac to the end of modules with
sudo nano /etc/modules
as given in the PowerPC FAQ.

glxinfo
reports no accelerated video as of now, though tried some stunts with setting the driver to ati and so on.

The Mac keyboard has some mapping problems. Where is the Del key for Ctrl-Alt-Del ?! Also, only a single button on the track-pad, so middle-clicking is out. Possible solution is at http://linuxaleph.blogspot.com/2008/11/mapping-middle-click-to-keyboard-key.html

Actually none of the bugs given at the Low-Memory Install page afffected my install, particularly the bug #202959 did not happen for me on the PowerPC. It does show an error while booting,
PCI: Cannot allocate resource region 0 of device 0001:10:19.0
but the boot process continues.

Adding repositories by editing sources.list sudo nano /etc/apt/sources.list was not so easy. The PowerPC builds were shifted to the ports servers, so finally found at http://ports.ubuntu.com/dists/hardy/
My sources.list file :
deb http://ports.ubuntu.com/ hardy-security main restricted
deb-src http://ports.ubuntu.com/ hardy-security main restricted
deb http://ports.ubuntu.com/ hardy-security universe
deb-src http://ports.ubuntu.com/ hardy-security universe
deb http://ports.ubuntu.com/ hardy-security multiverse
deb-src http://ports.ubuntu.com/ hardy-security multiverse
deb http://ports.ubuntu.com/ hardy main restricted
deb-src http://ports.ubuntu.com/ hardy main restricted
deb http://ports.ubuntu.com/ hardy universe
deb-src http://ports.ubuntu.com/ hardy universe
deb http://ports.ubuntu.com/ hardy multiverse
deb-src http://ports.ubuntu.com/ hardy multiverse


Installed IceWM using instructions from the Low-Memory Install page with
sudo aptitude install icewm iceconf icepref iceme icewm-themes

Tried installing xdm for auto-login, since gdm and kdm are resource-hungry. But then xdm doesn't have that feature! So, using the technique given here and here, putting startx at the end of .bashrc as
if [ $(tty) == "/dev/tty1" ]; then
startx
/sbin/halt
fi
Firefox and dillo work OK. Dillo is fast but doesn't render CSS. Firefox needs more RAM, swaps a lot. Ordered more RAM from ebay.in - PC-133 SDRAM "suitable for most P-III laptops". Actually need PC-66, I hope it works. With more RAM, might try installing xubuntu-desktop and other goodies.

No comments:

Post a Comment