Monday, December 15, 2008
Console apps using dialog?
Lat9w-16 is working pretty well for me.
Monday, November 17, 2008
Flash for 64-bit Linux!!11oneoneone
Get it here.
Thursday, November 13, 2008
LinuxWorld 2008 Utrecht
Update: Just attended the second seminar about 'covert channels', which was pretty good.
Update: Attending third one, by Microsoft's Hans Bos, right now...
Update: Bos' talk was ok, but even though this was LinuxWorld, Bos didn't use the L-word. Not once :-P
Update: Final talk from IBM's mr. Baht was amazing, almost to the point of asking: "Are you guys hiring?"
Disclaimer: written on tiny keyboard of Nokia N800; please forgive spelling errors! ;-)
Friday, October 3, 2008
Migrating from Revelation to KeepassX
The script is pretty rudimentary, as it not able to convert all account types Revelation offers. This is partly because for my personal use, I only needed the basic account type Revelation offers (the one that has a username, a password and a url) and partly because Revelation can do things KeePassX simply cannot.
Revelation offers the possibility to store more than one attachment with an account, which KeePassX cannot do, for example. Also, it's not always easy to map Revelation account properties against KeePassX properties: Revelation has a much wider variety of properties and some overlap a bit (password and pin for example). It's probably possible to deduce what goes where, but I lack the time to do so.
In the future, I might come up with a script that just puts all the exotic Revelation properties into the comment field for KeePassX. That would be fairly clean and straightforward.
If you have Ruby installed you can just call the script with two arguments: the first argument is the filename of the Revelation export, the second argument is the desired output filename.
As it is a simple script, it will only work if you have all your entries stored in folders in Revelation. Having entries in the root element of the Revelation tree will not work, because KeePassX does not allow you to store individual entries in the root element (I hope this is clear enough).
Anyway, it's probably not a very good or elegant program, but it got the job done for me and might do the same for you.
If you find you miss some entries or parts of entries, it's probably the missing field tags that are the culprit. If you fix this, please send me a copy of the fixed script (the script is GPL'ed). If you cannot fix it yourself, tell me the problem, so if and when I have some spare time, I might look into it.
Sadly, neither Blogger nor the KeePassX forums allow attaching files to a post, so you'll have to mail me if you want to have a go. If there is actual community interest in the script, I'll try to find some place to publish it for real.
Disclaimer: I do not claim the script does what it should do perfectly. Please be careful. Please be careful to securely erase the XML files afterwards. Use the script at your own discretion and responsibility.
Update: I mailed the script to a couple of people who left comments below and it seems to be working pretty much okay. Send me an email at maxim at wzzrd . com if you want it.
Update 2: I finally found time to place the script online somewhere. You can download it here. I'd appreciate a comment if you download it to tell me how it worked for you.
Thursday, October 2, 2008
Utterly brilliant interview: SNL's Tina Fey does Sarah Palin
Thursday, September 25, 2008
VMware Workstation 6.5: the new stuff
First of all, the download already was pretty big, but is now officially vast. Weighing in at over 300MB you have a long wait ahead of you if you aren't on a high speed connection like me. I'm not seeing a lot of things in the release notes to justify a 100MB larger download, but there sure are some niceties, check this out:
* 3D hardware acceleration in Windows XP guests, which supposedly works if the host is running Linux (w00t!)
* Seamless Window support called Unity mode (I tried this and it actually works pretty well, but it's a bitch to set up: I received a myriad of errors before it suddenly started working)
* There is now a part of VMwareTools called a Virtual Printer Daemon. I'm guessing this has to do with the ACE improvements VMware announced
* A program called the 'Virtual Network Editor', which is a standalone option to edit the network settings on the host. It'll allow for more detailed and elaborate networking schemes. Probably has to do with improving ACE and implementing vaguely ESX-like features.
* My 6.0 serial number (which VMware gave me when I became VCP) still works!
* There is now a Python-based installer GUI. Not sure how this is important on Linux, since we all are tech gods, but hey, it doesn't hurt either.
* There is an 'easy install' feature, which enables unattended install of OS and VMwareTools for Ubuntu, Windows, RHEL and Mandriva (SuSE is apparently not jumping the VMware train, but solely gambling on their own Xen-based products)
* Modules are either built or provided for Intrepid (and thus kernel 2.6.27). Can't see whether they were custom built or not because of the GUI installer... No more vmware-any-any-patches! (For the time being.)
There's a lot more than this, but I gotta go do other things now :-)
Wednesday, September 24, 2008
World Day Against Software Patents
Tuesday, September 16, 2008
Rant: New keyboard
Anyway, I was a bit surprised to see about three brands available in almost every store. There's Microsoft, there's Logitech and there's a third, low profile brand, like Trust. That's not much for choice. On the other hand: Logitech and MS are the major players in this market.
I have this thing for bent keyboards. This is why I have had a MS Natural Keyboard Pro for ages. It's a pitty these beauties aren't for sale anymore (at least, not in major stores), because the Natural Pro was a one of a kind. It is bent, has a firm yet comfortable keystroke and has a built-in USB hub. Especially that last feature was brilliant. Just shove your USB stick into the keyboard and off you go. No messing with extension cords, no bending over your system in search of a free port, just shove it into the keyboard utterly brilliant.
It's quite commonly known I am not a great Microsoft fan. I don't like their software, their practices nor their EULA's. I do, however, like their peripherals. MS keyboards and mice are really good quality and tend to Just Work(tm), even under Linux. I still would rather not buy their goods though.
Back to the store. As I was checking out the shelves of keyboards and mice, I noticed another thing. All the slightly less crappy looking keyboards are wireless. Why? What's this with wireless keyboards? Wireless stuff needs either batteries or charging, go dead after a while, need software to display battery status, are inherently insecure and unreliable and so on, and so on. In general, wireless stuff sucks.
And why is it there are so little non-Microsoft bent keyboards? I was tempted to go for the one Logitech branded bent keyboard but it cost a shitload of cash and it's still just a keyboard. I don't need an on-keyboard zoom-wheel, I don't need several thousand multimedia buttons (though I admit a few are handy) and I certainly don't need that all to cost a fortune.
In the end, I left the store with some MS desktop combo, as I needed a mouse as well and this was a discounted article. Cost about €40 and that was about the cheapest combined offer.
So here's my request to Logitech: please build a bent keyboard, equip it with a USB hub, leave off most of the multimedia keys, leave the wire on it and sell it for about €20.
That'll save me from buying more stuff from The Vole and give me an extra USB hub again next time I need to buy a keyboard. Thanks.
Tuesday, August 26, 2008
gem update taking forever: the solution
One of the posts I read about this, mentioned that gem is a piece of **** and tries to load the whole of rubyforge.net into memory, which fails and / or takes forever on low memory machines. I know this to be true, because my old laptop (an HP Omnibook XE3 with 256MB), which I use as a server, has serious trouble updating my Rails gems. When I installed this machine with the server version of Ubuntu Hardy, I did what I usually do: the swap I created was twice as big as the RAM, so it has 512MB of RAM.
For updating gems, this seems to be too little. Yes, that made me cry too.
Adding more swap was not that easy, because I used up the entire disk for other stuff. Omnibooks don't have much diskspace. What to do, what do to?
Enter nbd. NBD allows me to share a swapfile from my desktop, which is then used as swapspace on my server. I can verify this works, because my server is updating it's gems as we speak, with a swapfile used over nbd. Pretty cool.
Is this hard to set up? Not at all.
First, we create a swapfile of about on the computer we want to share swapspace from. Do this with
$ dd if=/dev/zero of=/tmp/swapfile bs=1024k count=1024
The swapfile is now in /tmp. Then we make it a swapfile by running
$ chmod 777 /tmp/swapfile
$ mkswap /tmp/swapfile
Now, just install nbd-server and modprobe nbd on the computer you wish to share a swapfile from. On my computer, running an Intrepid Alpha, nbd-server did not create a stub configuration file during install. If there is no configuration file, nbd-server will not start. Just run
$ sudo dpkg-reconfigure nbd-server
to create on and use some sensible values, like pointing it to the file we just created.
Next, on the client, install the nbd-client package, modprobe nbd and run
$ sudo dpkg-reconfigure nbd-clent
as necessary, using the same sensible values. Tell it to use the nbd as swapspace.
Last, run
$ sudo gem update
succesfully :-)
Of course, if you have oodles of diskspace left, you can also create a local swapfile and use that. I didn't because a) I have no spare diskspace on the server and b) always prefer the over-engineered solution.
Notes:
1) The way I set up nbd above is insecure. Please keep this in mind. I am only using this for a gem update, so for me, this is not a problem. If you plan to use the nbd permanently, please, use a more secure setup.
2) I'm honestly not sure whether all the steps in the creation of the swapfile are necessary. I copied some of this from a tutorial on ubuntuforums about nbd. Credit to the poster of this thread.
This should be added to Google Docs!
Google eventually built it's own presentation software into Google Docs, but still it's a half win for me: they did add presentation software to Google Docs.
I'd like to offer another small prediction today, be it with a little less bravado. I'd like to predict Google will eventually either build or take over a concept similar to this. It's obviously bloody brilliant and very useful, whether you use it alone or in a group.
Friday, August 15, 2008
I really want a Jaiku invite
People claiming to have had Jaiku invites are all out of them now, the Jaikuinvites website seems all but dead (and not sending out invites in any way) and submitting your email address at Jaiku.com doesn't help either.
Jaiku was aqcuired by Google in late '07. It's now (almost) late '08. Jaiku is still invite-only and still not "assimilated" by Google like Writely was converted to Google Docs.
There was some talk about Jaiku being a 20% project at Google, which wouldn't surprise me seen the pace with which Jaiku seems to be evolving... Who knows, maybe Google silently killed off Jaiku...
Anyway, if you have some Jaiku invites to spare, please send me one :-) I'd like to convince myself it's not a dead service (yet)!
Update: flabbergasted... Less than a two hours after posting this, I received an invite and am now on Jaiku. Don't start spamming me for invites just yet: I haven't gotten any... Happy to be on Jaiku though :-)
Friday, July 25, 2008
Hell really froze over today...
Sunday, July 20, 2008
Aw fuck: Linux gone brainless^H^H mainstream?
Now, by itself, that is already too bad, since it was exactly the fact that gOS used to use Enlightenment that made me try it. Apparently, gOS switched to Gnome. That's a pity too, because Gnome based distro's come by the dozen. Ok, anyway, I download this 'Space' version. And was scared shitless...
First of all, you have to understand that the 'Space' here actually means 'MySpace'. Personally, I haven't been to MySpace. Not having been on that site, I cannot really claim I know what goes on there. But from what I hear the site's pretty popular, with kazillions of visitors. One would expect there to be some intelligent people within that crowd here and there, right?
So what s

