Skip to main content.
August 22nd, 2010

Where’s My KDE Dialogs In Firefox

When I upgraded to Kubuntu Lucid Lynx, they promised:

Firefox now integrates better with KDE, providing native KDE file dialogs as well as respecting your default choices for opening files, as set in KDE.

I was excited, no more having to keep a separate favorite places for Firefox and Dolphin.  In reality after I upgraded I saw no such “integration.”

So several months later it bugged me enough to take another look at the problem.   Reading the same copy as before I noticed a new sentence that either I missed or wasn’t there before:

Our Kubuntu Firefox Installer makes sure the necessary packages are installed, if you have installed Firefox manually you will need to install kmozillahelper for the integration.

Hmm…  since I upgraded and didn’t install from scratch it seems that I needed to install the kmozillahelper package.  Once I did and restarted Firefox, it worked.   One step closer to an integrated desktop.  Now I I could find a way to do this in chrome, openoffice.org, gimp…

Posted by benjamen as Firefox, Kubuntu, Lucid Lynx, linux at 12:56 PM UTC

No Comments »

August 20th, 2010

No Sound In Boxee

The main reason I upgraded my Myth boxes was so that I could use Boxee.  I first tested it out on my main computer running Kubuntu 10.04 and everything worked pretty well.  I expected the to Myth boxes running Xubuntu 10.04 would work just as well.  Of course nothing is that easy, I log into Boxee and try to play something from my queue, no sound.  I try something else, no sound.  The third time was not the charm, so I tried the other Myth box and found the same problem.

I jumped onto Google and had to do a bit of searching before I found this post in the Boxee forums.  The culprit seems to be … wait for it …  pulseaudio.   That would definitely explain why it worked on Kubuntu.  Anyway the crux of the fix is as follows:

sudo apt-get remove pulseaudio
sudo apt-get install esound
sudo killall pulseaudio
sudo restart gdm

In the original post he killed pulseaudio before he removed it, but I found that it would just pop up again in a few seconds. Also he said to restart the computer but I found that just restarting X was enough.

Posted by benjamen as Boxee, Kubuntu, Pulseaudio, Xubuntu, linux at 7:19 PM UTC

No Comments »

August 18th, 2010

Fixing A Serial Mouse In Ubuntu 10.04

I was upgrading my mythtv boxes from 8.04 to 10.04 today, which went pretty smoothly until I rebooted.  When I got to the login screen I tried to move the pointer but nothing happened.  I wasn’t too worried, I figured that the upgrade just changed my xorg.conf file and that I could just replace it.

It turns out somewhere between 8.04 and 10.04 they took keyboard and mouse configuration out of the xorg.conf file.  It was easy to figure this out because the install left me a nice message in the xorg.conf saying you don’t do that here anymore.  So after searching I found this forum post on Ubuntu forums about getting your old Microsoft serial mouse working with 9.10.  The heart of the solution is to use gpm and input attach to tell X11 about the mouse.   I ran the following commands to test this:

sudo apt-get install gpm
sudo inputattach –microsoft /dev/ttyS0

It worked exactly like promised, I was now able to mouse the pointer around with my mouse. To make it permanent you need to edit /etc/rc.local to add the inputattach line.  (additions are in bold)

sudo vi /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0″ on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

## added serial mouse input ##
inputattach –microsoft /dev/ttyS0

exit 0

Posted by benjamen as Hardy Heron, Lucid Lynx, Ubuntu, linux, mythtv at 7:17 PM UTC

No Comments »

June 25th, 2010

Changing Chromium Cache Location in Ubuntu (Hint XDG)

You want to do something as simple as moving the directory Chromium uses for cache and you wind up learning more about the XDG Base Directory Specification than you wanted.  I wanted to move Chromium’s cache so that I didn’t back up these unimportant and constantly changing files during my hourly backups.  Backing up all these files not only takes up extra space, but it also annoyingly slows down the backup.

I needed to figure out where the cache directory was located and how to move it.  Moving the cache directory in Firefox is simple, you just goto about:config and change the value of browser.cache.disk.parent_directory. Heading over to the Chromium Project I found a page that described where the cache was located for Linux:

~/.config/chromium/Default

