Tuesday, 14 December 2010

Revenge of the Titans won't install properly in Ubuntu


If during the installation of this game you get an error complaining that it couldn't create a directory in /opt, run the following command:

 sudo mkdir  -p /opt/revengeofthetitans/full_length_music
Then run the installer again. All this does is create the directory manually, which seems to be all that's needed!

Edit: Looks like the devs are aware of the problem and planning on releasing a fixed installer imminently. A commendably expeditious response!

Wednesday, 1 December 2010

Mythtv Frontend won't connect to Master Backend over network (can't login)


A quick post with a quick fix for an irritating issue.

When attempting to connect to the master backend for the resident mythtv setup in the house over the network via mythfrontend on my laptop I ran into this error. The IP was correct, the login and mysql database password was also correct, even all the firewall rules were properly configured, all to no avail. I'd just keep getting "can't login" over and over again.

Simple fix (On the computer running the master backend):

gedit /etc/mysql/my.cnf
Then comment out the following line with a hash so that it looks like this:
#bind-address = 127.0.0.1
Exit and save, then reboot. Try and connect again with your frontend, hopefully all is now well!

Sunday, 28 November 2010

Using a Hauppauge Wintv Nova HD S2 DVBS card: Updated


Having recently rebuilt the media pc I was gratified to find the situation with the above DVBS card much improved since the last set up.

Turns out that nowdays all that's needed to get this card running in Ubuntu/Mythbuntu 10.10 is to quickly run the following:

sudo apt-get install linux-firmware-nonfree
Then restart and enjoy!

Wednesday, 10 November 2010

The blog lives! Also, get-iplayer...


So it does, I've not been posting much recently for a rather cheery reason, and that is that i've not encountered any bugfixes that seemed useful to put up. I've been happily linuxing along day to day with no troubles worth shouting about!


Change! Bugfixes! Bugs without fixes! No hope! All is Dark! Aaaaaargh!

Or at least that describes the first few hours of it fairly well. The reality is that a few weeks in, most of these things have been righted, either by the team at Canonical, or with the use of Google and the much appreciated help of the community at larges. Still, it means there's finally some stuff to post up on the blog. So live it does.

As does get-iplayer. This program is a fantastic little terminal tool for downloading or streaming the content from BBC's iplayer site. Previously i've used the Iplayer-desktop tool that runs on Adobe Air, but after becoming disillusioned with the stability of the program on my current system, I was gratified to find get-iplayer still working and being maintained. Old news, but worth a shout. If you're going to use it I highly suggest checking out the documentation page quickly, as it will make little sense otherwise.

Wednesday, 7 July 2010

Firestarter Tray Icon Fix / Horrific Botch - Gnome 2.30


A quick warning before I begin. This is the most horrific and longwinded way of fixing the transparency issue with Firestarter in Gnome 2.3 (and Lucid Lynx) that it cannot be considered much more than a dirty and very basic hack.

Firestarter hasn't been maintained for a very long time, however for home usage I find it a preferable application to others, as the active connection and live event updates are simply not available in any other firewall configurator for Linux. So, that said - here is the plan:

1. Download the Firestarter source
2. Modify the images the source uses to conform to the taskbar background
3. Build and install Firestarter with these new images

This destroys the ability of Firestarter to adapt to differing themes you may decide to use other than the one you have compiled it for (as the images it uses no longer have any transparencies), meaning that a theme change also requires the recompilation of Firestarter to look pretty. For those of you that change theme infrequently/never, this will work just fine.

Tuesday, 6 July 2010

Can't click buttons in Flash/Youtube using Firefox


This happened to me after reverting from the now discontinued Flash 64 bit alpha to running 32 bit Flash via nspluginwrapper. Flash videos would load and play normally, however none of the controls were responsive, and all clicking on them actually did was the focus the window. This meant that if you clicked on a window and held down, you'd then be able to use any keyboard hotkeys to control the video. Incredibly irritating!

A triage solution appears to go along the lines of:

sudo gedit /usr/lib/nspluginwrapper/i386/linux/npviewer
Add the following just before the last line of the file:
export GDK_NATIVE_WINDOWS=1 
Restart the application. In my case this only affected Firefox, whereas Chromium and Opera both still functioned normally without this fix.

In any case, hope that helps - when Flash plays up it can be a bit of a show-stopper.

Sunday, 4 July 2010

F-spot won't start, throws errors from Terminal


I don't tend to use F-spot for an awful lot, but upon attempting to launch it recently I found that the computer would have a think, an ultimately take no action. Running the launch command from the terminal yielded the following error: 

Unhandled Exception: Mono.Data.SqliteClient.SqliteSyntaxException: no such table: tags

As it turns out, the solution is simply to remove the config directory for F-spot. This can be achieved by running the following command in the terminal:

rm -rf .config/f-spot
Then start the program over again, hopefully that has solved it!

Friday, 25 June 2010

Blender won't start windowed when Legacy Fullscreen is enabled in Compiz


Ran into this the other day, with a solution presenting itself on launchpad as usual. This is more of a workaround than a bugfix, but it works perfectly satisfactorily.

Essentially you want to change your Blender launch parameters to something along the lines of:

 blender -w -p 0 0 800 600 
What this does is tell Blender to launch in windowed mode, as well as starting at the bottom left of your screen and at a resolution of 800 by 600. You can then move the window around and resize/fullscreen it as per the norm. For some reason Blender throws a hissy fit and refuses to start windowed when only the "-w" parameter is specified, the additional options seem to force it to work properly.

Assuming you're using Gnome, you can customise your menu entries by going to System > Preferences > Main Menu.

Sunday, 23 May 2010

GDM2Setup / Ubuntu Tweak - Unable to change Xsplash Wallpaper


On a couple of fresh Lucid installs so far I've run into this same problem, whereby GDM2setup and/or Ubuntu Tweak are unable to change the wallpaper for Xsplash. This apparently stems from the fact that a directory both programs need to modify does not exist by default in 10.04.

A fix presented itself in the form of the reply from WobblyBob on launchpad here.

Essentially all you need to do is run this command in the terminal:

sudo mkdir /usr/share/images/xsplash
Then attempt to change the wallpaper once again. Hopefully that has fixed it!

Sunday, 9 May 2010

Ensure Compiz starts with --loose-binding upon login with a handy script


Previously talked about was the massive perfomance enhancement systems using Nvidia cards and Compiz enjoy when Compiz is started with the '--loose-binding' option. To ensure that this happens properly upon every login i've found that deploying a quick little bash script is easiest.

To create the script:

gedit compiz-start.sh
Copy and pase the following into it
#!/bin/bash

compiz --replace --loose-binding
gtk-window-decorator --replace
Save and close gedit.

Make the script executable: 
 chmod 700 compiz-start.sh
At this point you can test the script using './compiz-start.sh' from your home directory.

To add this script to your list of startup applications: 

In Ubuntu, go to 'System > Preferences > Startup Applications' and add the line:
/home/yourusername/compiz-start.sh
So that it is one of the entries. At this stage, you're done, however, i've found the script works best when combined with the delay script mentioned previously.

So with that, the line to run the compiz script after five seconds would be:
 /home/yourusername/delay.sh 5 "/home/yourusername/compiz-start.sh"
Done!