Don't understand german? Read or subscribe to my english-only feed.

Nein, es geht nicht…

October 14th, 2005

Man glaubt es kaum, aber 20 Stück von diesen Solletti wollen innerhalb einer Minute wirklich nicht im Magen verschwinden. Natürlich nur, wenn man dazwischen nichts trinken darf. 8-)

Wer sich jetzt fragen sollte wie ich darauf komme: im TV davon gehört und dann natürlich selbst probiert. ;-) Und jetzt soll mir niemand mit dem Toastbrot kommen!

QEMU: fast processor emulator

October 12th, 2005

Many of you might know the emulator QEMU. This emulator converts each target CPU instruction into host instructions so you can boot another OS without leaving your current running system. Wernfried ‘amne’ Haas tested the current development ISO of grml snapshot with QEMU and he mentioned some features which let me take a closer look at it. ;-)

KQEMU is the “QEMU Accelerator“: the QEMU Accelerator Module increases the speed of QEMU when a PC is emulated on a PC. But: it is not open source:

The QEMU Accelerator is free to use, but it is a closed source proprietary product. You are not allowed to distribute it yourself to other people without an explicit authorisation. Distributors wishing to include the QEMU accelerator on CDs, ISO images or packages must contact the author to know the exact terms.

But if you can live with that just download the sources and compile it against the kernel headers matching your running kernel. Then ‘modprobe kqemu’ and you should see something like this in syslog:

QEMU Accelerator Module version 1.2.0, Copyright (c) 2005 Fabrice Bellard
This is a proprietary product. Read the LICENSE file for more information 
Redistribution of this module is prohibited without authorization
KQEMU installed, max_instances=4 max_locked_mem=128048kB. 

If you start QEMU now (for example: ‘qemu -boot d -cdrom grml_0.4.iso’) you can check KQEMU-support via switching to monitor mode pressing ctrl-alt-2 and typing ‘info kqemu’. If you get ‘kqemu is enabled’ it works as intended. Using the Debian unstable package did not work for me. :-( Therefore I created a Debian package based on the current upstream sources, a patch from bugreport #321232 and kqemu enabled. If you want to use my Debian package get it from the grml-repository.

Wernfried also mentioned the “snapshot feature”. This feature saves the whole virtual machine state to a file and you can restore it later again. Just switch to monitor mode (again: ctrl-alt-2) and use the command “savevm $FILENAME”. Load the VM again via running “loadvm $FILENAME”.

BTW: I wrote a mail to Fabrice Bellard asking for permission to provide the kqemu-kernel-module with the upcoming grml-release. Let’s see what’s the result. ;-)

PCAN und Linux

October 11th, 2005

Ich bin ja jetzt im Robocup-Team der TUG. Da wir dort PCAN-Dongles mit Linux verwenden, möchte ich wieder mal Google mit Hardware-und-Linux-Informationen füttern. Genauer: wir haben PC-Parallel Port zu CAN Interface der Firma Peak-System im Einsatz. Da das verwendete Linux auf einem grml-System inklusive einem grml-Kernel basieren wird (mit Optimierungen natürlich), habe ich den unter der LGPL stehenden Quellcode von Peak-System genommen und er liess sich stressfrei gegen den aktuellen 2.6.13-grml bauen:

# modprobe pcan ; tail -3 /var/log/syslog
Oct 11 08:56:41 grml kernel: pcan: release_20050719_u
Oct 11 08:56:41 grml kernel: usbcore: registered new driver pcan
Oct 11 08:56:41 grml kernel: pcan: major 254.
# cat /proc/pcan
*--------- PEAK-Systems CAN interfaces (www.peak-system.com) -----------
*-----------------------  release_20050719_u  --------------------------
*------------------ 0 interfaces @ major 254 found ---------------------
*n typ ---base--- irq ---read--- ---write-- ---irqs--- ---error-- status

M$ Office und Internationalität…..

October 10th, 2005

Meinen wöchentlichen Schocker (manchmal auch täglich) verleibt mir M$ Office ja bereits, aber heute kam eine schon länger verdrängte Situation wieder hervor: “Regionalisierung” von Funktionen in Excel. Wie bescheuert kann man nur sein, Funktionen wie ‘mittelwert’ anzubieten? Ich kenne da Studenten von der KF-Universität, die dann nur ‘mittelwert(…)’ kennen (ja, die studie^Wlernen das wirklich so). Wenn sie dann vor ein nicht-deutsches Office gesetzt werden, verzweifeln sie. *tischkante_beiss*

Visualisation by Nepenthes

October 7th, 2005

image of map by nepenthes visualisation

The nepenthes team has build a map showing in real time the guessed location of a computer who sent a virus to one of the reporting nodes. Take a look at it: nepenthes.sourceforge.net/visualisation