It turns out that Chromium follows the XDG Base Directory specs.  Applications that follow these specs will store  config, data and cache directories in the locations specified by their corresponding environment variables.  The thought behind this structure is to clean up the user directories and make the different desktop managers play nicely with each other.  From the specification:

$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

$XDG_DATA_DIRS defines the preference-ordered set of base directories to search for data files in addition to the $XDG_DATA_HOME base directory. The directories in $XDG_DATA_DIRS should be seperated with a colon ‘:’.  If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used.

$XDG_CONFIG_DIRS defines the preference-ordered set of base directories to search for configuration files in addition to the $XDG_CONFIG_HOME base directory. The directories in $XDG_CONFIG_DIRS should be seperated with a colon ‘:’  If $XDG_CONFIG_DIRS is either not set or empty, a value equal to /etc/xdg should be used.

$XDG_CACHE_HOME defines the base directory relative to which user specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used.

Bingo! $XDG_CACHE_HOME sets the location of the cache files and if it isn’t present it defaults to where the Chromium project says the cache files are stored.

The final piece of the puzzle is figuring out where to put the environment variable so that next time you log into your desktop it actually gets set.   This is where the Ubuntu Community Documentation saved me.  It turns out that there is a file in each individuals home directory called:

~/.pam_environment

It may or may not be present.  If it isn’t just create it.  This file is  specifically for setting environment variables.   It’s not a script file like .profile, so stick to variable assignments.

So I set:

$XDG_CACHE_HOME=/tmp/benjamen/.cache

and deleted the default .cache directory in my home directory.  Now when I back up my home directory I don’t waste time and space backing up the cache files.

References:
User Data Directory [The Chromium Project]
XDG Base Directory Specification [freedesktop.org]
Environment Variables [Ubuntu Community Documentation]

Posted by benjamen as Chromium, Ubuntu, freedesktop.org, linux at 2:08 PM UTC

No Comments »

March 27th, 2010

WOL Causes Reboot Instead Of Shutdown

For a while my computer has had the annoying habit of rebooting whenever I tell it to shutdown.  That doesn’t sound so bad does it?  What it means is that I need to be present at the machine if I want to turn it off.  I can’t tell it to turn off after midnight or after a hour of being idle  (and forget suspend, that’s never worked right).

On and off for the past few weeks I’ve been crawling through the system logs and BIOS trying to find an ACPI error or other warning that would explain why the kernel feels like it needs to reboot.  Then on a whim I turned off Wake On LAN.

I had turned on WOL because I thought it would be cool if I could turn on my computer from another computer, netbook, or mobile device before I go downstairs to use it.  It turns out that WOL on this particular motherboard doesn’t work the same as other computers.  Usually you need to send a magic packet to wake a computer up, but for some reason my computer wakes up with a simple ping or any other traffic sent to it’s address.

Turning off WOL did the trick, the computer actually shuts down when I tell it to shutdown.  So, either there is some traffic from the network directed at my machine or the same flaw that makes the motherboard wakeup without a magic packet keeps it from powering down.

Posted by benjamen as Karmic Koala, Kubuntu, computer, linux, network at 9:30 AM UTC

No Comments »

January 9th, 2010

Sound in DOSBox

I installed DOSBox on a Kubuntu Karmic machine to play The Incredible Machine, but I couldn’t get the sound working.  I read a ton of forum posts about trying to get DOSBox working with Pulseaudio to no avail.   Then I discovered that my Pulseaudio wasn’t working anyway.

I needed a way to tell the SDL (Simple Direct Media Layer) that DosBox should just use my soundcard like KDE was doing.  One of the steps that kept coming up in the PulseAudio “fixes” was to type the line:

export SDL_AUDIODRIVER=pulse

or

export SDL_AUDIODRIVER=esd

before running DOSBox.  I wondered if there was another setting for soundblaster or intel.  So I googled SDL_AUDIODRIVER and found that there was a dsp option.  So I typed:

export SDL_AUDIODRIVER=dsp

before starting DOSBox and viola I have sound.

*I’m not entirely sure it was necessary but in the process of trying to get Pulseaudio working I installed libsdl1.2debian-all.

