Another old, new iMac

(Listing this here for future reference… and maybe it’s useful for other iMac owners.)

A few days ago, my minions found an old iMac G3 at the dump. And what do you know, it was in excellent condition.

iMac G3 "grape"

But, what to do with it? It’s ~12 years old, so its usability is limited. Then again, bringing me an iMac is like bringing me a kitten… I just don’t have the heart to send it away. :)

To be precise, it’s a tray-loading iMac revision D, 333 MHz G3 processor, color “grape”, 160 Mb memory, 6 Gb hard disk. It doesn’t have a Firewire port, so it probably won’t install Tiger (although there are ways around that); but even if it did, with meager specs like that, it wouldn’t be a happy camper.

(It still had all the original owner’s stuff on it, by the way… good thing I am not into identity theft. ;-)

I installed Jaguar on it first, but I don’t have the CD with developer tools (later to be known as XCode), so that wasn’t very useful. Most modern software isn’t available for Jaguar anymore, anyway; it’s just too old. It was nice to see it again in all its pinstripey glory, but that was about it.

So, back to Linux again. But as luck would have it, none of the Linuxen I tried worked. I mean, they didn’t work at all. They would seem to install properly, then when I rebooted, the machine just sat there, gurgling, not doing anything.

As it turns out, some iMacs need a little help showing graphics properly. I ended up installing Debian 6.0.1 netinst (the PowerPC version, naturally), tweaked xorg.conf, then manually installed XFCE at the prompt. Then startx, and it showed me the desktop without a glitch. It’s a bit slow to start, but after that things are reasonably fast.

(Using netinst, you install only the packages you want… it’s a bit more work, because some important packages like gcc, make and sudo need to be installed manually, but on the other hand, your system isn’t bogged down by stuff you don’t really need. I am using XFCE because it’s relatively lightweight, more so than GNOME or KDE, in any case.)

I am now trying to compile Chicken on it… who knows, maybe this machine will be useful after all. :)

:: Comments (2)

Linux question, followup…

Thanks to everybody who replied to my previous inquiry about booting Ubuntu in text mode. Eventually, I managed to figure out a solution, sort of, after combining several of the tips.

Much of the advice was sound but didn’t really apply in one way or another. For example, Ubuntu 11.04 uses GRUB2, which apparently differs significantly from the old GRUB. This means that many of the proposed solutions didn’t apply (unless I had reinstalled using the old GRUB, I don’t know). There’s no /etc/inittab, no menu.lst, editing the boot menu works differently, the vga= parameter is no longer supported, etc.

The Ctrl-Alt-F1 (etc) suggestions sort of worked, but gave me the same small font, plus I really wanted the system to *start up* in text mode.

The reason I chose Ubuntu in the first place was because it’s popular.  My Secret Project (oh, the suspense ;-) involves building something on top of an Unixoid system, and Ubuntu seemed like a logical choice; it’s very actively developed, has drivers for a lot of hardware, etc. But on second thought, it might not have been a good choice for my purposes. Ubuntu strives to provide a smooth, user-friendly experience, which implies a desktop GUI. Support for terminals that boot up in text mode is, understandably, not their first priority.

However, there *are* Linuxen with different priorities. As reader “Kerobaros” pointed out in a comment, ArchLinux may be a better choice. So after a lot of fruitless experimenting with all the advice mentioned in the other comments, I decided, what the heck, I’ll give it a try. (It uses the old GRUB, so that made things easier as well.)

At first it did the same thing as Ubuntu: I could set the VGA mode/resolution in GRUB, and it would start up using that mode, but at some point during the booting process the screen would fall back to the 1024×768-based font. (I figure most people would actually prefer that font, since it’s much more crisp, and more text is visible on the screen, but for my old eyes, it’s not so good.)

Then eventually I read somewhere that this behavior is something that newer kernels do, and that the nomodeset option stops it from happening. It didn’t actually do that on Ubuntu 11.04, but it did on ArchLinux. So now I finally have a Linux install that sets the right font (80×25) and *keeps* it. ^_^

~

I did offer a bounty to the person who could solve this problem. Oddly enough, the “golden tip” turned out to be the suggestion to use Arch Linux. Several people mentioned “nomodeset”, and while it didn’t have the desired effect on Ubuntu, it does work properly with Arch. Given that I couldn’t get any of the other tips to work with Ubuntu 11 at all, I think that Kerobaros should get his pick of the prizes, if he/she wishes.

:: Comments (6)

Dear lazyweb: Wanted: Linux wranglers

