Donnerstag, 20. Dezember 2007

VirtualBox and USB devices

My parents bought a new panasonic camcorder, the software that came with it is Windows only of course. So I tried to get it running in Wine, but the installer didn't get very far before hanging. Next I installed VirtualBox, and installing the video software in a Windows 2000 hosted on VirtualBox worked just fine.

Unfortunately, Windows didn't see the camera's SD card that was attached via a USB adapter. Some googling showed that USB support in VirtualBox is broken in Gutsy. Here are the steps to get it working:


  1. Edit /etc/init.d/mountdevsubfs.sh as root
  2. , then activate the commented lines for making /proc/bus/usb work:

    mkdir -p /dev/bus/usb/.usbfs
    domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
    ln -s .usbfs/devices /dev/bus/usb/devices
    mount --rbind /dev/bus/usb /proc/bus/usb


  3. Save the file and run the script via sudo /etc/init.d/mountdevsubfs.sh

  4. Edit /etc/fstab as root and add a line:

    none /proc/bus/usb usbfs devgid=XXXX,devmode=664 0 0

    where XXXX is the gid for group vboxusers as defined in /etc/group

  5. Save the file, then activate the changed configuration via sudo mount -a


When you start VirtualBox now, a USB controller can be activated in the settings for each virtual machine.

Mittwoch, 5. Dezember 2007

KNetworkManager doesn't support KPPP

