Thursday, July 21, 2016

Getting Linux on an iLamp iMac with Nvidia Graphics

ILamp iMacs (G4s) are maybe the most notoriously difficult Macs to get a Linux desktop on, mostly because of the GeForce graphics they were afflicted with came with. Since I don't have one and haven't tried to put Linux on it myself, I haven't posted anything about it, but PPC Luddite reader Gary R. via email shared a very concise set of instructions on how to get Ubuntu running on his, so I thought I'd post it here.

Here I quote Gary very liberally:
This is how I got Ubuntu to work:

Download Ubuntu 16.04 minimal install iso for ppc.

Install system utilities and Ubuntu Mate

When finished, reboot

At yaboot type: Linux nomodeset single

When you reach root, type: visudo

Below: root ALL=(ALL:ALL) ALL type: username ALL=(ALL:ALL) ALL (as per your instructions)

Hit Control o, hit return, then exit

nano /etc/modprobe.d/blacklist-framebuffer.conf

comment (#) nvidiafb, uncomment vesafb

write, save, exit

nano /etc/modules, add nvidiafb

write, save, exit

nano /etc/initramfs-tools/modules, add nvidiafb

write, save, exit

update-initramfs -u

nano /etc/X11/xorg.conf and add:
Section      "Screen"
     Identifier   "Default Screen"
     Monitor     "Default Monitor"
     Device      "Configured Video Device"
     DefaultDepth 16
EndSection
write, save, exit

nano /etc/yaboot.conf and add to the append lines to read "quiet splash video=offb:off nomodeset single"

write, save, exit

ybin -v

Type "passwd" and add a root password

Reboot

You should come to a screen that says "Enter root password for maintenance or Control D to continue"

Hit Control D and you should get the Ubuntu Mate desktop
And scene. Gary adds he has to boot into rescue mode as it seems necessary with the nvidiafb and it's the only way to have shutdown, suspend, and reboot working properly. He also likes MATE, and after playing with the latest release on my Debian Sid install, I like it, too. So there.

Thanks again to Gary R.

Tuesday, June 7, 2016

New PPC Media Center Version 6

It seems like just yesterday that I was bitching about Vevo videos on Youtube breaking my Greasemonkey downloaders, and Adam Albrec came to the rescue with PPC Media Center, a GUI frontend for youtube-dl written in all AppleScript. Now he's back with another update and we're all the way at version 6 now. Through that time, the app has evolved from a simple streamer and downloader to a full-featured package that's added multi-segment video support, MP3 creation, Universal binary support, etc., and now with version 6 adds even more to the festivities.

New to this version (quoted from the Read Me):

1. Now supports List (Youtube) / Album (Vimeo) Play & Download.

2. AutoDownloading (Batch) - In the background; separate from Primary Play/Download/MP3-creation functions.

3. Enhanced WebM-avoidance for PPC systems and only downloads as a last-resort - with a prompt (Intel Mac are
unaffected).

4. Dynamically check Python version, and can even work in Intel systems with system-Python problems.

5. New Smart Installer, deletes all install-packages on completion (reclaiming 50+MB of disk-space).



The big addition here is the batch AutoDownloader, allowing you to copy multiple links to the clipboard (links can be separated by commas, spaces, or line breaks) and download them in the background while still being able to play other videos in the foreground.


Also added are Spanish and German localizations. Viva PowerPC!

So give it a download. And when you do, don't forget the Extras/Goodies/Legal folder where you'll find some experimental apps and the localizations.

Of course all the previous features we've come to know and love return for this version, and I'm seriously impressed by the work that went into this and that Adam could do it all with AppleScript. The more likely scenario is he already developed this when I made my original complaint about Vevo videos, but I'll still cling to the belief that my bitching and moaning opened the floodgates of inspiration and led directly to the creation of PPC Media Center. None of this would have happened without PPC Luddite. This blog is all powerful. I am ruler and surveyor of my realm.

PPC Media Center 6 supports both PowerPC and Intel, OS X 10.4 - 10.8. You may download it here:

http://www.mediafire.com/download/a7oo6v27ilma29r/PPC_Media_Center_6.zip

MD5: fa675015ad7f78b82f5fb8affea3247e
SHA1: f371b922a856d48518c33277beb4f8eb2ce023f9


SLIGHTLY UPDATED version with Pasquale Barbaro's Italian localization in addition to the German and Spanish ones:

http://www.mediafire.com/download/r5wqp9y40p88r95/PPC_Media_Center_6.0.zip

MD5: 04188b4e00b69eae8c667dfc0cf2701c
SHA 1: d56e5d721fc3d6d85c54a28121194d3945b3edc8

As always, my original post introducing PPC Media Center will be updated with a download link to the latest version.

(UPDATE: A couple of people have reported getting stuck in a loop at the end of the installer. If this happens, you can download PPCMC_6.0-App_ONLY.zip. It's the app only and doesn't install any missing programs like mp3 binaries or Spark, which you probably already have if you've used previous versions of PPC Media Center.)

Monday, May 30, 2016

Twitter Mobile on TenFourFox

You may have noticed Twitter recently updated their mobile site when accessing it in TenFourFox. It used to look like this (old convo, don't know if anything came of it):


And now it looks like this:


The problem, as with most website "upgrades," is it's slow as molasses. Gone is the zippiness. Instead, we get a mobile site that's almost as slow as the regular site. So I boxed mobile.twitter.com with FoxBox to see if it helped, and I found something interesting. I get a paired down, much faster version of Twitter:


Then I went back to TenFourFox and used User Agent Switcher to change the user agent to an iPhone 3 and found the same paired-down site. Interesting, so it's a user agent issue. The iPhone 3 solution isn't wholly satisfactory as it breaks some other sites, but after some trial and error, I found that the user agent for TenFourFox 37 gives me the same stripped-down, fast Twitter, so apparently Twitter Mobile only gives you the new layout if your user agent is TenFourFox 38 or higher.

I wanted to change the user agent to v. 37 permanently so I wouldn't have to switch user agents back and forth between sites, but User Agent Switcher has a bug/feature where it reverts to the default version after closing a window. So I did it the manual way, which is to enter about:config in the address bar and press return, type useragent in the search field, right click on some white space and choose New --> String from the menu. Enter this for the preference name:

general.useragent.override

Then enter this for the string (no line breaks):

Mozilla/5.0 (Macintosh; PPC Mac OS X 10.4; rv:37.0) Gecko/20100101 Firefox/37.0 TenFourFox/7450

(UPDATE: I should add to revert to default, right-click on the preference and select "Reset".)

With this I'm all set, until sites warn me my version of Firefox is too old*, please update, etc., etc. Maybe by then there'll be some kind of site-specific user agent switching available, either built in or as an add-on. I'm sure Dr. Kaiser or somebody can whip that up on a lunch break, ha ha. (2ND UPDATE: this add-on is what I was looking for. Upon further review, this is too buggy.)

Anyway, this has been another episode of cling to PowerPC forever. I recently weighed my upgrade options, looking at a Mac Mini, a Macbook Air, and a Thinkpad, but I didn't find them appealing. With new Macs, I'd have to accept no Firewire, no Classic, no PowerPC support, not even Rosetta, and Apple's increasingly buggy software. With a Thinkpad and Linux, it'd be much the same.

I'll just stay right here in my lawn chair.

*this may also interfere with add-ons auto updating until you update the version string to a version the add-on supports.

Sunday, May 8, 2016

Cool Mac Book in the Making

No, not MacBook, Mac book. As in someone's writing a book about gaming on the Mac called "The Secret History of Mac Gaming." As the title suggests, it's going to be a narrative-style retelling of the history of Mac game development and draws on all sorts of interviews with key players from the 68k era through the early 2000s. What could make this interesting is these were for the most part indie developers who followed their own muses and came up with some really creative UIs and gameplay, so I'm sure they have great stories to tell.

The author, Richard Moss, emailed me drawing my attention to this and has some serious credentials, having written for Ars Technica, Edge, Mac|Life and several gaming sites as well as producing a podcast, Ludiphilia. There's a crowdfunding site for both digital and deluxe print editions of the book which you can visit here. There's also a pitch video on Youtube. Both links will tell you a bit more about the project and how you can contribute, so I'd encourage you to check them out.

I'm in for £10 for the ebook, so I'll have my name in the back of the book. Finally I get my name on a book that sells :)))))))