(Thanks to everybody who replied. I still don’t have a working solution yet I eventually managed to find a configuration that works for my purposes, combining some of the advice; more about this in a followup post.)

~

OK, here’s an interesting problem for all you Linux masters/journeymen (or maybe even beginners) out there. The whole story is a bit too long to explain it on IRC or somesuch, so I’m doing it here. I’m also offering a bounty/reward; see below.

But first things first. Last week I got an ASUS 1018P. It’s a 10″ netbook that I specifically got to do a certain Project that I have been thinking about for a while now. It currently has Ubuntu 11.04 desktop on it (most attempts to install other versions of Linux failed, but that doesn’t matter right now). In GUI mode, everything seems to work fine; graphics are correct (it’s a widescreen), wireless is instantly recognized, sound works, etc. No problems there.

Now, what I want, is apparently rather unusual in this day and age. You know how in the old days of MS-DOS (or early Linuxen) the computer would boot, and you would get a 80×25 text screen? Well, that’s basically what I want here. I want an option in my boot menu that does just that; instead of booting into the GUI, it shows you a login prompt in 80×25 text mode, and stays there after logging in.

Sounds simple? Not for me. I know a little about Linux, but not enough to pull it all off, because I run into too many problems that I don’t know how to fix. The way I understand it, the new menu option must boot in runlevel 3, and must use a screen resolution lower than 1024×768 (currently it shows a font with more columns/rows than 80×25, which makes the text unpleasantly small on the 10″ screen).

(The machine is capable of showing 80×25, by the way; it uses it for the BIOS screen, and it also uses it for certain other Linux installations, like Gentoo, so I know it works. It’s just that Ubuntu insists on switching to a higher resolution with a smaller font.)

If you know how to fix this, I would like to hear from you. ^_^ Please leave comments either below, or via email (zephyrfalcon@gmail.com). Assume that I am not very smart and don’t know much about Linux. ;-) In other words, I would need some hand-holding, rather than vague advice.

The first reader to come up with an acceptable solution can pick a “prize” from the list below. To summarize, this is what I need:

  • extra option in GRUB2 boot menu
  • boot in runlevel 3 (necessary for text mode, I think, but feel free to correct me)
  • set screen to a lower resolution, e.g. 640×480 or 800×600, which allows for 80×25 text
  • ideally, the process should be reproducible on other netbooks as well (assuming Ubuntu)
  • BONUS points if everything else still works in text mode (sound, wireless, etc)
  • BONUS points if it’s still possible to switch to a graphics mode using one library or another, and back to text mode (not a GUI, I’m more thinking along the lines of SDL here, etc), and you can tell me a bit about how to do this

~

Now for the rewards. I don’t have money to offer, but I do have a bunch of stuff laying around that I don’t use, and that might be of interest to people. I will send it to you free of charge. NOTE: Sorry, but I can only send it to you if you are in the US or Canada; otherwise the shipping costs will get a little too unwieldy. :( If you are from another country, maybe we can make other arrangements, e.g. I could write some Python code for you, or something.

Books:

  • The Little Lisper, Third Edition
  • Ada 95 Problem Solving and Program Design (Feldman, Koffman)
  • Programming in Ada 95 (Barnes)
  • Unix Ada Programming (Gehani)
  • Data Structures and Algorithms: An Object-Oriented Approach Using Ada 95 (Beidler)
  • Miranda: The Craft of Functional Programming (Thompson)
  • Flex 3: A beginner’s guide (Davis, Phillips)
  • The Art of Computer Programming vol. 1: Fundamental Algorithms, Second Edition (Knuth)
  • Dreaming in Code (Rosenberg)
  • In The Land of Invented Languages (Okrent)
  • Twisty Little Passages (Montfort)
  • Rules of Play: Game Design Fundamentals (Salen, Zimmerman)
  • The Game Design Reader: A Rules of Play Anthology (Salen, Zimmerman)
  • Photoshop CS Bible (McClelland)
  • Magic: The Puzzling (Rosewater)

If none of these are to your liking, I also have a bunch of Magic cards (mostly older ones), fantasy books, video games, disassembled Zoids, etc. Oh, and you get to pick more items if you satisfy the “bonus” conditions listed. :)

Thanks in advance…

