Android Honeycomb 3.2 + mtpfs


[  407.341426] usb 1-1: New USB device found, idVendor=18d1, idProduct=4e0f

[ 407.341443] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 407.341456] usb 1-1: Product: MTP
[ 407.341465] usb 1-1: Manufacturer: ASUS
[ 407.341475] usb 1-1: SerialNumber: xxxxxxxxxxxxxxxxxx
mtp-probe: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-1"
mtp-probe: bus: 1, device: 4 was an MTP device
[ 428.431813] mtpfs[2489]: segfault at 10 ip 0804fb53 sp b6d2aabc error 4 in mtpfs[8048000+5000]

Update: on Debian Testing, this has been fixed by upgrading to libmtp9.


The many paths to disk UUIDs

I was searching for the best way to find a partition UUID. It turns out, there are lots of ways to do it, some of which are now obsolete.

My requirements were that I wanted something usable from normal users and available on major distros by default. This rules out blkid that is now regarded as the “golden standard” (and looks like a good and useful tool to me). But it’s not available on Fedora by default and it requires root privileges.

So I spent a few hours searching and trying various methods. Seems like vol_id, blkid predecessor, is now vanished from major distros, so it was not an option.

I didn’t want to use the symlinks in /dev/disk/by-uuid/ because it required a lot of searching around to find which device they are pointing to (the link points to the real block device, but often you mount a symlink, like it happens with LVM). This is the most portable and available solution.

Then I found this page that documents another method: using udevadm you can find a whole lot of informations about each partition. It’s available on both Debian/Ubuntu and Fedora and it doesn’t require root privileges. So, my current cmdline is:

user$ udevadm info -q all -n <partition>

E: ID_FS_UUID=c5cfd7d2-440d-48a9-abfd-b3871fa8876d


Are Gnome and KDE giving up the desktop battle?

I just finished reading the interview to Gnome 3 designer Jon McCann. And I’m worried.

I suggest you take your time and read it, but anyway I’m posting here some highlights.

When asked what important stuff they had to leave out for the 3.0 release he answers… touch enablement.

When asked what’s the future role of the file manager, he answers “hopefully a less prominent role”, since stuff will mostly be in the cloud and a file manager is useful only for people that like to organize local files.

When asked if it’s possible to accomodate for the novice to the kernel hacker, he answers “… we can get fairly close. I don’t think we are all that different in the end […] Who doesn’t like to listen to music? Who doesn’t need to check email, who doesn’t need to chat with friends? […]”. Yeah, that’s nice, but, you see, most of us grumpy dinosaurs don’t like to throw a window into a workspace. We were quite ok with the old “go to a virtual desktop, click your favourite app icon, get stuff done”.

About extensions, he says: “there are a couple of cases where extensions are probably not in our best interest. And that doesn’t mean that we will prevent them, just something we need to be aware of. Extensions that turn GNOME3 back into GNOME2 are somewhat counterproductive for a number of reasons”: it’s bad for third party developers and it’s bad for marketing since Gnome 3 would not be… recognizable? I hope I got this straight. So, the problem with Gnome 2 was that we all had different looking Gnome desktops, and people didn’t recognize it as Gnome?

He defends the choice to hide the “Shutdown” option from the menu, since they want to “encourage” suspend. Last time I suspended my Aspire One on Fedora, it corrupted my /home filesystem… why the hell would I want to repeat that stunt?

Then, it comes the big one. Speaking of a possible Gnome OS, he says that in the current ecosystem, Linux is a given. What’s the ecosystem? MeeGo, Android and WebOS.

So, what ecosystem are we talking about? The smartphone/tablet ecosystem? Is this the central point in all this? The Linux desktop is no more? Are Gnome and KDE striving to get in shape for the mobile?

And, if the answer is “yes”, then my question is: why?

I did scan through the interview on my tablet, but then I powered up my notebook (with a proper keyboard) to write down this rant. Producing content is not what mobile devices are good for. This is what desktops are good for. And we will need desktop environments for the years to come.

Logging for HAProxy on CentOS 5.x

HAProxy requires syslogd/rsyslogd listening for incoming connections for his logging purposes.

Basic configuration looks like this:

# haproxy.conf

log local5 debug

# syslog.conf

local5.* /var/log/haproxy.log

# /etc/sysconfig/syslog


It is critical that syslog is accessible by network (udp port 514, you can use as ip address). To check if syslog is listening, use:

# netstat -lp | grep syslog

udp 0 0* 24001/syslogd

You can bind syslog only to localhost or provide firewall to avoid exposing the daemon to the network.


Rewriting addresses in Postfix with regular expressions

Today my employer asked me to look into Postfix. We should take an address like and make it into

Looking at the (good) documentation from Postfix, I managed to get a solution. You should change in /etc/postfix/

canonical_maps = regexp:/etc/postfix/rewrite

and the /etc/postfix/rewrite file will contain:

/^(.*)@(.*)\.local\.lan$/     ${1}.${2}@domain.tld