Pointer via disLEXia 3000 blog.

A1 Netzausfall…

October 7th, 2005

Ich bin nicht wirklich erfreut (da es mich betrifft). :-(

Liebe Kunden von mobilkom austria,

wir möchten Sie informieren, dass es derzeit in der Steiermark sowie
im südlichen Burgenland zu Netzausfällen kommt. Grund für die Ausfälle
ist eine Überlastung des Netzes nach dem Einspielen einer neuen
Software. An der Behebung wird mit Hochdruck gearbeitet - die
Störung sollten bis 15:30 Uhr behoben sein.

Danke für Ihr Verständnis!
mobilkom austria

Quelle: A1.net

Haben die Jungs das ‘Genuine’ Windows-Update eingespielt und die Raubkopie streikt jetzt? 8-)

Klappe!

October 7th, 2005

Heute in #grml (Fipptehler und Unrelevantes beseitigt):

Zugschlus: Ist 'Klappe' wirklich ein Austriazismus für die Durchwahl in Telefonanlagen?
mikap: Zugschlus: jupp
Zugschlus: mikap: nie gehört. Klingt aber lustig
mikap: Zugschlus: hehe
mikap: Zugschlus: ist aber eher altvatrisch, hört man eigentlich so gut wie nie
amne: mikap: klappe!
amne: hin und wieder hört mans dann doch ;-)

Zeugen gesucht!

October 7th, 2005
Zeugen gesucht!

Wer hat folgenden Vorfall beobachtet: Dienstag früh ereignete sich an einer Innenstadtkreuzung
folgender Zwischenfall: Ein Autofahrer, dem - nachdem die Ampel von rot auf grün geschaltet
hatte - der Motor abstarb, wurde nicht angehupt oder mit Schimpfnamen bedacht.

Das ist gerade auf www.graz.at zu lesen. Ich weiss nicht, wie oft ich das dann noch mal langsam durchgelesen habe. Da ich den Text via Mail hereinbekam und noch nicht weitergescrollt habe, wollte der Parsing-Teil meines Gehirnes einfach nicht so wirklich mitmachen. Das Licht ging mir aber erst auf, als ich weitergelesen habe:

Wenn Sie diesen oder ähnliche Vorfälle beobachtet, eigene Erlebnisse und Eindrücke von Graz zu
berichten haben oder sonst stolz auf Ihr Graz sind, schicken Sie bitte eine SMS oder Foto-MMS
an 0664/6600 316.

Sachdienliche Hinweise vom 1. - 31. Oktober im Foyer des Kunsthauses Graz oder auf
www.meingraz.at.

Ich finde den Text und die Idee dahinter wirklich nett. :-)

Tolle Fehlermeldung…

October 4th, 2005

Zwei Tage Arbeiten unter Windows und ich sehe schon wieder Fehlermeldungen und Fehlverhalten, dass einem schlecht wird. :-( Dem aber nicht genug, daheim angekommen durfte ich mir jetzt einen Rechner anschauen, bei dem WinTV (das Programm zum Fernsehen) nicht mehr tut. Fehlermeldung:

Error: can not locate Capture filter (Hauppauge WinTV USB Capture)
can not Build Filtergraph
WinTV Initalization Error!

Na, wer kann die Ursache ohne Google erraten? Lösung: die Graphikkarte war schlampig im Rechner, ergo gar nicht vorhanden. Hmpf…

abcde: A Better CD Encoder

September 29th, 2005

“Grab an entire CD and compress it to Ogg/Vorbis, MP3, FLAC, Ogg/Speex and/or MPP/MP+(Musepack) format.” I just had to grab a single track from a CD and as abcde is soooo easy to use I just wanted to make sure you also know this piece software. If not: take a look at it!

Quanten, Felder, Schwarze Löcher an der TUG

September 29th, 2005

*

In dieser Vortragsreihe wird versucht, spannende Themen der modernen Physik einer breiteren Öffentlichkeit näherzubringen – Studierenden anderer Fachrichtungen, aber auch Schülern und allgemein an der Physik Interessierten. Dabei werden nur minimale physikalische Vorkenntnisse vorausgesetzt und es wird versucht, bei allen Erklärungen möglichst ohne Mathematik auszukommen.

Quelle, Terminplan und weitere Informationen: Physik-Wiki der TUG

Partizipieren!

Komische Windowskiste…

September 28th, 2005

Ich bin als EDV-Zuständiger im Heim ja einiges von Windows-Kisten und deren Benutzern gewohnt. Mit Norton-Internet-Security und Zonealarm verseuchte Kisten, Regcleaner- und RAM-Freimacher-Software ohne Ende, Defaultuser == Admin ohne Passwort, es gibt eigentlich keine Grenzen nach unten hin.

Aber gestern durfte ich eine Neuigkeit erleben: eine Windows-Installation auf der es kein iexplore.exe gibt. WTF?! Ja, es gibt einfach keine Internet-Explorer-Instanz. 8-) Natürlich ist der IE in der Windows-Softwarekomponentenauswahl vorhanden, aber auf der Platte gibt es das Binary einfach nicht mehr. Und da wundert sich jemand, dass es Probleme mit der Internet-Verbindung gibt. Via DHCP gab es einfach keine IP-Adresse (‘ipconfig /renew’ landet sofort auf der Schnauze). Nur in dem man eine neue Verbindung mit dem Netzwerk-Assistenten einrichtet bekommt man eine IP-Adresse. Und das muss man nach jedem Reboot machen. Gesurft wurde auf der Kiste bisher (Achtung: festhalten!) mit dem Realplayer. PPTP steigt beim Verbinden mit einer Userauth-Fehlermeldung aus, der Cisco VPN-Client terminiert mit einer wunderbar aussagekräftigen Fehlermeldung. Nach ca. 10 Minuten war dann meine Diagnose “Neuaufsetzen, alles andere macht keinen Sinn”. Ich hätte sonst fast noch Lust bekommen mir das genauer anzuschauen. Aber ich wünsche dem Patienten viel Spass mit seinem Gericom-Notebook bei dem man nicht mehr vom CD-ROM-Laufwerk booten kann. 8-)

