Tuesday, December 14, 2010

Compiling CinePaint on Ubuntu Maverick

Unfortunately there's no pre-compiled package for CinePaint available for Ubuntu anymore. Compiling the tar source ball out-of the box doesn't work either. Using the current version on SourceForge (cinepaint-0.22-1.tar.gz) I was able to patch the source a bit such that it compiles. Maybe these issues are already fixed in the CVS version, though.

Here's the patch: http://gruenschloss.org/cinepaint/cinepaint-0.22-1-ubuntu-maverick.patch

You can apply the patch in the extracted source directory as follows:
patch -p1 < ../cinepaint-0.22-1-ubuntu-maverick.patch

Then you need to make sure to get over the configure hurdle. By default, the configure script of CinePaint tries to use the old GTK, using the deprecated gtk-config tool. Use a command similar to the following to enable the new version. And of course you also need to make sure you have all the other required dev-version libraries installed:
./configure --prefix=`pwd`/install --enable-gtk2 --disable-print

Afterwards, it will hopefully compile and install without errors. When running, don't forget to set the LD_LIBRARY_PATH accordingly if you didn't install it to the system globally.

Here are some related links:

Tuesday, December 7, 2010

Block ads in Chrome in Xfce

Of course by now there are a lot of extensions for blocking ads in Chrome (similar to the popular Adblock Plus for Firefox), but a very convenient solution also is to install an HTTP proxy, like privoxy:
sudo apt-get install privoxy

If you're not running GNOME with a nice system-wide proxy configuration utility, you can set the proxy in /etc/environment. This also works in Xfce. Add the following to the file:

Restart your system and Chrome should be using the proxy. You can also check privoxy's settings by visiting http://config.privoxy.org/.