Greetings from GNOME

December 27, 2009 Comments off

Now this is really useful: there is a GNOME panel applet for writing blog posts (for the Debian/Ubuntu folks: it’s in the package gnome-blog). Just gotta try it out 🙂

Edit: Unfortunately, there is no possibility to assign tags or categories this way 😦

Dell Latitude E5500 and Magic SysRq

November 17, 2009 3 comments

At work I’m using the Dell Latidude E5500 notebook, running on Debian testing. Today, I had some issues with Xorg which could not detect my keyboard and mouse, so I tried to do the Magic SysRq tricks (you can read about it at Wikipedia). Unfortunatley, to press SysRq (on F10), I had to use the Fn key, so if I pressed e. g. Alt+Fn+SysRq+U, the U was detected as keypad 4 because of the Fn key. Luckily, it works as intended if you release the Fn key after having pressed Fn+SysRq, so to remount all mounted filesystems in read-only mode, you would actually hold Alt, hold Fn, hold SysRq, release Fn, press U.

Never thought notebook keyboards were so smart 🙂


Flattr this

Sync your Windows Mobile 5/6 PDA with your Linux PC

October 30, 2009 Comments off

I recently bought a new (ok, a rather old ;-)) PDA, and I got used to the calendar and task features in Windows Mobile. Of course, I also wanted to synchronise all the tasks, appointments, contacts and files with my PC, but whatever I tried, it didn’t work somehow on my Ubuntu 9.04 machine… So, I’ve got it now: I had do blacklist the ipaq kernel module which wrongly handled the PDA when I plugged it in (i. e. edit /etc/modprobe.d/blacklist.conf and insert the line blacklist ipaq), and then the manual from ubuntuusers.de suddenly worked like a charm 🙂


Flattr this

netcat, your friendly network sniffer

September 24, 2009 1 comment

I was bored today and started to play around with this Windows Mobile Messaging application (I think it’s called Outlook Mobile or sort of thing), and I found out that I was not able to connect to my IMAP mailbox on my root server, though it worked with my Freemail account. So I wanted to see what makes Outlook Mobile bother about my IMAP server.

If you are familiar with Linux (which I suppose you are ;-)), you certainly know netcat. With this little tool, you can talk directly to servers on a byte-oriented basis, and this can be very useful if you have to debug programs which use character-oriented protocols like IMAP, SMTP, IRC and so on.

But I’ve realised that I can not only use netcat to talk to a server myself, but even to build a transparent proxy server that displays all the data that comes over it. After a while — okay, it was about 2 hours — I got the following nice command:


$ mkfifo pipe
$ tty=`tty`; netcat -l 1234 < pipe | tee $tty | netcat myserver.com 143 | tee pipe

I could now set up Outlook Mobile to talk to port 1234 on my home computer and the bytes went straight to my console and also to port 143 (the IMAP port) on my server.

The first direction was straightforward: the first netcat process listens to the local port and pipes its output first to the console (using tee) and then to a second netcat instance that does the communication with the remote server. Now, the commands from the server have to get back to the client, so I created a named pipe using mkfifo (of course, your filesystem has to support it, so you better not do this on FAT) and used this as the input to the first netcat process that sends it back to the original client.

Of course, I could have used Wireshark, but I hate that it does not allow to copy&paste the contents of a packet so I have only the bytes of the protocol that I need — which can be quite useful if you want to reuse parts of the content, especially in character-oriented protocols. Also, the filter settings in Wireshark can be annoying, there is no simple way to only have packets from one network connection (or I haven’t found it yet).

So, finally I found out that is has something to do with the IMAP capabilities that Outlook Mobile bothers about. I suppose I will write something about it if I have traced the problem back.

Update: Note: You can also rewrite the server and/or client messages using sed, but be sure to use unbuffered output with -u like that:

tty=`tty`; netcat -l 143 < pipe | tee $tty | netcat myserver.com 143 | sed -u 's/^\* CAPABILITY.*/* CAPABILITY IMAP4 STARTTLS/' | tee pipe

Flattr this

af9015 bulk message failed: Switch USB Ports?

August 24, 2009 2 comments

Yesterday, I suddenly wasn’t able to use my AF9015-based DVB-T USB stick anymore. It only worked for about a minute, then the image froze and dmesg said the following:

[10633.166371] usb 1-3: USB disconnect, address 5
[10633.186247] af9015: bulk message failed:-22 (8/-339951920)
[10633.186254] af9013: I2C read failed reg:d417
[10633.186258] af9015: bulk message failed:-22 (8/-1067461161)
[10633.186265] af9013: I2C read failed reg:d417
[10633.186279] af9015: bulk message failed:-22 (9/-339951284)
[10633.186282] mt2060 I2C write failed

I was not even able to rmmod the dvb-usb-af9015 kernel module, the rmmod process just hung itself up.

After two hours of compiling a new driver version, experimenting with kernel parameters and getting a new firmware version, I finally booted into my rarely used Windows system. The first thing I saw was the “USB 2.0 device on USB 1.1 bus”, and as I also could not get a movie stream, I tried to plug the DVB-T stick into a different USB port. And voilà, suddenly everything worked again, as well on Windows as later on Linux. No more error messages in the kernel log, everything just fine as before.

But I wonder if I have been using this USB port before — as far as I can remember, the DVB-T stick had always been on the other port… Yet another proof for me to never trust yourself 😀

Update: Unfortunately, this solution did not help for long. After about two weeks, the error is still there, and also occurs more frequently, near to once an evening (until I reboot). So maybe, it hasn’t even to do with switching USB ports, and my hardware is beginning to fail… 😦

Update: Seems it is fixed now, using revision dca0fed8d68b (Sat Sep 26 19:27:52 2009 +0200) of http://linuxtv.org/hg/~anttip/af9015 repository. At least worked for over 4 hours now 🙂

Categories: Ubuntu Tags: , , ,

Hello world!

August 24, 2009 Comments off

Yeah. So this is my new blog. I thought, it would be a nice place to collect various bits of information that I noticed during my work that could be useful to other people too (as well as me, having a head like a sieve). So enjoy it, if you like!

Categories: Uncategorized