gems: Shows a console session in several terminals

September 21st, 2005

I just stumbled over gems at debaday:

mika@grml ~ % apt-cache show gems | sed -ne "/^Description/,/^$/p"
Description: Shows a console session in several terminals
 The gems system is a client/server application that allows to show a single
 console session in different computers or terminals in real time.
 It can also be used to transmit any other kind of data to more than one
 computer at the same time, via a network connection.
 .
 It was designed as an educational tool for teachers that have to show in
 a computer lab how to do certain things with the console. Using the
 gems system, each student can observe in his/her own terminal everything the
 teacher does.

I just tested it and it’s very easy to use, easier to use than the multiuser feature of GNU screen. Nice :-)

Idioten des Tages…

September 18th, 2005

Leute die glauben, dass man Kernelmodule immer nur für/gegen den aktuell laufenden Kernel kompilieren will. Oder wie kommt es, dass man in Configure-Skripten und Makefiles Sachen wie:

KERNEL_VER=`uname -r`
KERNEL_BUILD=/lib/modules/$KERNEL_VER/build

findet? Argl, ich könnte….

Switch behaviour of Capslock

September 18th, 2005

On my happy hacking keyboard the control-key is located where you “usually” find the caps-lock key. My new laptop (Samsung X20) has a function-key at the left side and next to it (on the right side of it) the control-key. I often misplaced my fingers and as I like the caps-lock-is-control-key-setup I modified the setup using xmodmap. But it sucks if you don’t have the same setup on pure console, therefore I used the well known tool loadkeys to modify this as well. But switching between caps-lock-is-caps-lock and the “original setting” (for capitalization) sucks. Especially because “setxkbmap -option caps:shift” and “setxkbmap -option ctrl:nocaps” are not reliable enough. :-/ And whereas documentation for switching caps-to-ctrl exists you probably won’t find it for the other way around. So I wrote a small script namend caps-ctrl which automatically finds out whether it’s running in X or on console and switches the current setup to “the another one”:

#!/bin/sh
if [ -z $DISPLAY ] ; then
 if [ $UID != 0 ] ; then
   echo 'Sorry, you need root permissions for running $0 on console
using loadkeys. Run this program with root permissions. Exiting.'
   exit -1
 fi
 dumpkeys | grep -q '^keycode  58 = Caps_Lock' && \
 ( echo 'Caps lock mapped to shift-function. Switching caps lock key to control key.'
   echo 'keycode 58 = Control Control Control Control Control Control Control' | loadkeys
 ) ||
 ( echo 'Caps lock mapped to control-function. Switching caps lock key to shift key.'
   echo 'keycode 58 = Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock Caps_Lock' | loadkeys
 )
else
 xmodmap -pm | grep -q 'control.*Caps_Lock' && \
 ( echo 'Caps lock mapped to control-function. Switching caps lock key to shift key.'
   xmodmap -e 'add lock = Caps_Lock'
   echo 'clear Lock
         keycode 66 = Shift_Lock
         add Lock = Shift_Lock' | xmodmap -
   echo 'Problems? Try to run 'setxkbmap -option caps:shift' manually.'
 ) ||
 ( echo 'Caps lock mapped to shift-function. Switching caps lock key to control key'
   xmodmap -e 'keycode 66 = Caps_Lock'
   xmodmap -e 'remove lock = Caps_Lock' -e 'add control = Caps_Lock'
   echo 'Problems? Try to run 'setxkbmap -option ctrl:nocaps' manually.'
 )