Saturday, April 23, 2016

In Case You're Having Problems Accessing Macintosh Garden...

For a couple of weeks I couldn't access macintoshgarden.org. Since the site is prone to going down on occasion I didn't think anything of it until more and more days passed and still no luck. So I tried it on a browser besides TenFourFox and the site worked. Huh?

Turns out macintoshgarden.org switched to https for a few days but then reverted when it was causing some hitches, but TenFourFox would automatically try to connect to a nonexistent https site even if you typed http in the address bar.

Click for full size:


After purging my history of all macintoshgarden links and clearing out all macintoshgarden cookies, I still couldn't get TFF to connect to http. Finally this was the solution to my problems:

Click for full size:


"That's done it. I edited the SiteSecurityServiceState.txt in my Firefox profile, deleting the macintoshgarden entry. Now I'm back in."

Kind of ironic the solution was in a thread I temporarily couldn't access in TFF, but all is well now.

Wednesday, April 6, 2016

CorePlayer Un*ucked

So this happened in the MacRumors Forum yesterday:

http://forums.macrumors.com/threads/coreplayer-is-no-more-rip.1397374/page-5#post-22765728

For a little background, user lotvai77 is the one who compiled Transmission 2.84 for Tiger PPC several months back, and CorePlayer is near legendary among powerpc users as the most cpu efficient video player (zen at PowerPC Liberation was one of the few who had a registered copy).

