Monday, March 12, 2012

Installing Debian Linux on PPC Part I - Pre-Installation

I've been meaning to do this for awhile, so I've finally gotten around to giving you my thoroughly complete guide to installing Linux on your old iBook, Powerbook, Mini, or Power Mac. This will be an epic told in five parts: Pre-Installation, Installing the Base System, Installing the GUI, Configuring Stuff, and Bugs & Quirks. There are a few distributions out there that already do much of the work for you--MintPPC, Ubuntu, and Debian's default desktop install. But I thought I'd put up a guide for a more custom install, in this case using Openbox as the desktop environment, for low memory systems or if you just want to build your system from the ground up. But even if you're planning to go with Debian's default desktop or MintPPC, you should still find the info here useful and hopefully it'll save you from some serious hair pulling. So let's get to it!

For this install I will be dual-booting Debian and Mac OS 9 on an iBook G3 with 256 MB of RAM. If you want to dual boot OS X, the same basically applies, and also, though this guide will be laptop-centric, most of the steps here apply to desktops, too.

The first thing you want to do is backup your data because you will be erasing the hard drive in order to repartition it. After you've backed everything up, boot your computer with an OS 9 installation CD by inserting it and pressing the "c" key. Then, find the Utilities folder and run Drive Setup (Disk Utility if you're booting from an OS X disc). Next, select your hard drive from the list and click "Initialize...", then click "Custom Setup..."

Now, how many partitions do you want? At least two, but I'm choosing three, one for Debian, one for Mac OS 9, and one as a sharing partition (if you only intend to install Debian alone, you can just set up one partition). The reason for three? Though your Mac partitions are visible in Linux, your Linux partition is not in OS 9. So I like to have a shared partition that I can use to access my media files from both systems. Also, OS X's journaled filesystem will only mount as read-only in Linux, and mounting Linux partitions in the OS X Finder can be a pain, so again you may prefer having a shared partition easily writable between both systems (somewhat related, there's a tutorial on sharing the same home folder between Linux and OS X here).

Back to Drive Setup, I'm choosing three partitions, then choosing their sizes and filesystems. The first (top) partition on the table must be your Debian partition. Choose the size, then choose "Unallocated," or really it doesn't matter which filesystem since you're going to erase this partition later in the Debian installer. Then set the sizes of your OS 9 and shared partitions and choose HFS Plus as their filesystems. OS X users running Disc Utility will want to choose "Mac OS Extended (Journaled)" for their OS X partition and "Mac OS Extended" for any OS 9 or sharing partitions. Also, if you're triple booting OS 9 and OS X, put them on separate partitions. If they're on the same one, they'll need the native Mac startup disk chooser to know which to boot, and that'll conflict with the Linux bootloader.

Once I was done, I had three volumes, one unallocated, one for OS 9, and one for sharing data between systems. From there, I initialized the disk and saw the two HFS Plus partitions show up on my desktop. Now you can install OS 9 (or OS X if that's what you're doing). You must install the Mac OS first, before Debian, because Mac system installers don't play well with Linux systems already on disk. Reboot and check that everything works, and now you can proceed to the one step missing from all this--getting the Debian install disc!

So go over to Debian.org and find an ISO to download. You could choose stable (Squeeze), but for this I'm choosing testing (Wheezy) because I want the newer software and to participate in its development by reporting !bugs! (actually it's pretty darn stable). Your best choice here is the network install disc. It's about 200 MB and burns to a single disc, and it requires a network connection for installation. Go here, choose the powerpc architecture, then download the "debian-testing-powerpc-netinst.iso."

If you're installing Squeeze, navigate to the Squeeze page and also choose the powerpc ISO that says "netinst."

The only thing left is to burn the disc. People say to burn it at a slow speed since Linux install discs can be fickle, so when in Rome...

One more note, a longstanding bug in the Debian installer messes up Apple driver partitions and will temporarily make your OS 9 partition unbootable. There's a simple fix for this, however, that will be detailed in Part V - Bugs & Quirks.

I'll see you in our next episode, "Installing the Base System."

Part II - Installing the Base System
Part III - Installing the GUI
Part IV - Configuring Stuff
Part V - Bugs & Quirks

7 comments:

  1. I've been running Ubuntu on my G5, 1.8gz dual core. It was very easy to install and it's been great for my work machine. However, there's no Dropbox support on PPC. I'm planning to install Tiger on it this weekend. I know I can always go back to Ubuntu if I don't like it.

    ReplyDelete
    Replies
    1. Why don't you install Leopard?

      P.s. Im trying to install Debian in a G4 PowerMac sawtooth 450Mhz/896mb/Geforce2Mx

      Delete
  2. So far I haven't felt like shelling out the money for a copy of Leopard ($130 from Apple and higher than that on EBay lately). I did get Tiger installed and am able to use a VPN and remote desktop for my job. I have workarounds for syncing my iPhone. I just installed Apple Works on it and I am so impressed. The are few applications that load this fast.

    I just don't get Apple. They routinely make good hardware obsolete ( take all those Apple printers left behind by OS X, just because they wouldn't support the old style printer ports.). My boyfriend can run XP on his Emachine and still install current software on it. But my G5 should go to the dump I guess. If you look at the abandon ware sites, those programs will do 99% of the things people use computers for. The sole reason for all this continuous upgrading is to support streaming on the web. Things will get even more interesting when Win8 is being pushed. Lots of folks will rebell on that one.

    ReplyDelete
    Replies
    1. Leopard didn't cost me anything ;0

      Delete
    2. And for the love of god don't throw away your G5!... just wait a few more years... html5 will replace flash, and youll have video streaming just fine, tiger or ubuntu or whatever you want.

      Delete
  3. Dude... I would love to know how this works (or if it even could work)with Xpostfacto? I would like to dual boot tiger and debian wheezy on a g3 lombard...

    ReplyDelete
  4. First time poster here at your blog --- please keep it up! I'm enjoying the reads.

    ReplyDelete