Tuesday, January 21, 2014

Tor Browser Bundle for PowerPC

A little birdie left a comment saying there was an unofficial Tor Browser Bundle for Tiger and Leopard at sourceforge.net/projects/osxpowerpcpackages. Given that I wrote a long torturous post about how to use Tor without the bundle since Tor officially dropped PowerPC, I naturally wanted to check this out.

So I downloaded it and it turns out it's no joke. It really is the Tor Browser Bundle for PowerPC. From the ReadMe:
The packages in this directory are UNOFFICIAL builds of the Tor Browser Bundle for Mac OS X Tiger (10.4) and Leopard (10.5), PowerPC architecture. Optimized builds are available for the different PowerPC versions, namely, the G3, G4 (7450) and G5.

The bundle is based on the official Tor Browser Bundle with changes to make it work on older Mac OS X versions and the PowerPC architecture. Most notably, Qt is downgraded to the last Mac OS X 10.4 compatible version (4.7.4) and Firefox is patched with suitable parts from the TenFourFox changeset.

Note that the 2.3.25-15 bundle version is already outdated. More current version based on Tor Browser Bundle 3.5 is in the works.
As said, it's a bit outdated so it's more proof of concept, but everything works. It all comes in one app bundle, and inside it are Vidalia and Firefox, with Firefox having its own profile in TorBrowser.app/Library/Application Support/, so you can run this side-by-side with TenFourFox with no problems.

It also sets your user agent to the default Tor user agent, has private browsing enabled, and sets network.proxy.socks_remote_dns to "true," so all your bases are covered. It comes with two add-ons, HTTPS Everywhere and NoScript. NoScript is set to allow scripts by default, so you want to click the "Forbid Scripts" option.

Basically all you need to do is start the application, watch Vidalia establish a connection until Firefox opens to a page announcing you're browsing anonymously. Easy like it's supposed to be.

I'm also intrigued by the account name on that Sourceforge page. It's called "OS X PowerPC Packages" with the description, "A repository providing binaries of open source packages built for OS X Tiger (10.4) and Leopard (10.5) PowerPC." So maybe there'll be more in the future.

Sunday, January 12, 2014

Vevo Videos on Youtube

For a few months now you may have noticed Vevo titles on Youtube aren't working with Mactubes and a number of Greasemonkey scripts. If you like watching music videos, this puts a serious crimp on things as most "official" video releases are Vevo vids. Right now, the only third party tool I know of that can get around this is youtube-dl. So install* it if you don't have it, or update your copy with:

youtube-dl -U

With the newer version you can either download the videos or retrieve the links and stream them through a player like Mplayer (see Some Cross Platform Flash Alternatives). Both methods work.

*On the download page, if you don't have curl or wget, you can just click the download link at the top and then move it to your /usr/local/bin before running the chmod command. It can also be installed with Tigerbrew or Macports.

Tuesday, January 7, 2014

First Person Shooter Party Fun Time!

As I'm not one to manage my time well in general, I never have enough time to enjoy the finer things in life — like the mass carnage of first person shooter games. But I do manage to download things and try them out once in a while, which is what I did recently with Open Arena and a few other open source first person shooters. So why not a roundup? This is a blog, that's kind of what we do here. So here's the story on some open source FPS games for your PowerPC Macs.

Open Arena

Heavily based on Quake III Arena, Open Arena is, well, Quake III Arena. That about covers it. Okay, there are slight differences. The game characters and maps are different, but the concept and game play are pretty much identical.



On my aluminum Powerbook (1.5 GHz, Tiger), this performs really well in a 640 x 480 resolution. In tweaking the settings (not just in Open Arena but in everything reviewed here), I found that screen resolution and the number of opponents are by far the biggest factors in getting good frame rates. So adjust accordingly. The game is a 460 MB download, and there's also a single player mod called OARemix available at Mod DB. OARemix is a separate game folder where you copy the OpenArena.app into it and play with all new maps (the one on the oil rig is really good).

If you're having trouble getting sound, turn OpenAL off in the Sound settings, and if your mod doesn't have that setting (like True Combat mentioned below), switch to the console with Shift + ESC and enter /s_useopenal 0, then restart the sound with /snd_restart.

Also, reader Peter S. compiled OpenArena for G3s (altivec disabled) available at this link.

