Linux For Mac G4

Posted onby admin

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 –. From this point on, you should read 'Mac Mini' as 'G4 Mac Mini'. There is no further discussion of the Intel based Mac Minis on this page. Apple's first generation Mac Mini is something which a lot of Linux users have been waiting for: An inexpensive, readily available PowerPC system in a small, quiet and attractive chassis. Watch as I try out Ubuntu Linux on an iBook G4. I test various features, DVD, wireless, bluetooth, networking, printing, etc.

Hi,


For

When you downloaded Ubuntu for PowerPC, did you use Disk Utility to copy the image to the USB thumbdrive? You should not be selecting any compression schemes at all. Just use the 'Restore' to restore the image to the USB thumbdrive.

Mac


Assuming, this is the only USB device you are using, go into open firmware and type the following:


devalias or dev /ls = What you will be looking for is anything that says 'ud' in it. Lastly, once you find the 'ud' type this:


boot ud::tbxi - this should boot ubuntu, eliminating the need to type 'boot [email protected]:1;:/install/yaboot'. Remember, you need to look for anything that says: ud,ud1, etc.. ud=ud0 which is the 1st USB device.

Laptop


Let me know if this works for you.


Romko


P.S.: I have been booting USB on my PB G4 and PowerPC macs for almost 5 years now.. Its not hard at all.

Aug 26, 2012 9:30 PM

Do you want to breathe life back into your old PowerBook or PowerPC machine? Want some modern software on it? In this tutorial I’ll show how you can put Ubuntu Linux on a PowerBook G4 and resurrect one of these durable old laptops from the dead.

Running an old version of OSX leopard in 2013 just doesn’t make sense. Even with everything updated simple things like checking Gmail or Facebook are nearly impossible. Every software package is ancient because Using Linux will get you into a more modern environment.

What version of Linux am I using and why?

For my machine I chose Ubuntu 10.04. As I have opined in the past I feel 10.04 is a very stable version of Ubuntu and not too bloated or buggy. I also despise the Unity interface no matter how much they improve it. I couldn’t find any compelling advantages to the newer distributions but if you choose to install one of them the instructions should be the same.

Other distributions of Linux/Unix are available for the PPC platform as well. Here are the ones I’ve tried:

Debian PPC - This distro works very well but some software doesn’t update, the system clock has problems and there is a screen flicker / blank out problem that drove me nuts. You could switch to a new terminal to fix it, but it’s annoying.

Linux

Yellow Dog Linux - A very respectable Linux distribution but it isn’t being updated much anymore. I found I could get a lot of newer software on it but it was a lot of configuration and compiling.

Linux mint for mac g4

FreeBSD for PPC - This is a well reviewed option for PPC machines, but I just couldn’t get it working properly and didn’t have the patience for it. If you have a lot of time it will probably get you a good setup, but I got frustrated cleaning up errors.

Gentoo for PPC - Awesome distro but it takes forever and a week to set up. I got mine setup and dialed in after about 30 hours of work, used it for quite a while and the hard drive went out. I haven’t had the time to redo this install and didn’t back it up. Also had the screen flicker problem though not as frequent as Debian

Depending on how much time you invest you can get any of these distributions working well, but the fastest and easiest setup for mine is using Ubuntu 10.04. A few hours of work and it produces a nice stable machine you don’t have to mess with. If that’s your goal keep reading.

Install

Download The Ubuntu 10.04 PPC iso and burn it to a CD. USB installs are pretty tricky with the powerbook.

Hold down the “C” button while booting to boot from the CD.

At the prompt, press enter to boot.(Be patient the startup time is pretty long)

1. Start Installer

Click on the “Install Ubuntu 10.04 LTS” link on the desktop.

2. Select Language

You should see a screen that looks like this:

Select English and click Forward.

3. Time Zone

Select your timezone in the next window and click Forward.

4. Keyboard Layout

In the next window you’ll see a screen to test your keyboard layout. USA works great, so select that and click Forward

5. Partitioning

In the next screen you’ll see something like this. My laptop did not have an OS, but yours might.

The best option here is to Erase and use the entire disk. Click Forward.

6. Set your Username Info

In this screen you will set your username. Type in your full name and the username you will use to log in.

Set the name of the computer, and select “Require my password to log in”. Do not allow it to log in automatically, this is a big security risk.

You may also choose to encrypt your home folder. This is a good idea, however it will slow your system down quite a bit. I opted not to do this, but if you do the procedure is nearly identical.

7. Ready to Install

You will see this screen, which allows you to verify the info you submitted.

Click advanced, and make sure “Install boot loader” is checked.

Click install.

8. Installation Complete

Once the installation is completed you’ll see the following screen:

Reboot the machine. It will eject the CD and ask you to click enter.

That’s it! If you don’t want to do any crazy partitioning or anything like that this is the easiest method to install it. If you want to dual boot operating systems that’s possible too and I might write a tutorial about that in the future. There is also some configuration to be done, and I’ll cover that in future tutorials as well.

9. Fresh Install Updates

The first thing you should do after installing is update everything. Run the following commands from the terminal (Applications - Accessories - Terminal)

There aren’t many updates but it’s nice to get it started.

10. Speed up the system

There isn’t a lot you can do to make this any faster, after all this is old hardware and a dead architecture. But a couple things have helped with my machine and might help yours as well.

Go to system - preferences - startup applications

Here you can change which applications come up on startup. Whatever ones you don’t need, remove them.

There is also a text based application you can use with a few more options:

Linux For Mac G4 Usb

This allows even more options for turning off startup services.

Common ones I disable are

  • bluetooth
  • brltty
  • cups
  • ondemand
  • pcmciautils
  • ppd-dns

You can play around with these, and disable whatever you don’t need. Since you’re dealing with limited hardware it’s always a good idea to trim the fat any way you can.

Set swappiness

The Linux kernel has a setting called swappiness. This is a number from 0-100 that sets how much of your memory is left before going to swap. It is set at a default of 60, which means when 40% of your ram is in use it will start swapping. This can kill performance on your G4 pretty quick, as well as increase disk thrashing.

Linux For Mac G4 User

You can check your current setting here:

Linux For Mac G4 Mac

This will show what your current swappiness is. I generally like to set mine at 10. When I’m getting that close to full I need the swap, but I don’t want it swapping all the time.

To set it, open your sysctl.conf:

and at the bottom of the file, add

Your results may vary, but generally 10-15 does pretty well. A setting of zero will never hit the swap and a setting of 100 always will. Where you find in between that works best depends on what you’re doing with it.

Summary

I hope this has been a good guide to setting up Ubuntu on a PPC machine. It’s super easy, with comparison to other operating systems. It’s a great way to recycle a computer for your kids, or even yourself rather than throwing it away. Besides it’s efficient, how else can you get a desktop that only uses 116mb of memory?

I am typing out this article on this very machine, I enjoy writing on it as it leaves me free of distractions and I can focus on what I’m doing. It’s also neat to carry around and hack up stuff when I need to.

If you have any questions, please leave them in the comments! I have done quite a few of these installs and there are some snags that come up occassionally. If you’re using an old PPC linux system for something cool, let me know about that too!

Mac G4 Laptop


Published: Feb 10, 2013 by Jeremy Morgan. Contact me before republishing this content.