I mean, personally I think it is a bit early to build a Linux-based desktop for brainless Paris Hilton wannabes, but I could be proven wrong at that. I am pretty sure however, that brainlessness it not something we want to encourage. Maybe I would be defendable to put links in the 'News' menu item to sites that bring news in a way youngsters find easy to digest. That I could have understood. But these links are without exception links to sites that bring completely irrelevant, non-news about Britney Spearsy, Paris Hiltony people who are utterly unimportant in the grand scheme of things. Coming to think of it, they are utterly unimportant in every possible way.
I read an interview with the founder of gOS a few months back in Linux Journal and he seemed a pretty decent fellow, so I really don't get where this comes from. Who's idea is it to shift focus from building a fast and innovative interface on top of Enlightenment to building yet another Gnome distro with built-in crap? Seriously, gOS has lost it.
What on earth is the purpose of a MySpace-centered Linux distribution? Who are you building that for? Why did you stuff it with links to brainless bullshit? Why did you try to build something following the complete opposite philosophy of OLCP (stimulate brainlessness instead of learning)? I'm not saying MySpace is brainless per se: I've never been there. But I am asking: what's this with people acting like news about Britney Spears is even remotely important? And why did you put that lunacracy in a distro that had potential and virtually destroyed it by doing so?
Thursday, July 10, 2008
Gnome 2.30 is Gnome 3.0?
Nevertheless, this also promises an opportunity to get away from some less-than-good design decisions from the past, getting your hands dirty with a new widget toolkit and maybe, maybe a better desktop ;-)
I'm anxious to hear more news about this!
Monday, July 7, 2008
EP screwing us over?
The French are cunningly trying to disguise copyrightlaw-like rules as part of the new Telecommunications directive; which it of course is not and should not be.
The French proposals include forcing ISP's to monitor and filter all traffic and to block traffic that *possibly* infringes on someone's IP. I do not want my ISP snooping around my traffic. Besides, I'm pretty sure we'll be the ones paying for this in the end.
I suggest we say 'no' to this rubbish. Please, contact a MEP of your choice and tell him so!
Wednesday, June 18, 2008
vmware-any-any-patches: the one list
- vmware-any-any-update-115
- vmware-any-any-update-116 (I just installed the latest WS (6.0.4-93057) on Ubuntu 8.04 with 2.6.24-19 and this patch is no longer needed!)
- vmware-any-any-update-117 (very unstable, according to author, use with caution!)
Update: find a newer version of the vmware-any-any-update-117 here. It helped me build the VMware modules (well, vmnet and vmmon) nicely!
Have fun!
Friday, June 13, 2008
Joining the frenzy: Zombie meme
My thought:You are in a mall when zombies attack. You have:
1. One weapon
2. One song blasting on the speakers
3. One famous person to fight along side you.
1. an M61 Vulcan. Oh yeah. Hard to wield, hard to avoid.
2. 'Sympathy for the devil', The Rolling Stones. Always.
3. Miyamoto Musashi. Kick ass.
Wednesday, June 11, 2008
Reaction to Invigorating GNOME
There is a good article here! I have almost exclusively used Gnome ever since I started using Linux (which is a pretty long time). The transition to Gnome 2 was a wonderful one and Gnome 2 was, at the time, very innovative. However, I’m not sure Gnome is at all innovative anymore. Useful for the individual, yes. Stable, yes. Pretty even. Gnome is a solid platform, but honestly, to the average user, little has changed since Gnome 2.0. That could be either a good thing, or a bad one.
It is a difficult question as whether great innovations should be radically implemented or gradually. You write Gnome misses leadership at the moment (and thus vision). This makes either next to impossible: without leadership, no-one will sanction radical changes, and without leadership, no-one can ensure big changes to be implemented over a prolonged period of time.
Over the past few years, there have been some radical ideas about the future of Gnome (one of which was the position of Mono in the Gnome environment, iirc). Some of these were good, some of these were not (I’m still grateful for the small position Mono has now), but imho most of them were either aimed at cosmetics and / or relatively small functionality enhancements (like the recent combining of multiple copy progress bars in one window). If I understand the buzz correctly, GTK3 is about interfaces too. Interfaces are nice, but Gnome is missing key functionality. And functionality is what wins the day for you.
My personal opinion is that Gnome should aim more at corporate desktop features. I work at implementing Linux desktops a lot and I can easily name a bunch of features Gnome would profit from immensely. Some of these are readily available in KDE, by the way, which is the main reason I often choose to implement KDE, even though I personally prefer Gnome.
Gnome would benefit from:
- the possibility the really lock a desktop environment. Sabayon has great potential, my experiences with it are far from ideal. Let’s say I have yet to see it do what it is supposed to do. Apart from that, it offers too few options. KDE’s kiosktool is a lot more functional (assigning more than one profile to a user, to stack them, so to say; really locking away the commandline; locking a lot more settings, like wallpaper, theme etc.)
- Firefox and OpenOffice.org should integrate into Gnome more, possibly with a gconf backend for settings. Admittedly, I don’t know how much effort this would cost, and whether this is actually desirable, but integration would be good (for user profiles and Sabayon, again). I think OOo and FF integration is a neccessity, because Epiphany and Abiword / Gnumeric are just not good enough for a corporate desktop. The way KOffice is moving along, it might provide a viable alternative to OOo, but I don’t it will integrate into Gnome very well ;-)
- Evolution should have mapi support and thus real support for Exchange 200[037]. Novell is working on this, I believe. This would really benefit the Linux desktop. - there is no easy way I know of to scale the used iconset in total (use smaller icons everywhere); on several occasions, I wanted a desktop with smaller icons and smaller fonts. A lot of iconsets are SVG, so this is expected functionality, ifaic.
- it’s all very cool GVFS understands webdav, but in my experience SMB / CIFS performance is poor, though that is an important feature for corporate desktops.
That’s just a few Gnome specific ones. I’m tempted to write a list with features the Linux desktop misses in general, but this probably isn’t the place.
I know for a fact a lot of governments and corporations are looking into replacing their Windows desktops with Linux or at least providing an alternative to the established Windows environment. I also know for a fact, that most of them are looking into KDE, no matter how hard different Linux vendors support & push Gnome.
To summarize, the way to go would be: aim at corporate desktop, provide good possibilities to communicate with existing infrastructure (mainly Microsoft stuff, like fileservers and Exchange) and provide solid locking / deployment tools, like a working and enhanced version of Sabayon.
Saturday, May 31, 2008
VMware Tools kernel support status for VMware Workstation 6.0.4
Wednesday, May 28, 2008
Do the exploits for the recent Adobe Flash 0-day affect Linux?
No. Research shows that Linux is no more vulnerable for this specific than it was for the Storm worm. The exploits currently in the wild specifically target Windows. .exe files usually do, and that is what this exploit is made out of: .exe files.
The fact that downloaded .exe can be executed without any alterations in the file (setting and execute bit, for example) makes exploiting this vulnerability a lot easier on Windows.
Nevertheless, know that though the *exploits* do not work on Windows, the hole in Flash probably *does* exist on all platforms. The version on my Ubuntu box is one of the flawed ones mentioned on the SANS pages. So it might be possible to exploit the hole on Linux. It just won't be that easy and honestly, not as rewarding either. There's a lot less of us, and there's even less of us that are going to be so helpful as to chmod +x the exploit files ;-)
Edit: I am not a Flash developer, Mozilla developer or anything like that. The above is not a guarantee your Linux box won't be hacked through any of these exploits and vulnerabilities: I have been known to be wrong, on rare occasions.
Tuesday, May 27, 2008
Layout change
Wednesday, May 21, 2008
Petition for an open European parliament
Thursday, May 15, 2008
Adobe leading the way? Of all people?
I noticed a couple of things which you might find useful. First of all: Flash 10 seems to have Pulseaudio support built in. That *is* good. I removed the old player, removed the extra lib in installed (see this post) and downloaded the beta from here. It's a matter of downloading, untarring and running the packaged installer. Yes, you read it correctly: "installer". And it actually does more than just copying the file: it does a lot of checks on architecture, browser, directory, version of glibc etc.) .
Second: it seems amazingly stable for a beta. Admittedly, I haven't tried to do a lot with it yet, but playing a couple of videos over different tabs of Firefox and playing Rhythmbox at the same time works wonderfully. No crashes, mixing is nice (install pavumeter and pavucontrol for this, trust me.) and...
Three: it's amazingly fast. For the untrained eye of sub average Flashplayer user (that's me), the opening sites like Youtube.com is fast and smooth. Again, I admit, I'm not a heavy user, so if someone tells me tomorrow Flash 10 is just a recompile of 9 with a different version number: sorry :)
Anyway, I'm using too many words again. Point is: Flash 10 *might just rock*. And it's from that company that never took Linux very seriously. Well, things can change...
Tuesday, May 6, 2008
Sound problems in Hardy? Multiple sources not working?
For me, the situation was as follows: I have an Intel HDA sound chip on my mainboard. Very low tech by today's standards, but otherwise works fine. My sound setup was the default as I had done a fresh install Hardy. This gave me a sound setup that either work for Pulseaudio (which is a drop-in for esd), so I had Rhythmbox working, or worked for Firefox (Flash), depending on which I started first. That sucks. Sometimes you want both at the same time, or just pause on to run the other, not closing it completely.
I think I have that working now pretty well. This is how it goes:
- First, install some extras: libflashsupport, libasound2-plugins and libsdl1.2debian-pulseaudio. These are libs to support Pulseaudio for Adobe's Flash, for Alsa and for SDL. The SDL lib will replace the default Alsa backend for SDL. The Flash lib will need no extra configuration, but I hear this is notoriously instable. I haven't noticed this myself, but ymmv.
- Now either create a /etc/asound.conf file, or a .asoundrc in your home. I have both, but then again: I have been tinkering.
- This is what goes into your /etc/asound.conf:
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
} - Then run "asoundconf set-pulseaudio" to fix up your personal Alsa configuration to redirect to Pulseaudio.
- Profit!
I know libaflashsupport was left out intentionally and that it is prone to destroying everything in a 5 mile radius rather frequently. But it hasn't done so for me yet, so for the moment, I'll settle for using it and having sound instead of not using it and not having sound :)
For more information, try reading through this bug.
Monday, May 5, 2008
Installing VMware Workstation 6.0.3 on Ubuntu 8.04
- Download and tar zxvf the tarball from vmware.com
- cd to vmware-distrib and run the vmware-install.pl perl script
- When the installer asks you whether it should run the vmware-config.pl for you, answer no. The installer then quits.
- Now, download the vmware-any-any-patch, preferably from here
- Untar the patch in, say, /tmp. Then cd to /tmp/vmware-any-any-update116 and execute the runme.pl perl script.
- Continue through the whole script and fire up VMware Workstation as normal :)
Sunday, April 27, 2008
First Dilbert, now Foxnews?