fi

As there are some more people out there who like the caps-lock-is-control behaviour (hey jimmy!) I put the script into the package grml-scripts and it will be part of the next grml-release.

TV-Browser

September 17th, 2005

*

…ist eine digitale TV-Zeitschrift

Das bedeutet, TV-Browser lädt das aktuelle Fernsehprogramm aus dem
Internet und stellt die Daten übersichtlich – wie eine gedruckte TV-Zeitschrift
– dar. Eine Verbindung zum Internet ist dabei nur während der Daten-
Aktualisierung notwendig.

www.tvbrowser.org

Darauf hat mich heute Martin hingewiesen. Ich hab es mir vor ein paar Minuten installiert und ich muss sagen: ich bin begeistert. Leider ist es in Java geschrieben (duck_und_weg), es läuft aber sehr flüssig und zwecks Uni bin ich sowieso auf Java@Rechner angewiesen.

Bisher hab ich mein Fernsehprogramm immer via klack.de zusammengeklaubt. Das hatte aber den Nachteil, gerade in den Stosszeiten immer wieder mal überlastet zu sein. Und bei TV-Browser kann ich eigene Lieblingssendungen definieren, detailliert nach Begriffen suchen und mich auch erinnern lassen. So versäume ich keine interessante Sendung mehr, sehr fein. Jetzt muss es nur noch den Alltagstest bestehen, ich bin aber optimistisch. Danke für den Tipp, Martin!

Scrubs auf DVD

September 17th, 2005

scrubs-dvd

Scrubs: Die Anfänger – Die komplette erste Staffel (4 DVDs) hab ich von meinen Brüdern zum Geburtstag bekommen, und was soll ich sagen? Woooooot! Die Specials sind einfach witzig. Auch, weil man dadurch erfährt, dass der Hausmeister große Strecken seiner Texte improvisiert. ;-) Und ich kann natürlich jene Folgen nachholen, die mir mangels Gelegenheit durch die Lappen gegangen sind. :-)

Wahl in Deutschland….

September 15th, 2005

Fällt es eigentlich nur mir auf, dass “wahl05” (so gesehen in TV) wie “wahlos” aussieht?

manpages, Dokumentation und tmpfs -o size=….

September 14th, 2005

Man kann auf interessante Optionen stoßen, wenn man nicht nur manpages liest:

mika@grml ~ % man mount | sed -ne '/^Mount options for tmpfs/,/mode=/p'
Reformatting mount(8), please wait...
Mount options for tmpfs
       The following parameters accept a suffix k, m  or  g  for  Ki,  Mi,  Gi
       (binary kilo, mega and giga) and can be changed on remount.

       size=nbytes
              Override  default  maximum  size of the filesystem.  The size is
              given in bytes, and rounded down to entire pages.   The  default
              is half of the memory.

       nr_blocks=
              Set number of blocks.

       nr_inodes=
              Set number of inodes.

       mode=  Set initial permissions of the root directory.
mika@grml ~ %

Ok, keine Neuigkeiten, oder? Und jetzt im Gegensatz dazu aber mal $KERNEL/Documentation/filesystems/tmpfs.txt

tmpfs has three mount options for sizing:
[...]
These parameters accept a suffix k, m or g for kilo, mega and giga and
can be changed on remount.  The size parameter also accepts a suffix %
to limit this tmpfs instance to that percentage of your physical RAM:
the default, when neither size nor nr_blocks is specified, is size=50%

Oh, interessant. Na, wer wusste von der Existenz der Prozentangabe beim mounten von tmpfs? Ehrlich? ;-) Ach ja, LFS-Leute zählen nicht. 8-)

root@grml ~ # mkdir /tmp/ram1 /tmp/ram2                                                                                                    
root@grml ~ # mount -t tmpfs -o size=30% none /tmp/ram1
root@grml ~ # mount -t tmpfs -o size=40% none /tmp/ram2
root@grml ~ # df -h | grep ram
none                  301M     0  301M   0% /tmp/ram1
none                  401M     0  401M   0% /tmp/ram2
root@grml ~ #

Tut also wirklich. Und wer kann jetzt “erraten” wie viel RAM ich auf obiger Kiste habe? 8-)

Log of #zshtalk

September 13th, 2005

Stephen ‘caphuso’ Rueger gave an irctalk about the zsh on 10th of september. As I forgot to mention it in my blog and missed the talk itself I now read the log. It’s a nice introduction to the zsh and covers interesting topics of the zsh – read yourself why you should use the zsh. :)

log of #zshtalk

Update: local mirror of the log