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 ...