It seemed I wasn't the only one to notice this new "functionality" and the lack thereof on dilbert.com. Hordes of people discussed the new Flashyness of the website on Slashdot, for example. Eventually, the official Dilbert blog reacted, telling us all would get better soon. And behold: it did. I just tried the mash-up and animated cartoon pages and they work fine on my brand new Hardy box running FF3.0b5, as you can see on the right here.
All in all, the issue seem both fixable and unnecessary: the site works fine on Linux.
The message about your OS that appeared at the Dilbert.com website, now also appears on foxnews.com, as reported here. Normally, I don't watch or read anything related to Fox, but I just had to try this: the message is *exactly* the same as it was on Dilbert.com.
This tells me that the check for Windows and / or Mac OS X, previously in place at dilbert.com and currently in place at foxnews.com, was nothing but a phony test for user agent strings. And more importantly, it's probably part of some lame embedded Flash package for a blog or CMS engine.
In 2008, such tests are considered evil. If that package is yours, please, remove that silly test from it now. We'll act like it never happened and just say it was an easy mistake to make. Even though it isn't.
Wednesday, April 2, 2008
Speak out, boycot the Olympics!
Up to now, not a single nation has stepped forward and seriously condemned the way Chinese troops squelched the uprising in Tibet. Not *one* country was courageous enough to tell China to back off. Not the USA (always willing to step forward, as long as it's about oil), not the EU (sorry, we couldn't reach consensus) and not the UN. Sure, there were some protests, but all of these were feeble, at best.
I call for a boycot of the the 2008 Olympics in Beijing.
Check the following links for more information about this subject.
- http://boycott2008games.blogspot.com/
- http://www.rsf.org/rubrique.php3?id_rubrique=174
- http://www.olympicwatch.org/
Tuesday, March 25, 2008
South Park online!
Saturday, March 22, 2008
corefonts for the web? liberation fonts ftw!
The problem is, that though MS released the fonts for free at the time (until 2002), the fonts never have been *really* free. Apart from that, Microsoft cancelled the core fonts program in '02. The fonts are still available on the net and the license states redistribution is allowed, but obviously we are left in the dark a bit, since Vista ships with a new set fonts and if I'm truely honest, I'ld rather not use anything create by Microsoft. Can't help it. It's stronger than me...
Now, this might be okay if you are a Windows or Mac user (Apple licensed the fonts back in '07, so they are probably installed on your Mac), but it's not okay with me. I want my software to be *really* free if even remotely possible. Therefore I recently stopped using the msttcorefonts package on my Ubuntu 8.04 machine, because there is a solution and it's *really* free!
We have been able to enjoy free fonts like the Bitstream Vera fonts and the derivate DejaVu fonts for some time now. Most free software users know this. Less people know, however, that Red Hat released the Liberation fonts in 2007. The first release has partial hinting and is probably good enough for most uses. The second release - and I'm not sure which ones Ubuntu offers yet - has full hinting and has at least been released to Red Hat bugzilla.
Anyway, to make a long story short, if you want to use Arial, Times and Courier compatible free fonts, install the Liberation fonts on your box. Free is good.
Technorati Tags: linux, fonts
Monday, March 10, 2008
New gadget!
Sunday, February 17, 2008
Building mysql gem CentOS5: hell
It's all easy while you're installing ruby and mysql. It's just some yum stuff until there. You pull in rdoc, ri and the lot through yum too. But then the hurting starts. First of all: rails does not exist on CentOS / RHEL. Neither does rubygems. Luckily, installing rubygems can be done simply by downloading the package from here, untarring it and running 'ruby setup.rb'. Still easy? Yes, it is.
Then, of course, you need to install rails itself. This you do, by typing 'sudo gem install rails' (or 'gem install rails -v 1.2.3' if you're stuck on using an older version, like me). This all worked like a charm, even though it would have been nice to have an RPM for rubygems and rails.
But then you're on your way to pain: there is no ruby-libmysql package on CentOS or RHEL. The mysql gem I wanted to install instead didn't like me very much. When I ran 'gem install mysql', I received this error:
checking for mysql_query() in -l/usr/lib/mysql/libmysqlclient.so.15.0.0... noOuch.
checking for main() in -lm... yes
checking for mysql_query() in -l/usr/lib/mysql/libmysqlclient.so.15.0.0... no
checking for main() in -lz... yes
checking for mysql_query() in -l/usr/lib/mysql/libmysqlclient.so.15.0.0... no
checking for main() in -lsocket... no
checking for mysql_query() in -l/usr/lib/mysql/libmysqlclient.so.15.0.0... no
checking for main() in -lnsl... yes
checking for mysql_query() in -l/usr/lib/mysql/libmysqlclient.so.15.0.0... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include=${opt-dir}/include
--with-opt-lib
--wiotherthout-opt-lib=${opt-dir}/lib
[...]
It seems I wasn't the only one having trouble installing the mysql gem. At least a couple of sites talked about more or less the same problem. The last one (Mr. Matt) was the most helpful, though the post there did not completely solve my problem. Mr. Matt suggests running 'gem install mysql -- --with-mysql-config=/usr/bin/mysql_config' in order to fix the build error. This was not enough for me to do it. I don't know on what version of CentOS he runs, but for me, on CentOS 5.1, I needed 'gem install mysql -- --with-mysql-conf=/usr/bin/mysql --with-mysql-lib=/usr/lib/mysql'. For some reason, the buildscript kept trying to load libraries from /usr/local/lib instead of /usr/lib (or so it seemed, anyway).
The extra option fixed my problems. Hopes this helps.