I've convinced my parents (mostly my father) that it would be easier for them to have Kubuntu on their new laptop than Vista. They'll have to learn a new user interface anyway, but Kubuntu makes support for me much easiear (especially since I've learnt about the desktop sharing feature of NX).

So I've ordered a trusty Dell Inspiron 6400n like my wife has, but this time with Ubuntu 7.04 preinstalled. Installation of Kubuntu 7.10 went smoothly, thanks to Dell's Ubuntu support even the internal modem is supported by a restricted driver.

But when using KPPP for making an internet connection, I was not able to brwose the internet using konqueror. Firefox did work, so I set it up as default internet browser.

But some days later my father found out that he couldn't receive any mails in KMail, though checking with the web frontend I saw he had new mails. There was no error message in KMail, it just said there were no new mails.

Some googling later I found a bug report and knew that KDE software like Konqueror and KMail rely on KNetworkManager to check wether they are in online or offline mode. When it works, it's a great feature. Unfortunately it doesn't work with some weird WLAN setups -- and with KPPP!

The easiest solution to get around this is to simpy quit KNetworkManager -- and make sure it doesn't automatically come up again on the next start.

Donnerstag, 22. November 2007

Compiling source code

I've found a kate plugin for sorting but had to compile it. I had gcc installed but still ./configure told me that the ,,C compiler cannot create executables.'' I quickly found out that some packages for doing development stuff were still missing, so that was a quick fix.

Dienstag, 6. November 2007

libxine1-extracodecs is now libxine1-ffmpeg

I've already posted about installing libxine-extracodecs in august and april. This is no longer true since Gutsy, now the package is libxine1-ffmpeg.

Actually, now there is a meta package kubuntu-restricted-extras with commonly used restricted packages which also contains libxine1-ffmpeg. I've not installed the meta package, since I didn't want Java6 to be installed, but I've installed most of the other packages contained.

Freitag, 2. November 2007

Speeding up Konqueror

Upgrading from Kubuntu Feisty to Gutsy didn't work for me, so I've installed Gutsy from scratch. As Konqueror still was far slower than Firefox, especially for sites with many images like GMX or Xing, I started to search again for solutions. Here's what I found out, and now Konqueror is nearly as fast as Firefox for me:

  • deactivate IPv6, otherwise IPv6 DNS queries will happen that can result in timeouts when some servers don't support it yet: append KDE_NO_IPV6=true to /etc/environment

  • install a local DNS cache, as Konqueror/KDE doesn't implement it (in contrast to Firefox): I'm using pdnsd, see here for installation instructions.

  • Konqueror uses a disk cache by default, the directory is /var/tmp/kdecache-username/http. I found out that the directory had root:root ownership for my installation, I have no idea how that happened. After chowning back to my user, the directory is now used as expected.

Montag, 8. Oktober 2007

Installing Type1 fonts for OpenOffice

My wife has a binary encoded Type1 font (a .pfb and a .pfm file) that contains symbols for guitar tab notation. It came with some Windows software, and obviously in Windows the .pfb file and .pfm file are enough to use the font.

Right clicking the .pfb file in KDE let's you install the font, but it doesn't show up in OpenOffice's font selector. KWord on the other hand let's you use it.

After some googling I found out that OpenOffice in Linux needs an accompanying .afm file, and here's how to create the .afm file from the .pfb file:

  • Install t1lib, a library for generating character- and string-glyphs from Adobe Type 1 fonts: sudo apt-get install t1lib-bin

  • Go to the directory where the .pfb file was installed, e.g.: cd ~/.fonts

  • Create the .afm file, e.g.: type1afm fontfile.pfb


And that's all, starting OpenOffice should now show the font in the font selector.

Alternatively, the .afm file can go to a subdirectory named afm.

Montag, 3. September 2007

Automounting SD card in Feisty

When I started using Kubuntu (Edgy and the first Feisty betas), the SD card I have for my Palm TX always was automagically automounted when I inserted it into my Dell's internal TEAC card reader. But since using Feisty (final), it no longer works. I thought it wasn't correctly recognised by the kernel, as there are some open launchpad entries regarding USB devices/card readers, but as I've found out now, this is not the case. Strangely enough, it still works when I insert a Compact Flash Card ...

After some googling, this is what works for me in Feisty:

  • Create an entry in /etc/fstab for the SD card device:
    /dev/sde1 /media/sd vfat user,noauto 0 0

  • Create a desktop device link (e.g. for a ZIP device) for the device, the mount point is then taken from /etc/fstab

  • Now the /etc/fstab entry can be removed again

That's all. Now you have an icon for the device on the desktop, to mount an SD card just insert it and open the icon. To unmount, open the context menu and select Eject.

Freitag, 10. August 2007

I've already posted about installing libxine-extracodecs, back then for enabling MP3 support in Amarok.

When forwarding a mail containing some funny WMV videos to my wife, we found out she couldn't watch them with Kaffeine while I could. As it turned out, installing libxine-extracodecs also solved this issue.

Freitag, 29. Juni 2007

When I installed Kubuntu on my wife's new laptop I entered her name for the initial user account. That results in uid and gid 1000 given to her user. On my desktop, my user has uid and gid 1000, her user has 1001 for both. When exchanging files, even more when setting up an NFS server later, all users on the network should have the same uid and gid on all computers.

That's when I googled and came up with an excellent description for usermod and groupmod that help in that situation.

In addition, I found the -h parameter of chgrp and chown useful, so symbolic links get corrected too, not only the referenced files.

Mittwoch, 20. Juni 2007

When showing OpenOffice to my wife on her new Dell Inspiron 6400 (which I configured to be more or less the same as the Inspiron E1505n Dell offers in the US with Ubuntu 7.04 pre-installed, and Suzan also successfully upgraded to Ubuntu) I wondered that the Letter Wizard didn't work. I remembered configuring OpenOffice to use Sun's Java5 as JRE on my computer instead of the FSF 1.4.2 version already installed.

Obviously, the wizards do depend on Java, but it doesn't say you need Sun's Java or Java5 ...

So, after installing Sun's Java5 via adept and configuring OpenOffice to use that as JRE, it worked!

Montag, 23. April 2007

So much has happened since my last post, but I haven't come around yet to to write down here what I originally had in mind. But that doesn't matter anyway, as it didn't work out as I thought it would.


What I did back then: I installed Ubuntu 6.10 (Edgy Eft) on my old PC to run BackupPC on it, as my trusted old SCSI tape drive with it's 2 GB of uncompressed storage didn't seem like a good choice for backing up the 250 GB hard disc of my new PC.


Installing Ubuntu and BackupPC went smoothly, but when I tried to forward e-mails directed to my local account to my internet mail address, it got really tricky. First, there was a bug in Edgy regarding /dev/urandom that made it impossible to authenticate at the SMTP server of my mail provider. When I fixed that after googling around, I got stuck in trying to use that SMTP server as a mail relay for exim MTA.


By now, Debian 4.0 (Etch) is running as OS hosting BackupPC, and I've configured postfix to forward my local mails to my internet mail address (more on how to do that later, hopefully).


But now for today's piece of information: After being convinced by Ubuntu's usability by playing around with Edgy and Feisty (Beta), I'm currently in the process of switching to Kubuntu Feisty Fawn (7.04) as main OS.


Although Amarok seems to be considered as the KDE killer app by all, I wondered why it didn't add my MP3 files to my music collection. Seems like Amarok has no MP3 support by default, and although for some users it seems to pop up a dialog offering to install it (I haven't seen it myself), but it doesn't. And I thought Feisty would install potentially unfree codecs if you agreed to a dialog, doesn't seem to be the case for Kubuntu ...


The solution Google gave me: Just install libxine-extracodecs with adept or apt-get, that does the trick.

Montag, 15. Januar 2007

... and then there was blog!

Yesterday evening I spent some hours in doing something which turned out to be really simple -- once you know how to do it. I googled around quite a bit, but never found the information I really needed. Others had documented how to do it already, but never in a way I could use directly. And to make the experience even better, I hit a bug and google only came up with contradicting workarounds that were not guarenteed to work.

While reflecting on all this today, I thought about mailing what I had found out the other day to some of the authors google cam up with so my hard gained knowledge would not get lost. But some of the pages were mailing list entries, so no chance to add text there.

What about writing it down on a piece of paper and putting it on my desk? I might find it again one day when I need it, but as long as google doesn't index my desk, no one else can use it.

So today, when surfing the net in my lunch break and reading an article where the author referred to his blog I had an idea. When I put my knowledge in a blog, I can find it again when I need it, and so anyone else using google with the right keywords.

Registering for this blog was the easy part, now let's see how long it will take me to actually add useful information ...