(ADDENDUM: There's a Quake III mod that also works on Open Arena called True Combat. The physics and weapons are all about realism, and it's the best Quake III/Open Arena mod I've seen. Just download it and put the "truecombat" folder in your Open Arena folder, then start Open Arena and click "Mods." To do single player, choose "StartServer" under the Combat tab, and then you can choose your mission type and skill level. Further instructions are found on the True Combat features page.)

Sauerbraten

Cube 2: Sauerbraten is another title that's been in development forever and shows no signs of going away. It's much like Open Arena, though a major difference is the addition of a Campaign mode where you can progress from level to level.



This is slightly more resource hungry than Open Arena, and there's a wider disparity in frame rates from map to map. Most rendered well, but a few were very slow (You'll notice I resisted the temptation to type out a dozen w's at the end of slow. It always bugged me how much bandwidth that wasted.). When you download the DMG file, it installs as a simple app package. No need to hunt for binaries or change file permissions, so that's nice. Like Open Arena, the game play is very fast and challenging.

Nexuiz

Nexuiz, or Nexuiz Classic, stopped development with version 2.5.2 when one of its developers left to develop a new version of Nexuiz with IllFonic, and those left behind created an new open source fork called Xonotic. But Nexuiz Classic is still available for download at Sourceforge.



Although Nexuiz comes with a nice in-game tutorial, I had real difficulty getting good frame rates out of this. I could really only play it with one bot, and even then it was iffy. So I didn't explore this one as much as the other two. Xonotic may be an alternative for Leopard users. I know they don't support Tiger, but Leopard PPC, I'm not sure (that linked post was from 2010).

There are other games out there, too. There's Aleph One, which is an open source update of Marathon. There's also Tremulous, which I haven't tried. Those alien spiders were a bit too creepy. Maybe later. Also, Alien Arena advertises OS X support, but OS X (and Linux) users must compile from source, and I found no references on the net of anyone succeeding. Maybe later.

The only one of these games I tried on Linux PPC was Open Arena. I got good frame rates, but the colors were all messed up. Apparently the Radeon driver doesn't agree with my ATI Mobility Radeon 9700. I'll be on pins and needles for bug fixes.

Friday, January 3, 2014

New PowerPC Blog!

So I was cruising around the internets, and in my habitual browsing I came across powerpc-liberation.blogspot.ca, a spiffy new blog about our beloved computing platform. It's surprisingly in-depth and comprehensive for such a young blog, with posts about Debian 7, all kinds of content on video playback, an amusing post about scrolling vs. page up/page down...

Wait. That sounds suspiciously like Zen's blog at http://powerpcliberation.blogspot.ca/. In fact, it is his blog, lifted word for word except for the "-" between powerpc and liberation. With ads, too! Well, well, it seems we have a copycat among us. As soon as I got over the hurt that my blog wasn't copied, I got righteously indignant. This is about as blatant a case of theft as there is.

So Zen wrote about this on his blog, and I'm just passing on the warning. To all the PowerPC bloggers out there, it's probably a good idea to google your blog every now and then to see if someone out there is ripping off your content.

The really disappointing thing is the imposter didn't have the guts to copy Zen's last post ripping him a new one. As long as you're gonna steal word-for-word...

Wednesday, January 1, 2014

Scratch Another Off the List...

Even Bar Refaeli is parting with her PowerPC:



Must we all be forsaken?

Sunday, December 22, 2013

Shhh... Go ahead. You throttle that CPU.

Lately I got sucked into looking at methods to throttle CPUs on PowerPC. It started out as a good idea, but my compulsion for completeness made it take on a life of its own and I probably spent way more time reading about it than necessary. But I've come out the other side, and now I'm reading a 580 page book about the Crimean War! Totally useful knowledge. I know how to pick 'em. Anyway, the point of all this is I am now here to share the fruits of my labor and tell you exactly why Orthodox religion and rampant Russophobia in Western Europe led to... I mean, tell you all the ways you can throttle your Mac's CPU.

Throttling CPUs often gets confused with the nice/renice commands, but they aren't quite the same. Nice/renice only prioritizes processes eating your CPU, but all your idle CPU will still be used. CPU throttling actually limits the amount of CPU a process can use. For example, if you throttle Handbrake to 50% CPU, Handbrake won't rise above 50% usage even if there are no other processes running. The practical use for this is mostly for laptops. Let's say you're doing some compiling or video encoding, something CPU intensive that takes a long time, but your laptop easily overheats or you just don't want to hear the fan going. You can limit the heat by throttling the CPU. Sure, it'll take longer, but your laptop won't give you Toasted Skin Syndrome.

For our PowerPC Macs I found a few ways of doing this, all from the command line. First, on Linux there's a program called cpulimit which has you enter a process name or PID number and the percentage of maximum CPU you want to set it to. A typical command would look like this:

cpulimit -e iceweasel -l 50

The "-e" is used when you enter the name of the program (iceweasel). You use "-p" when entering the PID instead, and you can also use -P to enter the absolute path (/usr/bin/iceweasel). The "-l" is for limit, and the 50 is the max percentage of CPU allowed. To exit, just use the standard ctrl-C.

For OS X, I found a couple of ways that work in Tiger. First, there's cpulimitrob. This is a script that someone left on Mac OS X Hints and does essentially what cpulimit does. It uses SIGSTOP and SIGCONT to pause and restart, thereby limiting total CPU time. After you download it and give it the customary chmod kiss (755), you change directories to its current location with the cd command and fire it up as root:

~ dan$ cd Development

~/Development dan$ sudo ./cpulimitrob.sh
Password:
Which process ID (PID)?
297
Sleep time in seconds?
.5
Run time in seconds (e.g 0.5 or 1 ?)?
.5
.................


and the dots continue on and on until you exit with ctrl-C. It mostly works well. The only hitch I found was when testing with TenFourFox, where the browser froze whenever I exited cpulimitrob in the middle of a page loading.

The other tool I found for Tiger didn't have any such problems and appears to exit more gracefully. It's called cputhrottle. However, the binary available for download isn't compiled for PowerPC, and to compile requires Boost 1.33.1. So being the completist that I am, I installed Boost with Tigerbrew (about 3-4 hours to configure and make) and then compiled cputhrottle from source. Using cputhrottle is almost the same as cpulimit, though like cpulimitrob, you need to run it with the sudo command:

~ dan$ cd Development/cputhrottle

~/Development/cputhrottle dan$ sudo ./cputhrottle 1309 50


The 1309 is the PID which you can get from top or Activity Monitor, and the 50 is the max CPU percentage. And again, killing the limit is as simple as ctrl-C.

In case you don't want to compile Boost and cputhrottle, I uploaded the binary I made to my Mediafire folder. It should work on Tiger, though I'm not enough of a compiling expert to say definitively whether it'll work on Leopard. You may also need to run "chmod +x cputhrottle" to make it executable.

Finally, if you just want to prioritize your processes so web browsing or somesuch isn't super slow while something else hogs the CPU, you don't have to use nice/renice from the command line. There's a very old GUI application for OS X called ProcessWizard that still works. In Linux, you can do the same with Gnome System Monitor.

Sunday, December 8, 2013

Let's Play...

...let's link to other people's PowerPC Youtube channels! These are (more or less) PowerPC centric, though I don't vouch for the quality of each and every vid.

The iBookGuy - Not just iBooks!

The PowerPC Hub - Actually a mix of MacIntel, iOS and PowerPC.

Lmull3's Geekery Emporium - Macs and Mac clones.

ItsMyNaturalColour - The dude with the white hair.

BBISHOPPCM's World - Some really old vintage stuff.

gavinstubbs09 - A few PowerPC videos here.

Tuesday, December 3, 2013

My Stupid Mac Youtube Channel

So I went and made my own Youtube channel. I intend to populate it with mostly videos of old Mac games, at least the ones I liked. I might also throw in a Linux screencast. I've been meaning to do something like that for ages, so at my current pace I'll get around to it sometime in the next calendar year (don't hold me to it). Also, it looks like Youtube implemented their new comment policy just in time, so all of you who want to call me a booger snot will have to do it from your public Google+ profile :-P

Incidentally, did you know MPEG Steamclip is still around? I needed to edit some of these videos, which were .mov files with an odd audio codec, and Avidemux wouldn't play along. So I remembered MPEG Streamclip which I used a long time ago and went over to their site and saw they had an update from last year. Still runs on Jaguar (!). It's still as easy as ever to use and did exactly what I needed.

One last tidbit, if you upload a 640x480 video to Youtube in H.264 format, it will be horribly distorted when Youtube downscales it to 360p. If you upload as MPEG-4, you won't have that problem.

Sunday, November 24, 2013

Airdrop and Launchpad Clones for your Tiger and Leopard Desktop

Over the last few itinerations of OS X, Apple has included several new features that would seem to leave PowerPC users in the dust, but if you go looking you can definitely find alternatives that can get things done in much the same way. The two features I'm focusing on today are Airdrop and Launchpad.

Airdrop is a much-ballyhooed super simple way to share files with other Macs that are also Airdrop-capable. You basically just drag and drop what you want to transfer into a special Airdrop folder inside the Finder. Launchpad is a new application launcher that displays all your app icons onscreen in a way similar to Gnome 3 and Unity, but Apple would never steal from those basket cases, right?

It turns out Airdrop isn't so new after all, at least to those who have been using DropCopy. DropCopy is very similar in that it places a small transparent circle on your desktop, and you simply drag and drop what you want to send to another Mac that's on your LAN and running DropCopy as well. The newest version supports Intel only, but an older version is available for Tiger and Leopard. A mobile app is available, too. DropCopy also lets you transfer files long distance if you know the public IP address of the Mac you're sending to.

Bevy on Tiger

Launchpad's doppelgänger is called Bevy (above), and it too throws all your application icons in front of you, only in this instance they're organized by folder (Applications, Utilities, and Developer, etc.). A lot of people seem to be annoyed with Launchapd, or at least ignore it, but having a visual representation of all your applications is sometimes useful, and Bevy offers a good alternative to do that. It's nagware, but it's only $9.95.

Now if we could only get Mavericks' dual monitor support, we could...Oh, wait. Dual monitor support was originally effed up in Lion, so we don't need that fix. Glad to see Apple's finally catching up to the Tiger era.