Now I can see what everyone was raving over. I previously found Mplayer from the shell to have the best playback, though for some 720p videos I had to disable the loop filter to avoid framedrops and this slightly degraded image quality. With CorePlayer this is no longer necessary and it has handled every 720p vid I can throw at it. I don't have any 1080p videos handy at the moment, but I've read from others CorePlayer can handle 1080p on faster Macs with ease.

Caveats: CorePlayer is the master of h.264 playback, but some mkv's I tried with it were wonky and avi's with AC3 audio didn't play any sound. Zen previously reported "little support for AC3 audio," so that's definitely been my experience!

One tip, if your cpu's too slow and you're still getting framedrops, go into Tools --> Settings --> Advanced and check "Disable AVC deblocking filter". I think this is the same as disabling the loop filter and it'll speed things up.

h/t Adam Albrec

Also: CorePlayer File Association Icons

Tuesday, March 29, 2016

Android and Your PowerPC Mac

A week ago my wireless provider texted me saying they'd no longer support their 2G network and I needed to upgrade my phone. Up till now I'd been living my namesake and happily using my candy bar 2G phone, but now that reality has come crashing down on me and I have to join the 21st Century or something. So I thought I could buy another dumb phone that supported 3G, but then I thought for a little more I could get an Android phone and maybe milk it for a blog post or two about using Android with our PowerPC Macs. So here we are!

I got an unlocked Motorola Moto E, which was the least expensive smart phone that still got good reviews. I don't expect to be a heavy user, so it suits my needs. I'll miss my lighter than air Nokia whose battery lasted forever and also didn't nag me about software updates every five minutes. Apparently progress means being a perpetual beta user. However, I was pleasantly surprised at how easy it is to share data between the Moto E and my Powerbook, and not just over a wireless connection. It works through USB, too.

Right out of the box with no additional software, you can upload photos through USB by tapping the notification that appears when you connect the USB cable and then changing the transfer protocol from Media device (MTP) to Camera (PTP). If the notification doesn't pop up, you can also go to Settings --> Storage and tap the upper right button and select USB Computer Connection. There you'll see the same MTP and PTP options. Shortly after you select PTP, your default photo importer in OS X such as iPhoto or Image Capture will automatically open and you can select which photos to import. So far so good!

However, to transfer all other data such as music and documents, you need MTP which doesn't play natively with OS X. Fortunately there's a piece of software for Tiger that allows you to connect via MTP and transfer all your other data. It's called XNJB, and though the official version 1.5.9 claimed PowerPC support, it doesn't work. That's where Cameron Kaiser came in and compiled his own version that works and has made it available for download through Floodgap. It must be noted, though, he offers absolutely no support for this. So please don't bother him with bug reports or feature requests--he compiled it for his own use and is throwing it out there in case anyone else finds it useful.

Those disclaimers aside, I found it works perfectly (just make sure your phone is set to MTP, not PTP). You start the application with your phone connected and you're shown two browser panes for uploading and downloading. You can also create new folders on your phone with the Create Folder button. The "X" button predictably deletes items.