–Hans who should really turn in his hacker’s license :(

:: Comments (21)

Struggle

(This is one of those posts written in anger and self-pity, so feel free to skip.)

The other day I got my grubby hands on a new netbook… an Asus 1018P. I have been planning (yet another) Secret Project for a while, and it requires a Linux that runs in text mode. It seemed like a good idea to have a small, dedicated machine for this.

It originally came with Windows 7 Starter, which is basically useless. But, since it has a 250 Gb hard drive, I optimistically figured, that I could run multiple operating systems on it. For example, keep Windows 7, then Ubuntu 11.04 desktop, Ubuntu 11.04 in text mode, and something experimental, e.g. Haiku.

Ubuntu 11.04 desktop edition installed and worked fine. Then the trouble began. Installing another Ubuntu in text mode did work as well, except it refused to boot up. So I could boot into Windows, or Ubuntu with GUI, but not the text mode Ubuntu. It would just sit there with a blinking cursor, doing nothing.

Haiku wasn’t a success either; it didn’t recognize the widescreen, so it looked silly, and after installation it didn’t show up in the boot menu. Apparently there are fixes for this, but since it wasn’t my #1 priority, I decided to skip it.

So, new plan: instead of Ubuntu I would install Linux Mint 11 for the desktop, and Gentoo for the text mode version. Ugh. Linux Mint wouldn’t even boot properly from the CD. It would show some text and then just stop. No installation at all. Gentoo did a better job, I worked through the manual step by step, until I somehow ran into a compilation error while building the kernel (something to do with firmware, I should have written it down). Trying it again, I got a different error, more cryptical. In any case, it refused to compile. I tried to do manual config instead of using genkernel; then it didn’t even boot.

At this point I was ready to just use the whole hard drive for one operating system instead of juggling several. Tried Debian next; that was even more fun, since its installer somehow didn’t recognize the CD-ROM (yes, the same CD-ROM that it was booting from). Ubuntu Server does the same thing, by the way.

OK, so four days later, I still don’t have a text-mode Linux installed. I really don’t understand why it’s giving me such a hard time. The machine itself seems fine. But I didn’t really expect to have so much trouble installing Linux in 2011.

At least I’m not running out of options; there’s still Arch Linux, Red Hat, Mandriva, Slackware, SUSE, … :-) And then there’s the BSDs… I’m not married to a specific OS, I just wanted to pick something that was actively developed and easy to install. Yeah, so much for that.

Maybe I’ll try Gentoo again sometime and report the error… or maybe I’ll get lucky and a new version will be out soon, that happens to fix the problem.

My Secret Project is not off to a good start, though. Step 1 would be, “install a Linux in text mode”… if it’s this hard, I will never get anybody else to use the project. :-/

Anyway, if you know of a Linux that does flourish in text mode, even on obscure netbooks, feel free to leave a comment.

Update #1: More failures from Haiku alpha 3 (gets past the intro screen, then does nothing) and Dragonfly BSD (is installed but some daemon is messed up, and I don’t know how to fix it, which admittedly isn’t Dragonfly’s fault, but still). I should probably take a break and then try what the comments below suggested; I can install e.g. Ubuntu with GUI, then play with the runlevel. I do wish Gentoo worked though… maybe I can do the same with its live CD?

Update #2 (more of a side note actually): As it turns out, in situations like this. it’s very useful to have a little stack of CD-RWs laying around. :) The OS doesn’t install or just plain sucks? No problem, wipe it off the CD and install a new ISO.

Update #3. I’m giving up. This should be the simplest thing to do… install a Linux and be greeted by a 80×25 text mode screen after booting. You know, like we did 20 years ago? And for some reason I just can’t get it done. Resolution is wrong, system won’t boot in runlevel 3… and that is just for the few Linux versions that can be properly installed at all on this thing. I’ve wasted a week on this, I think that’s enough.

:: Comments (3)

Jolicloud on HP Mini 311

Jolicloud is an operating system based on Linux, optimized for netbooks. I was bored today, so I figured I’d try installing it on my HP Mini 311.

(Some of the notes below are specific to this netbook; maybe it will be useful to other 311 owners who want to try installing it as well.)

It appears that Jolicloud is basically Ubuntu with a friendly user interface. The “home screen” shows applications in various categories, and several locations (home directory, desktop, network, etc). It comes with a number of applications, many of them aimed at social networking, internet and “the cloud” in general.

Installing it is a breeze. I already had Windows XP on the netbook; I downloaded the installer and ran it (still from within Windows). Partitioning, installing etc happens automagically. (There’s also an ISO available, which, I assume, gives the user more control during the installation process.)

If you have a HP Mini 311 as well, note the following. Once Jolicloud has been installed, and the computer reboots, you’ll see a boot screen that lets you choose between Windows and Jolicloud. Counter-intuitively, you must choose “Windows” here; you will then see a similar screen, and there you select “Jolicloud”. (This may be because the 311 comes with a separate partition containing system restore data… I do hope that Jolicloud did not interfere with that.)