Posted by benjamen as DOSBox, Karmic Koala, Kubuntu, Pulseaudio, linux at 12:56 PM UTC

No Comments »

December 15th, 2009

Installing SongBird On Kubuntu Karmic

First let me just let me say that Amarok 2 blows!  Why they screwed up such a great program is beyond me.  You can always install Amarok 1.4, but why go backwards when players like Songbird are moving forward.

Unfortunately Songbird doesn’t seem to work out of the box with Kubuntu, the correct GStreamer packages don’t seem to be installed — even when you use a debian package!  Maybe it’s just me but I’ve tried it on a Jaunty machine and a Karmic machine and I couldn’t get music to play back on either.  It would just give me some cryptic error about alsasink and auotaudiosink.   So here’s my short tutorial on how I got Songbird working.

  1. First I removed all GStreamer packages.  This step may or may not have been necessary, but I mucked about for long time before I decided to start from scratch.   It has the side effect of removing openoffice.org too, but you can just reinstall it when you’ve got songbird running.
  2. Reinstall GStreamer with this command:

    sudo apt-get install  libgstreamer0.10-0 gstreamer0.10-x gstreamer0.10-gnomevfs gstreamer0.10-plugins-base gstreamer0.10-pulseaudio libgstreamer-plugins-base0.10-dev libgstreamer0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly

  3. Install the correct songbird package from Skyzim

    sudo dpkg -i <package name>

  4. If you are using NVidia drivers remove  the libvisual plugins.

    sudo apt-get remove libvisual-0.4-plugins

That did it for me.

References:
Installing Songbird [Ubuntu Documentation]
GStreamer Setup [SongBird Wiki]
NVidia Driver Issue [edsalisbury.net]
Songbird Installer [Skyzim]

Posted by benjamen as Jaunty Jackalope, Karmic Koala, Kubuntu, Songbird at 9:05 AM UTC

No Comments »

July 18th, 2009

Get Back Firefox’s Print Preview Buttons In Linux

Does it annoy you that the print preview window has been neutered in Firefox for Ubuntu?  You may have this problem in other Linux distributions or operating systems too.  Here is what it looks like:

old-print-preview

Thanks to a little help from Only Ubuntu Linux I fixed the problem on my system by setting “print.whileInPrintPreview” to true.

Now my Print Preview window looks like it should:

fixed-print-preview1

HOW TO Enable Additional Print Preview Buttons in Firefox

Posted by benjamen as Firefox, Ubuntu, linux, printing at 2:04 PM UTC

No Comments »

March 23rd, 2009

Adobe Reader Bogging Down My Hardy System

I’ve been having problems with Adobe Reader eating up all the available memory and taking tons of cpu cycles.   I really would rather use an open source program like KPDF, but printing from it is broken and they have no intention of fixing it according to something I read on their mailing list or on a bug report somewhere.  So for now I’m stuck with Adobe.

I found a possible fix.  This post on the practice mark perfect blog tells you to turn off two option in the adobe preferences.

Edit->Preferences->Internet-> Allow fast web view & Allow speculative downloading in the background

I tried the fix and am now witing to see if the problem occurs again.

Update: The fix seems to work, but for some reason my settings were reset to being checked and the problem cames back.  If the problem starts occuring again double check the settings and make sure they are unchecked.

Posted by benjamen as Adobe Reader, Hardy Heron, PHP, linux at 7:55 PM UTC

No Comments »

March 15th, 2009

The Case Of The Missing MythWeb Interface

For some reason my MythWeb interface just up and disappeared a few days ago.   I went to the place the web page was supposed to be, but I got a blank page.  The machine served other PHP pages just fine.  After poking around I found this ubuntu forum post.  I just followed these instructions:

sudo apt-get remove –purge php* apache* mythweb*
sudo rm -rf /etc/apache2
[reboot]
sudo apt-get install apache2-dev php5-dev libapache2-mod-php5 apache2-doc mythweb

I also had to reinstall the mythtv-backend package.

Basically what it did was uninstall Apache,  PHP,  and MythWeb completely (also Mythtv-backend) and reinstalled them.

Posted by benjamen as Apache, PHP, Ubuntu, linux, mythtv at 8:09 PM UTC

No Comments »