Ubuntu Packaging Quirk
Saturday, December 1st, 2007Note to Interwebs:
If you are looking for man pages for built in functions like printf, they aren’t in the manpages package, but instead in the manpages-dev package. Go figure.
Popularity: 10% [?]
Note to Interwebs:
If you are looking for man pages for built in functions like printf, they aren’t in the manpages package, but instead in the manpages-dev package. Go figure.
Popularity: 10% [?]
While I don’t run windows on any physical hardware, I have a VMWare windows xp guest on my laptop that I use for a couple of applications. One of which is the programming software for my Logitech Harmony remote.
In my recent laptop update to Ubuntu 7.10, VMWare Server lost the ability to pass through the USB bus to the guest. Fortunately, a quick search on the VMWare forums came up with the following:
Please open the following file: /etc/init.d/mountdevsubfs.sh by following command - gksudo gedit /etc/init.d/mountdevsubfs.sh
Find the following lines:
#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/usbUnmark them so that look like this:
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/usbRestart and your usb devices will be recognised
This worked like a champ, and now I can do the rest of my pre thanksgiving tweaks on the remote. ![]()
Popularity: 11% [?]
Just over a week ago I completely my conversion to Ubuntu (my laptop was the last machine over). One of the reasons for doing this conversion was to get the benefits of some of the gnome stack, like dbus, which are very nicely configured in the Ubuntu environment. It meant that after about 1.5 yrs with Ion, I gave it up for the default Ubuntu Gnome environment.
Running Ion for a year and a half gave me perspective on a few features that are really nice:
There were also a lot of drawbacks:
One of the reasons for Ubuntu is that their community support is pretty good, and using main path base software was what I was looking for. But I learned a lot of lessons in the time with Ion about things that I liked, and wanted to duplicate in a gnome environment.
Policy Engine
After watching many people in meetings on MS Windows get a sensitive IM while they are giving a presentation, and scrambling, you realize the value of a policy engine for windows placement. IMs are always on Workspace 5, always. My presentation won’t be on Workspace 5, so I can get to the IMs when I’m ready to deal with them.
One upon a time, the default gnome window manager did this. Then we got Metacity, which pretty much can’t do anything (interesting enough that compiz is bringing features like this back). The fact that useful features are being slipped past the anti-feature HIG overlords under the guise of eye candy has a certain irony that you don’t find many places.
However, my laptop is old. It can’t do compiz. That’s ok, as Devil’s Pie can do it for you instead. Devil’s Pie lets you create small policy files in lisp which control window behavior. Before you run away screaming because of this being lisp, look, it isn’t that bad:
(if (is (application_name) “firefox_bin”) (set_workspace 2)
See, didn’t make you blind or anything. The policy for devil’s pie is way easier to grok than ion’s kludges file, and provides a few more options.
Scratchpad for Terminals
Remember Quake? No? Well it’s that first person shooter all us old folks rave about, as it existed prior to 3D hardware, and let us waste nights in college on our brand new Pentium computers. When you hit the tilda button, you got a drop down console, that did an overlay on your screen, and let you type in commands, or Say stuff.
Behold Tilda. The default configuration actually does look like the Quake overlay. With a bit of configuration you can make it look like an Ion scratchpad with a terminal embedded.
Unfortunately I’m having mixed success with rendering in Ubuntu 7.10 (plus a bad interaction with the next piece of software). I’m bad, and haven’t sent in a bug report, but I will so. When tilda was working for me, it was great.
In full disclosure I need to say I found out about Tilda by listening to LUG Radio, where Aq brought it back in the spring.
Desktop Navigation
Once I started to use Gnome again I knew I needed better desktop navigation than the default. I even set aside most of a weekend to write my own “go to window by name” program, as I was convinced that libwnck would give me enough to do that. While writing a bunch of sample code that would get, but couldn’t set window properties, I found superswitcher.

Superswitcher takes over your Windows key and/or Caps Lock and creates all manner of interesting key strokes to navigate and control your work spaces. I’m pretty convinced it was designed as the ideal test can for libwnck, as it seems to use all the features in there.
You can dynamically create/destroy workspaces, navigate very nicely through windows based on typing partial names.
Things that I still want
Tilda to work. After a few rez / derez of tilda on gutsy, it stops displaying properly. I need to file a bug on this.
Jumping to urgent windows with Alt+K, and a command line interface to “Go to window by name”, which let’s me have an edit command that loads a file in xemacs, then jumps my focus there. With the code provided by superswitcher and devilspie that shouldn’t be too bad, as soon as I figure out why libwnck was ignoring all my set requests for focus and workspace changing.
Superswitcher currently segfaults when tilda is running. This has to do with tilda not being in any workspace, which defies the superswitcher logic. Should be an easy fix, just need to carve out an hour or two to do it and send it in.
What makes you productive in Linux?
Sit down and think about it some time. Post a comment about it, I’d love to hear your thoughts on this, as well as any experiences with other interesting Linux desktop tools that collectively make your environment optimized.
Popularity: 17% [?]
In the last month I decided to switch my primary Linux distro from Mandriva to Ubuntu. It will take me until the end of the year to fully switch over, mostly because my work laptop can’t really afford the downtime, and it is scheduled for replacement come November anyway. There were reasons for leaving Mandriva, such as:
There were also plenty of really good reasons to go to Ubuntu:
I’m sure I’ll think of more reasons, and rationale as I progress down this new road. I’ll also post on various bits about Ubuntu I’ve found either good or bad in the process. Other than the lack of a service command (which I’m just going to build my own package for, as muscle memory on tab completing that is too hard to break), the transition has been very smooth. My home desktop was migrated last weekend, and the media server just a couple of hours ago. Once I get back from vacation, I’ll start hitting some of the boxes at work that I maintain.
Popularity: 13% [?]
I have to give the debian/ubuntu folks some credit for their packaging of nagios. While the mandriva configuration was pretty straight forward, you had to normalize things a lot yourself, otherwise you were adding 20 new lines for each service and/or host.
The configuration that is default in ubuntu uses hostgroups very effectively, so you setup a host group for every type of service. If you want to monitor a webserver on a host, you just add it to http_servers. In about an hour I had completely rebuilt my monitoring setup for home and offsite servers, and was getting alert emails again when things go funny.
Nicely done folks, nicely done.
Popularity: 9% [?]
This blog uses the cross-linker plug-in developed by thruSITES web design company