You will need to do some configuring to get the current version (which, as I write this, is pre-beta) to recognize the HP Mini’s Nvidia Ion. JC did use a widescreen resolution, but it didn’t offer much in the way of configuring the screen, and the home screen was REALLY slow. This turned out to be easy to fix; create a Jolicloud account, do a software update, and reboot. The software update will download proprietary software by Nvidia; RMS would frown upon that, but it made the home screen much more snappy, and offers a whole range of configuration options (much like on Windows).

The Jolicloud site offers a relatively small number of apps, although many of these are important and/or popular ones, like Firefox, Google Chrome, apps for Facebook and Twitter, etc. While you may choose to restrict yourself to these apps, you ALSO have access to other Linux software. Synaptic (Ubuntu’s package manager) is “hidden”, but it’s there, and it’s easy to add it to the main menu. I did so in order to install vim, Emacs and a few other things. A nice touch was that icons for these applications were added to the menu automatically.

(Oh, and Python 2.6 is already installed out of the box. How could it be otherwise? :-)

Anyway, so this is a nice little Linux… useful if you just want to browse the web and check your Facebook, but also if you want to use it for hacking. ^_^

:: Comments off

Fun with Gentoo

So I installed Gentoo Linux the other day… I then spent most of Friday night and Saturday (I know, I am lame =) trying to set the console font to a size that I liked.

Backstory: Gentoo insists on booting up in a resolution of 1024×768 on the iMac, and then sets the console dimensions to 128×48, which leads to a font that is just a little too small for me to read comfortably on this screen. So I spent a lot of time trying to set the resolution to 800×600, hoping that this would lead to a larger font. Under OS X, that resolution works fine, but under Gentoo, the machine refuses to recognize it. Or rather, it ignores video settings that I pass, or the screen goes blank and the computer seems to hang. Pretty weird. At some point I even tracked down the driver in the kernel source, changed it to boot into 800×600, recompiled and reinstalled… which had the same effect as manually setting the resolution, i.e. the computer hangs.

So eventually I started looking for larger console fonts. There aren’t many… there’s the Sigma font, and Terminus… I am using that last one now, and I don’t like it too much, but at least I can read what I’m writing. :-) Fortunately, the sources of both fonts are available, which means I can change them to my liking, or create my own font (eventually). ^_^

Other than that, Gentoo works great on the iMac. Network worked right out of the box, which is essential as many packages can be downloaded using emerge.

Well, back to my hacking configuration hell… :-)

:: Comments (2)

The penguin has landed

So, I got my old/new iMac yesterday. I figured I’d try installing Gentoo on it, and if that didn’t work, try an easier install like Ubuntu or Yellow Dog. As it happens, the install worked fine. I did a minimal install, compiled the kernel, etc… and to my surprise, ended up with a working Linux system. :-) (I expected it to be crazy difficult, but it wasn’t so bad.)

I recommend trying this; it’s a great learning experience when you don’t know much about what makes Linux tick. I learned a lot, anyway.

Although the PPC version is not “official” (it’s supported by the community), it appears to be up-to-date and the installation went well. Granted, there were a few parts in the handbook that worked a bit differently in the newest version of Gentoo, but nothing I couldn’t figure out. Overall, the manual did an excellent job of guiding me through all the steps (many of which I had never done before, like setting up a file system from the command line, or preparing and compiling a kernel).

Now I just need to find a way to set the text mode to something lower than 128×48, and I’m golden… =)

:: Comments off

Dear lazyweb: Which Linux distro should I use?

So this week I will be getting my “new” iMac, and I want to install some version of Linux on it. However, the following restrictions apply:

  • This is actually an old iMac from around 2000-2001 or so. Specs: G3/450, 256 Mb of memory, 20 Gb hard drive, DVD-R. (Note that this is a PowerPC.)
  • Linux should run in text mode only. (For various reasons, e.g. to save space, because the machine isn’t really equipped to run GUIs smoothly, and because I actually LIKE text mode. :-)
  • I want to do as much as possible with this machine, so any distro that caters to text mode users (more so than usual), gets extra points.
  • Although I have a few years of experience with Unixoid systems, I am not all that familiar with Linux per se, so the distro should probably not require expert knowledge.

So far I am considering Ubuntu (server install), Debian, and maybe Gentoo. (Although I don’t know how difficult it is to use… the compilation part doesn’t scare me… and the Portage package management system is apparently written in Python, which is interesting.)

Are there any other distros that would be suitable for a PPC with limited hardware?

:: Comments (5)