Wanna see this logo while booting your 2.6 kernel? Click here!

27.09.2006 16:28

The Top Ten Unix Shell Commands You Use

According to some recent postings in many other weblogs I was also interested what my top 10 unix commands on my box@work are, and well, my result is different from most others I have seen:

As user:
     75 ssh
     70 cd
     59 ls
     44 su
     31 telnet
     21 ping
     19 vi
     17 vim
     14 apt-cache
     10 glxheads

As root:
    109 cd
     83 ls
     48 apt-get
     24 vim
     22 ping
     19 du
     14 rm
     13 vi
     12 cp
     11 grep

BTW: The command to get this top ten list may look like this one:
history | awk '{print $2}' | sort | uniq -c | sort -rn | head -10

27.09.2006 10:59

roundcubemail and german umlauts

Today one of my users experienced the first problem with the new webmail software roundcubemail.
He wasn't able to login with his password which contained german umlauts (ä, ö, ü, ...). After having a look at the rcm source I found out that the problem was in the imap.inc library (originally written for the ilohamail webmail software) and was quite trivial after all.

After finishing this blog entry, I'll drop the maintainers a line but in the meantime, here goes the patch:
--- imap.inc.orig	2006-09-27 10:51:22.408713456 +0200
+++ imap.inc	2006-09-27 10:50:26.982139576 +0200
@@ -225,7 +225,9 @@
 function iil_C_Login(&$conn, $user, $password){
-    fputs($conn->fp, "a001 LOGIN $user \"$password\"\r\n");
+    // $passwords needs to be utf8_decode'd so that the german umlauts don't
+    // get corrupted. Updated by php@tuxx-home.at, ag
+    fputs($conn->fp, "a001 LOGIN $user \"" . utf8_decode($password) . "\"\r\n");
 	    $line = iil_ReadReply($conn->fp);
The patch has to be applied to the file "program/lib/imap.inc".


25.09.2006 17:08

New webmail software

After being unsatisfied with squirrelmail for a long time now I finally made the decision to switch the webmail software. But to what? I did some research and found at first ilohamail which looked promising but doesn't seem to be still supported (the website was down) and by trying to modify the default skin I missed some stylesheets to edit...
Well, by checking out the (offline) ilohamail website with the help of google's cache I found a blog entry saying something about a "spin-off" project called roundcube webmail which uses ilohamails IMAP library but has some Web 2.0 features embedded. After looking at the first screenshot I definetly had to try this software out and got the latest nightly svn.

Installation worked like a charm out of the box without any problems and the system is now up and running and I'm very satisfied with the fresh taste of this application.
Of course, I'll have to check it out in the next few days, but it seems to fit my needs perfectly.

25.09.2006 11:18

Website problems

Today I finally migrated this website (and all others on this server) to Apache 2.0 because the old Apache 1.3 did cause some unavailabilities the last few days.
I wasn't able to figure out what was wrong with it but the log messages weren't very informative so I decided to make the step forward.

If you experience any problems with the new webserver, please tell me.

21.09.2006 15:04

Bugfix for the latest unofficial Matrox Parhelia driver

According to this posting in the Matrox General Linux support forum I provide a new unofficial version of the latest official mtx driver.

As this patch comes before my scheduled release, I named it


Thanks again to Christopher Montgomery for pointing this issue out and providing the patch!

08.09.2006 09:44

apt-proxy: Patch for making the '~' characters in URIs work again

Today I returned from my vacation and finally got myself some time to fix the apt-proxy issue where apt-proxy can't handle the new '~' characters in Debian's package names.
To me it seems as if the problem is caused by the python urlparse module, but as I'm no real python programmer, I don't know for sure.

I filed a bugreport at the Debian BTS, but until now it is not online...

Anyway, here's a patch that solves this issue by working around this issue. The patch has to be applied to the file "/usr/share/pycentral/apt-proxy/site-packages/apt_proxy/apt_proxy.py".

--- apt_proxy.py	2006-08-15 00:00:45.000000000 +0200
+++ /root/apt_proxy.py.new	2006-09-08 09:07:49.849166662 +0200
@@ -182,6 +182,10 @@
         self.scheme, netloc, self.path, parameters, \
                      query, fragment = urlparse.urlparse(uri)
+	# ``~`` are allowed in urls!!!
+	self.path = self.path.replace("%7e", "~")
         if is_rsync:
             self.scheme = 'rsync'
@@ -284,6 +288,10 @@
     def clean_path(self, uri):
         # Clean up URL given
         scheme, netloc, path, params, query, fragment = urlparse.urlparse(uri)
+	# ``~`` are allowed in urls!!!
+	path = path.replace("%7e", "~")
         return os.path.normpath(path)
     def not_modified(self):