Dec 142011

Roundup has a XML-RPC API which can be used by external programs to get the data about the issues. Unfortunately there is some work to do before the API can be used with Apache2 (read about my setup here):

  1. XML-RPC method of cgi/ does not set ok_message and error_message which are used by the extension I added to my roundup setups. The fix is that the following code needs to be added to handle_xmlrpc(self) somewhere about line 372:
    self.ok_message = []
    self.error_message = []
  2. The method which gets the credentials using HTTP_AUTHORIZATION does not set client.user which is used by the extension so I added some code to the extension which sets that variable if it is set to None:
    if self.client.user == None:
    self.client.user = username

    Just add it to verifyLogin(self, username, password) (about line 80).

  3. Apache2 needs to pass the “Basic Authentication” data to the CGI script. The following mod_rewrite rule does that:
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
Nov 172011

After resuming my laptop from suspend (doesn’t matter whether from RAM or hard disk) the WLAN connection was broken. Reloading the card’s kernel module fixed the problem. To let pm-utils do this everytime the system is suspended you just need to add a config file to /etc/pm/config.d/:

[bash]SUSPEND_MODULES="<your module here>"[/bash]


Nov 152011

Today I did an upgrade of my system from openSUSE 11.4 to openSUSE 12.1 (I know, it is going to be released tomorrow, but I could not resist :-)). Somehow the Tumbleweed branch I would like to use seems to depend on this upgrade, maybe because of systemd. Anyhow the upgrade worked seamlessly although I did it while using the system (some applications decided to hang or crash at the end but after an obligatory reboot everything was stable again, in spite of the fact that KDE 4.7.46 is installed). As I do not want to write too much now here are some impressions of the new version:

Systemd seems to start the system a lot faster than System-V-Init did and the Gallium architecture is pretty good, too (using it with an older Radeon card). There are some small graphic issues but that’s okay. Qt’s raster rendering system is much faster than the default one: KMail, Systemsettings, Plasma and all the other KDE programs react very quickly now (I explored a setting for the rendering system in Systemsettings after the upgrade). Apper is a nice application but I will probably stick to zypper ;-). Finally openSUSE mounts my NFS share correctly, before KDE is started so Bangarang can start instantly to play my music.

Thanks to the openSUSE people for making this upgrade possible :-).

Nov 092011

Today I discovered Unison. It seems not to be in active development anymore but it is rather stable and feature rich. But what is it for? As one can guess from the title that it synchronises two folders in both directions. There can be many profiles for different pairs of folders in which one can define which subfolders to exclude, that symlinks should be followed and so on.

Below I want to show how I configured Unison and integrated it into KDE.
At first Unison needs to be installed. On OpenSUSE zypper install unison was working quite well.
Now Unison can be started by executing unison.
The GTK+ interface of Unison opens and presents a wizard which allows you to configure the profile. Unison’s main window looks like this:
“Rescan” allows to scan the files in both directories. Unison selects a default action which says that the file or folder is copied to the other folder if you click on “Go”. The buttons “Right to Left”, “Skip”, “Left to Right” and “Merge” allow you to define another action if Unison did not detect the right one. In order to change the current profile click on “Change Profile”:
The current profile can be changed by selecting another profile and clicking on “Öffnen” (English: “Open”). “Bearbeiten” (English: “Edit”) allows to set some special properties:
At the bottom a description of the selected “fat” option can be seen. The “follow” option contains a list of symlinks which should be followed rather than ignored. The dialog which allows to set other properties (you can open it by clicking on “Hinzufügen” (“Add”)) lists some of them (the others can be shown by checking a checkbox). Every property has its own description which tells you a lot about it.
After setting up the profile correctly I wanted KDE to show me an action “Synchronise” if my flash drive “JanGerrit” is plugged in. This can be achieved by opening the “Device actions” KCM:
“Hinzufügen” (“Add”) allows to create a new action. There you need to set the command to /usr/bin/unison <ProfileName>. In order to not show the action for every flash drive but only for the flash drive the profile is for you can edit the second condition to check for the device’s label or another unique property.
The following links provide some information:
As always: comments are very much appreciated. You may comment on my language as I really want to improve it or the content as well as on any other thing you notice.
Oct 252011

Ich habe vor kurzem einen OpenPGP-Schlüssel erstellt. Er ist auf mehreren öffentlichen Schlüsselservern verfügbar und hat folgenden Fingerabdruck:

6CF9 A4A0 83CC AFD8 59E2 E8CE F348 BFBC 1FD4 E253

Sein Ablaufdatum ist der 20.10.2021, aber wenn der Schlüssel dann noch benutzt wird werde ich es verlängern.

Hier ist die englische Version des Artikels.

PS: Das ist mein erster deutscher Artikel in diesem Blog :-).

Edit: Und ein Fehler weniger.

Oct 252011

I recently created a OpenPGP key. It should be available on several public key servers and has got the following fingerprint:

6CF9 A4A0 83CC AFD8 59E2 E8CE F348 BFBC 1FD4 E253

The key’s expiration date is in October 2021 but I will update it if the key is still in use at that point.

Oct 242011

At first the DVD has to be copied to the hard disk (there is only one DVD drive available here) using dd:

[bash]dd if=/dev/cdrom of=<path>[/bash]

Second the image has to be written to the DVD using growisofs:

[bash]growisofs -dvd-compat -Z /dev/dvd=<path>[/bash]

My sources are:

Edit: URL->hyperlink

Edit 2: < and > should be displayed correctly now

Oct 222011

During the last two days I fixed two bugs regarding Kill Runner and two other runners.

  1. Spell Checker, Audio Player Control and Kill Runner did not honour their configuration because of a name mismatch in the code and the desktop file. They used the default configuration all the time. A mail on the plasma-devel mailing list mentions the commits.
  2. Kill runner did not kill processes properly. This was because of missorted kdesu parameters. After reordering them I remembered that I wanted to get rid of kdesu as some distributions use kdesudo and not kdesu. So finally I removed the kdesu code completely and replaced it by a call to kill using the process’s PID and the current user’s rights. If that fails a call to a KAuth::Action provided by KSysguard which sends the SIGKILL resp. SIGTERM signal to the process using root’s rights is made.

Edit: I hate typos.