Don’t mess with libc (Fedora 8 to Fedora 9)

April 1st, 2008

Yesterday, I tried to upgrade my Fedora 8 test installation to Fedora 9 Beta using yum. The upgrade worked fine, after a 1.1GB download I could reboot, but only with the old Fedora 8 kernel. Fedora 9’s 2.6.25 kernel segfaulted right after the “uncompressing linux” message by displaying some libc.so errors.

So I felt smart, and thought that I could probably resolve this problem by installing F9’s glibc and glibc-common packages with yum.

I tried to uninstall them with an rpm -e glibc glibc-common, but these package had a lot of dependencies. Well, not a big deal…rpm -e glibc glibc-common –nodeps (remember, I felt smart).

Fatal error! NEVER try this at home kids! My system was obviously dead, I couldn’t even reinstall the new versions as yum relies on these packages :)

Why do people laugh at creationists?

March 31st, 2008

A friend told me to look at the Why do people laugh at creationists?” videos on YouTube. It’s amazing how these creationists (aka Intelligent Design) can be stupid by mixing religion and science. The scary thing about these people, is that they use pseudo-scientific explanations that uneducated people could easily believe, everyone with a little knowledge should fight them.

Ok, here is one video of the series…it’s depressing. Why is the media covering these people in the first place?

Geeky comics

March 28th, 2008

A guy pointed out a very funny and geeky website on the fedora-fr forum today: xkcd: a webcomic of romance, sarcasm, math and language.

Prepare yourself to lose the next 2h of your life on this website :)

rsync on a Linksys NAS200 NAS

March 26th, 2008

Because the price of electricity rose by about 20% in my part of Switzerland during the last months, I was searching for a low-power backup solution for some servers. The Linksys NAS 200 seemed to be the perfect solution: a small box with an open source firmware based on a Linux 2.6.9 kernel. So I ordered one with 2 500GB SATA disks, planning to run it as an rsync server.

Read the rest of this entry »

Fedora 9 Beta

March 25th, 2008

A simpe and short post to announce that the Beta of Fedora 9 is out, grab the ISO’s here and read the release notes here :)

Unix Toolbox

March 24th, 2008

I have seen this link on a forum: http://cb.vu/unixtoolbox.xhtml

It’s called “Unix Toolbox”; a page listing the most used UNIX commands, classified per category: System, Processes, File System, Network, SSH SCP, VPN with SSH, RSYNC, SUDO, Encrypt Files, Encrypt Partitions, SSL Certificates, CVS, SVN, Useful Commands, Install Software, Convert Media, Printing, Databases, Disk Quota, Shells, Scripting and Programming.

As a sysadmin, I find this handy, and it’s a really nice reminder :)

Print to PDF in Fedora

March 23rd, 2008

A very useful and nice thing in Apple’s OS X, is that you can print to a PDF file from any program. This can also be achieved under Windows with PDFCreator. At its core, it’s “nothing more” than a virtual printer. I use this feature a lot, so how can this be done in Fedora 8? How hard can it be?

Well, it’s easy, fire up a terminal as root and type:

  • /etc/rc.d/init.d/cups start : the CUPS (Common Unix Printing System) service needs to be started if you wish to have the pdf-printing support. I recommend that you start it automatically at boot time.
  • yum install cups-pdf : installs the pdf-printing component for CUPS

You’re done, now you can print to the CUPS/CUPS-pdf printer from almost any program, including Firefox. Neat to save web pages.

/dev/null 2>&1 explained to humans

March 23rd, 2008

If you ever made a cron job, or a script that executes something and produces an output in the console, you are probably familiar with the fact that piping it to /dev/null 2>&1 can silence it :)

But do you really know what this command is doing, or what the 1 and 2 mean? I found a damn good article on a blog just about that: explain pipes, standard in, standard out and errors to human beings.

It’s on http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean, a must read!

OpenJDK everywhere soon

March 23rd, 2008

This morning, I stumbled across an interesting post about OpenJDK, the Open Source implementation of Sun’s Java JDK. It should soon be available as a simple to install rpm in Fedora, which is GREAT news for all the Java developers out there. This is precisely one of the features that I need to completely stop using Windows: NetBeans with a solid JDK and an easy install process.

Enough talk, head to http://cgwalters.livejournal.com/14310.html and get the info from the source :)

Getting PostgreSQL to work in Fedora 8

March 22nd, 2008

A very frustrating thing in Fedora 8, is installing PostgreSQL 8 via yum. It all starts in a very nice way:

yum install postgresql postgresql-server and yum install phpPgAdmin if you want a nice web interface to manage your database.

But now what? Where the hell should I look to find further documentation on what these rpm’s just did? Did they create a default database user, what password to use then? It’s not clear at all for the novice user.

Read the rest of this entry »