It’s not particularly easy to create a bootable USB flash drive so you can try running Linux on a PowerPC Mac. It took me a couple weeks of research, asking questions of our Linux on PowerPC Macs group on Facebook, and experimenting before I could finally boot into Linux 14.04 from a thumb drive. I learned some lessons. I’m going to make it a lot easier for you to install Linux on your old PPC Macs.
- Linux For Ppc Mac G5 Download
- Linux On Powerpc Mac
- Linux For G5 Mac Ppc
- Linux For Ppc Mac G5 Shortcut
- Linux For Powerpc G5
I’ve experimented with Linux and BSD Macs going back to the Mac IIci era, and I’ve never had much luck. Back in the olden days, Linux was a text-based operating system similar to MS-DOS. Everything was handled through the command line in the late 1990s. This time around I wanted to create a “live” flash drive so I could make sure it actually worked before committing to installing Linux on a hard drive.
If only I’d had a blank CD-R or DVD-R, it would have been a lot easier!
My original testbed was a Late 2005 2.3 GHz Power Mac G5 Dual with 3 GB of RAM and two hard drives, one with OS X 10.4 Tiger, the other with OS X 10.5 Leopard. It’s my most powerful PowerPC Mac, so I figured it would be a good way to take Linux for a spin.
Pick a Distro
Step one is to choose your distribution. After talking with others in our small-but-growing Linux PPC Facebook group, I settled on Lubuntu as a good starting point. Lubuntu is known for having a lighter-weight user interface, LXDE – similar to what Simon Royal used when he put LXLE on an old PC.
Ubuntu Linux has a simple numbering scheme for its versions. Version 14.04 was released in the 4th month of 2014, and 16.04 in the 4th month of 2016. That’s also the latest version available for PowerPC at present. You can download 14.04 and 16.04 from this page, earlier versions from this page, where you can also get version 12.04 for PowerPC, among many other architectures.
PowerPC distros prior to version 12.04 have separate 32-bit and 64-bit installers. The only PowerPC Macs that can use a 64-bit operating system are G5 iMacs and Power Macs. Anything before G5 can only use a 32-bit Linux. Starting with version 12.04 the 32-bit and 64-bit versions are part of the same package for Macs.
A PowerPC edition of Ubuntu MATE 14.04 is ready for testing thanks to Adam Smith from the Ubuntu MATE community! Adam has uploaded the.iso image to OneDrive and it is available from the link below.
I suggest you start by downloading Mac (PowerPC) and IBM-PPC (POWER5) desktop CD, which is designed to be burnt to a CD-R and give you a fully bootable way to test out Linux before you commit to it. That’s fine if you have blank CD-R media or a CD-RW disc, but I haven’t burnt a CD in years and have no blanks at present.
That was also the biggest reason I had problems. Using a USB Flash Drive was an exercise in frustration.
The USB Flash Drive Problem
OpenBSD/macppc runs on the PowerPC-based Macintosh systems from the 'New World' family, i.e. All Apple computers from the iMac to the PowerPC G5 DC. It does not run on any unsupported models. A mailing list dedicated to the OpenBSD/macppc port is available at ppc@openbsd.org.To join the OpenBSD/macppc mailing list, send a message body of 'subscribe ppc' to majordomo@openbsd.org. One of my first computers was a Power Mac, and I remember thinking the little “PowerPC” badge was pretty cool, even before I really knew what it meant. For quite a while I was an Apple fan, my next computer was an iMac G3 SE, and then a Power Mac G5 970MP machine, which I was quite proud of. Can Linux be installed on a PowerMac G5? Find out in today's video! Support this channel simply by shopping on Am. BTW, I also tried PowerPC 10.04 LTS and everything worked-everything. However, upgrading from PowerPC 10.04 to 12.10 was a train wreck. As I said, I've got both working-OS X 10.5.8 and PowerPC 12.04.01-although I'm still trying to track down the resolution of the wireless / Broadcom / B43 networking issue.
I do, however, have a few 8 GB and larger USB flash drives, and there are plenty of instructions online for properly formatting the flash drive and getting the bootable ISO installed. And none of them worked on my Power Mac G5. I would spend hours trying this, that, and the other thing. Formatting the flash drive was the easy part; installing the ISO and creating a bootable system stumped me.
The only method I found that worked for creating a bootable USB flash drive with Lubuntu on it required me to use Etcher, a freeware app that takes an ISO and creates a bootable flash drive from it. However, Etcher doesn’t run on PowerPC Macs. Nor does it run on my Intel Macs with OS X 10.6 Snow Leopard. I had to use one of my Macs with OS X 10.11 El Capitan installed, and that did the job.
In other words, you need a fairly modern Mac to create the bootable flash drive you need to launch Linux on PowerPC Macs.
I formatted the flash drive as FAT, exFAT, HFS+, Apple Partition Map, GUID Partition Map, and Master Boot Record. Etcher dutifully imaged the ISO file to the flash drive. But it wouldn’t boot.
The key is to format the flash drive using Master Boot Record and FAT. Those are not the default settings, so you’ll have to find them in your version of Disk Utility.
But It Won’t Boot
I’ve been a spoiled Mac user since 1986, and if I’d had a CD-R or DVD-R, this would have been easy. Start your Mac, hold down the C key, and it will boot from whatever is in your optical drive. That goes back to the first Macs with built-in CD-ROM drives. It’s easy, but there’s nothing nearly as easy for booting from a USB flash drive.
Linux For Ppc Mac G5 Download
On most Macs, if you hold down the Option key (marked Opt on some Mac keyboards, Alt on Windows keyboard) at startup, your Mac will present you with all the bootable options on your computer. On my Power Mac G5, the options are OS X 10.4.11 Tiger, 10.4.11 Tiger Server, and 10.5.8 Leopard.
If I’d had an external USB or FireWire drive, it would have shown up as well. But no matter what I did, the USB thumb drive never showed up as an option. I couldn’t boot from it in the traditional way.
Open Firmware
Whatever the reason, my last generation Power Mac G5 will only boot from the flash drive if I startup in Open Firmware. Hold down Cmd, Opt, O, and F at startup and hold them down until text appears on the upper left corner of your display. Your modern Mac be in Open Firmware (OF, as in two of the keys you hold down to boot into it). OF is a low-level operating system with a command line interface, like the Apple II+ at work that was the first computer I used, the Commodore VIC-20 and 64 that I used at home because they fit my low-end budget, and that Zenith Z-151 PC running MS-DOS 3.3 circa 1987.
Launch OF. That can take a while, as OF tests all your system memory every time you launch it. Just hold those 4 keys down until OF tells you to let go of them.
As long as you only have one bootable USB device, such as the flash drive with Lubuntu or an external CD-ROM or DVD drive, you can type in the following to boot from that device on a dual-core Power Mac G5:
boot ud:,:tbxi
and then hit Return or Enter. That worked perfectly with my Late 2005 Power Mac G5, but it would not work with my older 2.0 GHz dual-processor Power Mac G5s no matter what I did, and I didn’t bother to try it on an iMac G5.
If you have more than one bootable device, type devalias at the prompt, hit Return, and you will see a lengthy list of devices like this.
That was a bit of a rabbit trail for me. In the end I found the command that let me boot from the front USB port on my older Power Mac G5 – these are all equivalent:
boot usb2/disk@1:2,yaboot
boot usb2/disk:2,yaboot
boot usb2/@1:2,yaboot
But that only worked on one of my Power Mac G5s. The other three I tried simply would not boot from the flash drive. This was an exercise in frustration!
Making a Bootable Linux Hard Drive
Once I saw that Lubuntu ran decently on my ancient Power Mac G5 Dual, I knew that I wanted to install it on a hard drive so it would boot more quickly and allow me to add more software. That would have been easy on the Dual, but I didn’t want to reformat either of its hard drives, so I went through my small collection of older Power Mac G5 models in search of one that would boot from the flash drive so I could easily reformat its hard drive and install Lubuntu.
When I finally got one up and running – the third one I tried (the first one wouldn’t even boot, the second wouldn’t boot from the flash drive) – I started the installer. I really appreciate the concise, thorough, helpful explanations of what each choice means. It’s the kind of polish we don’t see with the Mac OS; Apple knows that most of us just want it to run. Ubuntu knows that we are interested in making informed decisions and that it needs to educate us through the process. Nice!
Or so it seemed. Then it wanted to upgrade from 14.04 to 16.04, but every time I tried to do that, it nattered at me about removing certain files using sudo and compressing other files – neither of which I am able to do. How can I remove 35.6 M of files when I don’t even know what’s necessary?
Okay, I should have just started with the Lubuntu 16.04 ISO, but I didn’t know it at the time. If you want to try Linux on a PowerPC Mac, choose the 16.04 Long Term Release (LTR) version and be done with big upgrades until the next LTR version, probably in April 2018.
If you’re just experimenting, you might want to use Lubuntu 17.04. And if you’re patient, you might want to wait until April when Lubuntu 18.04 LTR is due.
Lesson Learned: Burn a Disc Instead!
I wanted you to understand the frustration of trying to do things with a USB flash drive before telling you to bite the bullet and burn a DVD-R disk with the distro of your choosing. You can burn a CD-R, but that usually means trimming the Linux distro to fit on a disc. With DVD-R you’ve got lots of room for distros approaching 1 GB in size.
And you don’t have to use Open Firmware at all.
Booting from the DVD-R was a breeze after all the frustration I had to deal with creating a bootable flash drive and then actually booting from it. I wiped the 80 GB drive in a 2.0 GHz dual-processor Power Mac G5 with 3 GB RAM and installed Lubuntu. I ended up with a very nice, friendly, functional Linux machine that lets me run the latest version of Firefox on a 2005 Power Mac that was left behind with Mac OS X 10.6 Snow Leopard shipped in August 2009.
Is It Practical?
There are two questions to address here: Is it practical to continue using PowerPC Macs in 2018? And is it practical to run Linux on PowerPC Macs instead of OS X 10.4 Tiger or 10.5 Leopard?
Hardware
For those who have a Power Mac G5 Quad, the last and most powerful PowerPC Mac ever, the answer is a resounding yes. With four cores running at 2.5 GHz, you’ve got comparable power to the earliest 4-core Mac Pro. This is lustworthy hardware, although not especially practical in terms of the current it draws.
Linux On Powerpc Mac
Dual-processor and dual-core Power Mac G5s are competent performers, and the faster dual-processor Power Mac G4 machines are solid workhorses as well with decent amounts of power. I wouldn’t want to use a Power Mac below 800 MHz or so with Tiger or Leopard, but dual 733 MHz or faster CPUs work well enough.
There may be tasks where processing power isn’t an issue, perhaps a home file server or web server, and there even a 233 MHz iMac G3 may provide all the power you need. Using MAMP, Tiger and Leopard can be configured as Unix servers.
Operating System
If you’re wed to Mac software, Linux probably isn’t going to be on our daily driver Mac. There is a whole learning curve going to a different operating system and using primarily free open source software that may have the power of commercial apps – but you need to figure out how to access it.
But if you want to set up a machine with an up-to-date operating system and browser that can be used more like a Chromebook than a Mac, Linux could be for you. Firefox is a staple in the Linux world, and the latest version is fast with a reduced memory footprint. I can run it on my Power Mac G5 Dual nicely. Not as nicely as a 3 GHz Core i3 iMac, but nicely nonetheless.
Honestly, I would go the triple-boot route. Today I put separate Tiger and Leopard partitions on any G4 or G5 Mac I set up, usually with Leopard getting 2-3 times as much space as Tiger, depending on the size of the hard drive. To learn to live in the Linux world, I would go with two hard drives when possible – one just for Linux, which likes to partition its hard drive just so – and one with partitions for Tiger and Leopard.
Facebook: Ouch
Facebook is a remarkably bloated environment, and you’ve probably been spoiled with modern hardware or the mobile version. Even on my dual-core 2.3 GHz G5, Facebook is frustratingly slow. You can really speed it up by going to m.facebook.com instead of www.facebook.com. That puts you in the mobile version, which has its own drawbacks but runs a lot faster than the desktop version.
Conclusion
Don’t try to do it on your own. We’ve created a helpful Facebook group of people who have managed to get Linux running on PowerPC hardware and those who are learning how. Linux on PowerPC Macs was invaluable in helping me get this far.
keywords: #ppclinux #linuxonmac
short link: https://goo.gl/anff6h
A long time ago, in a decade far, far away, I dabbled with Linux on PowerPC hardware, specifically the PowerPC Macintoshes. After lots of trial and error, I was able to get Yellow Dog Linux and Mandrake running on a Power Mac 8600 and then on a beige Power Mac G3 at my old job. I also managed to get Debian installed on a Motorola StarMax 4000 MT which I still have in storage (if you’re not familiar with this model, it was a Power Macintosh clone from back in the mid-1990s). I even got Ubuntu running on my iMac G5 and boy did that distro run circles around OS X Leopard back in the day! That was the last Macintosh I would ever own before committing to Linux on the PC.
However, a few months ago, I acquired two Power Macintoshes from someone I know. One is a Power Macintosh G4 “Sawtooth” which, unfortunately, won’t turn on (probably a bad power supply or a bad PRAM battery….or both). The other is a Power Macintosh G5. This particular G5 model is designated “Powermac7,3” which means it’s a dual 1.8 GHz G5 model with a NVIDIA GeForce FX 5200 Ultra AGP Pro card and PCI slots. It came to me with Leopard installed on the hard drive. Of course, a Linux geek like myself wouldn’t stand for this. Thus, I replaced the hard drive and attempted to revisit my Linux/ppc days of yore.
Upon searching for a suitable Linux distribution, I quickly learned that support for the PowerPC was not as easy to come by in 2018. Most distributions stopped supporting PowerPC (ppc) and even PowerPC64 (ppc64) with the exception of little-endian PowerPC chips from IBM (ppc64el). While I did manage to find a Fedora ISO, it wouldn’t boot no matter what I tried. I eventually decided to go with tried-and-true Debian and, after a lot of searching, I came across the Debian Ports page which keeps unofficial ports of discontinued platforms. I downloaded the ISO for “sid” which is based on upcoming “buster” (v10) and burned it to a CD.
Hello, yaboot! It’s been a while…
Booting up from that CD on the Power Mac G5 and seeing the Yaboot prompt (Yaboot is a Linux boot loader for “NewWorld” Power Macs) brought back all those memories from my early Linux/ppc days! I went through the netinstall and, after a few failed attempts to boot and then creating an ext2 /boot partition after realizing that Yaboot doesn’t support ext4, I was finally able to boot the installed system…..until the screen went blank.
Setting some kernel parameters to prevent this from happening allowed me to get the login prompt after it booted up, and I quickly began installing packages. I got tmux (a terminal multiplexer, shown above) installed as well as many other packages like Window Maker, Fluxbox, and even the MATE desktop environment which was my ultimate goal. After configuring my .xinitrc to load Xorg with a window manager / desktop environment, I ran startx and….it failed. Doing some investigation online led me to news that the NVIDIA card and nouveau on PowerPC were to blame, and that getting it to work might require recompiling the kernel to use 4K page addressing instead of the default 64K. My heart sunk.
Nevertheless, I wasn’t going to quit so easily. After trying various changes to the kernel parameters and configuring device settings in Xorg.conf, my brain finally had an idea that was simple (and crazy) enough to actually work. See, I had my monitor connected to the G5 using a VGA-to-DVI adapter. After all of my failed attempts to get Xorg working, I decided to change out the VGA cable and adapter and use a dedicated DVI cable. I also changed the kernel parameters to use “nvidiafb”. After doing this, I rebooted the G5 and pessimistically ran “startx”. A gasp of joy came out of my mouth as I saw Window Maker start in all of its NeXTSTEP-ish glory! You can imagine the happy dance I did right after!
Achieved the “NeXT” step! 🙂
I then configured .xinitrc to load MATE and, after managing to disable window compositing which would cause it to lock up the system, I was inside the MATE desktop and life was….OK.
Linux For G5 Mac Ppc
I say OK because I have come across some hiccups (as if you haven’t already noticed with all that I’ve mentioned so far). Pianobar and VLC crash with an “Illegal Instruction” message. Firefox ESR won’t last a minute before crashing, and the latest kernel upgrade from 4.16.5 to 4.17.6 caused the fans to run at full blast (something that I remember from my old iMac G5). Thankfully, after some more searching and comparing the modules loaded with the old kernel and the new kernel, I narrowed it down to the “windfarm” modules not loading on boot with the newer 4.17.6 kernel image. Running “modprobe windfarm_core” from the terminal tamed the fans once again. Not as straightforward as it was back in my early Linux/ppc days, but the Debian Ports maintainers for PowerPC do stress that we are running “sid”, aka “unstable”, and it is going to beunstable, so this behavior should be expected. I’ve tried to send a bug report to inform them of this, but ReportBug freezes the desktop when it tried to report the bug (adding insult to injury), so, for now, I’ve added the windfarm modules myself to /etc/modules as a workaround until they fix it.
Even with all of these quirks, it was nice to get Linux running on PowerPC hardware again. And, if you do come across some old Power Macintosh hardware (preferably a G4 or G5) and some time to spare, you can give it a try for yourself. You’ll find all the information you need on the Debian Ports page and the latest ISO can be found here (select ppc64 for 64-bit Debian to run on G5 Macs or select powerpc for 32-bit Debian to run on any Power Mac including the G5).
Linux For Ppc Mac G5 Shortcut
Once I have all (or at least most) of the kinks worked out, I hope to use this for some music production so I don’t have to rely so much on my Fedora laptop. I’ve got Qtractor, QjackCtl, and some DSSI soft synths installed and my Yamaha S08 synth is supported via USB for MIDI input, so I’m ready to rock and roll!
Linux For Powerpc G5
Now, if only I could reduce those xruns some more…