PowerPC and Debian GNU/Linux and OzOs, OH My

WARNING: I use some very powerful (ie potentially destructive) tools as root. Please be careful! You have been warned!

While I'm at it, you're playing in the Big Leagues now, sort out your own root privileges.

Please note: If you are new to Linux or are not comfortable using the command line, tough, get over it, this is linux after all, and I use the command line. However the management at OzOs suggest some pictures of bunnies, a good (legal) calmative or perhaps a long bath with a few drops of lavender oil, if need be before you proceed.

This How To assumes a few things;

1) That you already know how to get/write/install from an iso,
B. That you already have a PowerPC,
iii That you already know how to install Debian GNU/Linux,
4) That you already know what you want installed with debian,
E. That you already know what type of debian you want installed, and;
vi That you want the OzOs version of e17 also installed.

The above list comes with a whole list of additional variables, ergo, this "How To" is really, How I (Teague MacRoot) installed debian & e17 on my eMac. To wit, the following also applies;

A) This will overwrite OSX with linux,
ii This will be a business card install of debian,
3. This will be done in expert mode,
D) This will be a minimum base install (no GUI),
v This will be a Sid installed,
6. That e17 is the only desktop to be added, and;
G) That you are OK with the command line.

One last caveat, if you are comfortable with list One, then you can modify list Two to suit, but your on your own. Also, this is a very good HowTo for installing debian to a powerpc, How to install debian on imac-emac ppc, very verbose set-up .

BEFORE GETTING STARTED

Before starting I'd suggest two things;

First download and try the GNUstep LiveCD. This does two things, it proves to you that linux runs on a PowerPC, as well as it will help sort out the xorg configuration. Besides, it's a LiveCD & it's debian on a mac. While you are running GNUstep copy the xorg.conf file to a usb stick. You will use it later. One needs to set a password for "root", to do so switch from the gui to tty1 with Ctrl+Alt+F1, then drop to root with the "su" command. Use "passwd" to set a password for "root". To switch back to the gui do Ctrl+Alt+F2.

Second, save a copy of the OzOs repo stuff in a text file and save it to the same usb stick.

deb http://cafelinux.org/Downloads/oz-os hungrytiger main
deb http://cafelinux.org/Downloads/oz-os tinwoodman main

0 - GET STARTED

Here is a download link to use, debian-500-powerpc-businesscard.iso .

Write it to a cd & boot it in your Mac (while booting Mac hit the "c" key to boot the cd).

1 - INSTALLING DEBIAN

At the boot prompt type, expert;

boot: expert

Work you way through the install.

Choose a language
Select a keyboard layout
Detect and mount CD-ROM
Load installer components from cd
Detect network hardware
Configure the network
Choose a mirror of the Debian archive (it is in this section that you can choose what branch of debian to install, I select "unstable")
Detect disks
Partition disks (Choose guided use entire disk, it's just easier)
Configure time zone
Configure the clock
Set up users and passwords
Install the base system
Configure the package manager
Select and install software (Here is where you are going to un-select everything, I said un-select everything)
Install yaboot on a hard disk
Finish the installation

2 - CONFIGURING DEBIAN

So now you have rebooted and are sitting at a command login. Go on, login as root, it wont kill you. Now the fun begins. Type pwd;

debian-eMAC:~# pwd
/root
debian-eMAC:~#

Just so you know where you are.

Now update the source list and add some needed stuff. I recommend including gpm & mc ( gpm-General Purpose Mouse interface & mc-midnight commander ) they can come in handy (I also include screen, but I wont be for this HowTo:).

debian-eMAC:~/# cd /
debian-eMAC:/# apt-get update
debian-eMAC:/# apt-get install xorg alsa-base gpm mc pppoe pppoeconf menu menu-xdg iceweasel cvs

When it's done do the following, OH and plug in that usb stick with the files you copied earlier;

debian-eMAC:/# alsaconf
debian-eMAC:/# pppoeconf
debian-eMAC:/# mount dev/sda1 mnt
debian-eMAC:/# mv etc/X11/xorg.conf etc/X11/xorg.conf.org
debian-eMAC:/# cp mnt/xorg.conf etc/X11/xorg.conf
debian-eMAC:/# cat mnt/sources.list
deb http://cafelinux.org/Downloads/oz-os hungrytiger main
deb http://cafelinux.org/Downloads/oz-os tinwoodman main
debian-eMAC:/# echo "deb http://cafelinux.org/Downloads/oz-os hungrytiger main" >> etc/apt/sources.list
debian-eMAC:/# echo "deb http://cafelinux.org/Downloads/oz-os tinwoodman main" >> etc/apt/sources.list
debian-eMAC:/# wget -q http://cafelinux.org/Downloads/oz-os/key.asc -O- | apt-key add -
debian-eMAC:/# apt-get update

This is where gpm comes in handy, you can copy & pase with the mouse just as if you were in a gui. You could also use mc to do the above tasks.

3 - INSTALLING OZOS

First, check what is on offer from OzOs;

debian-eMAC:/# apt-cache search e17
oz-bgextras-ga1 - 6 e17 BG images - green
oz-bgextras-pa1 - 6 e17 BG images - purple
oz-bgextras-ra1 - 6 e17 BG images - red
oz-e17-tools - OzOS enlightenment desktop tools
e17-svn - Enlightenment (e17) from SVN.
e17-themes - Themes for Enlightenment (e17) from source or any other version that installs on /opt/e17/ path.
e17-themes-extra - Extra themes for Enlightenment (e17) from cvs or any other that installs on /opt/e17/ path.
debian-eMAC:/#

Note - "oz-desktop-extras" is also on offer but has more to do with xubuntu then debian. Included it if you want a gnome base and some gnome configuration tools.

Install everything with oz or e17 in it's name;

debian-eMAC:/# apt-get install e17-svn oz-bgextras-ga1 oz-bgextras-pa1 oz-bgextras-ra1 e17-themes e17-themes-extra oz-desktop-extras
debian-eMAC:/#

If all went to plan and you got no errors then the OzOs e17 is installed. If you get an error*, check to see what it says. You may have to apt-get something or skip that section of the install. Restart the e17 install process with;

debian-eMAC:/# easy_e17.sh -s -i -h

Once it's finished now set e17 to start;

debian-eMAC:/# touch root/.xsession
debian-eMAC:/# vi root/.xsession
i
exec /opt/e17/bin/enlightenment_start<esc>
:wq
debian-eMAC:/# startx

There you have it, debian with e17 running on a PowerPC. Mind you it is going to take some more tweaking. For one there is no Display Manager installed and very few apps (we did include IceWeasel). Some $PATH's may need to be set up as well as the users. Then there are those debian v. ubuntu idiosyncrasies, like su v. sudo to sort out. Menus are another area that looks different. I've resolved a lot of this stuff, but have no notes, so if something comes up post a question in the forums. There is some useful information in this The Optimum OzOs Experience on Debian GNU/linux that once you have installed e17 can help sort out all the OzOs Goodness.

Credit goes to Aubrey, whom I openly plagiarized some stuff from, again.

Teague MacRoot

Footnote

* - I did a complete install of debian on my eMac & installed e17 on 04 Dec 08. On that install I received an error that failed during the install of etk. The error message said that cvs was not installed. So I apt-get install cvs and restarted the easy_e17 script. It then finished the installation of e17.