With that, I can move all the data I want back and forth. As for sharing data over wifi, you can set up your Mac as a Remote Login server in Preferences --> Sharing and then use an Android file manager that supports SFTP to establish a connection and move files. I tried it with ES File Explorer, and it worked fine.

For transferring via USB, Linux users don't need to do much except install gvfs-backends if they don't already have it, and their Android device will mount in their file manager. A supported operating system does occasionally have its charms.

I haven't really looked into pure syncing for things like contacts and calendars, but perhaps there's a way to do it by using Google services as a go-between. Syncing email is easy if you have IMAP.

So I hope this blog post served you well and was worth me giving in to the smart phone fascists. I've been tempted to throw it into a wall a few times, but maybe that'll subside. I still have a few weeks left to return it for a refund ;)

Wednesday, March 23, 2016

Getting an SSD for Your PPC? Here is Some Important Info That Might Help

(Ed. note: The following is by Adam Albrec, author of PPC Media Center, cross-posted here from various other places. It's about SSDs, and since there's virtually nothing on this blog about SSDs on PowerPC Macs, I thought I'd include it here with his permission.)

I just got an OWC 'TRIM-Free' ssd for my MDD DP 1.42. At first, this was easily the best performance I've EVER had on this machine - OS9 level peppiness even running Tiger with heavy apps like TenFourFox. Opened 2 9000x6000 pixel images in Photoshop and doubled them by 10% increments, then opened TenFourFox with 50+ tabs - could move between PS History-states and then back over to TenFourFox and cycle tabs with no-more than 1/10th second delay!!!! Was ROCKIN' 11GB of Virtual Memory!

BUT it all came crashing down in less than a day.

The drive became completely unresponsive and I could not get any further than boot. Thought: "Knew this was too-good to be true!" Well OWC tested the drive and reported back it was fine!?!?!? To be on safe-side they sent another knew one and adviced me to attach to newer machine (Linux in my case) and verify it had newest firmware before using. Well this meant having to partition to MBR so Linux could see it. Well, once it was verified, I repartitioned back to APT to put in the Mac, but suddenly it was unresponsive again like the 1st one! Well to use the parlance of our time - WTF?

So it was time to get me some edumacation into this stuff. The reason Sandforce controllers don't need TRIM is that they do it themselves when the drive is idle. On a modern system, with copious amounts of RAM, the only time the 'Garbage Collection' function is noticeable, is when large numbers of blocks are being reclaimed. In older OSX systems with 2GB RAM limits, this becomes much more likely than in newer systems.

So what to do? In this case, the drive was 120GB (for $64 = Good Deal), I had initially partitioned it into 2 sections (80GB for OSX and 40GB for OS9). On a light day, maybe this would be fine, but on those 'Heavy-Flow Days', I can easily push 20GB or so onto VM, so I either plan on allowing for periodic down-time or give the drive all the room it can support to enable maximum paging flexibility. The second idea has been great and no more problems. Also, some have said that with Sandforce's drives this also makes sense in wear-leveling, because the more of the drive is available, the more it can spread the data around, and the drives also auto-recopy data periodically to make sure it stays fresh.

Boot-times/program load times aside, one of these SSDs are the best investment you can put into your classic PowerMac. Like having virtually limitless RAM. But you need to allow it more openspace to auto-maintain (for G4/32-bit systems at least 40GB).

Also while they do still offer the 'Legacy' IDE/ATA versions, there is no reason to pay the extra $40 when an IDE/Sata adaptor (at least if you are on a desktop with the room inside) like this one http://www.ebay.com/itm/Pata-IDE-To-Sata-Hard-Drive-Adapter-Converter-3-5-HDD-DVD-Parallel-to-Serial-ATA-/171424564491 is available for about $6 and works like a charm.

Happy PPC Computing Folks!!

•• Note on IDE/SATA adaptors: The smaller inline ones like mentioned above, generally have a 2TB limit. Larger drives often require a PCI card. Also, they sometimes add an additional 1-second delay to Access/Spin-Up times. Once data starts moving, there is no delay, but if your only drive is an SSD, it might make sense to experiment disabling 'disksleep' on pmset in Terminal. Even in this case, however, there will occasionally be a momentary searching during bootup for the system folder as the card comes to life. This is normal.