Hacker News new | ask | show | jobs
by JSR_FDED 806 days ago
Just spent a fair amount of time figuring out how to make a Mac Mini G4 with Snow Leopard (10.5.8) usable as my home bastion for when I want to access my home systems remotely.

The biggest issues are that Safari and sshd are so old they're basically useless.

- I don't really need a browser on that machine, but for comfort I replaced Safari with the no longer updated but still usable TenFourFox browser. Log into your ppc system and type 'machine' at the prompt. Use the value it shows to choose which version to download from: https://sourceforge.net/projects/tenfourfox/files/fpr32.5/

- For sshd replacement I installed Dropbear as I couldn't get openssh to build. To get Dropbear to build I had to:

1. Comment out "LTC_CFLAGS += -Wno-nullability-completeness" in libtomcrypt/makefile_include.mk and libtommath/makefile_include.mk (as the C compiler didn't know that option).

2. In default_options_guard.h after the #ifndef related to DROPBEAR_SVR_PAM_AUTH, add "#define DROPBEAR_SVR_PASSWORD_AUTH 0" and "#define DROPBEAR_SVR_PAM_AUTH 1" (as OS X needs PAM to log in).

3. Build with: ./configure --enable-pam make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" sudo make install

4. Start the new Dropbear ssh server on port 2222 as follows: mkdir /etc/dropbear /usr/local/sbin/dropbear -F -E -R -p 2222

You can then ssh into the machine as before (ssh -p2222 user@host) and things like port forwarding work fine.

Nice feeling to have a G4 Mini still doing something useful!

1 comments

Those are great tips regarding getting a working version of TenFourFox and installing Dropbear, thank you for sharing!

Just to be clear, you’re running Leopard (10.5), not Snow Leopard (10.6). Snow Leopard requires an Intel CPU, although hacks exist to run it on PPC.