Tip: Fixing character encoding in Terminator 0.14 (Ubuntu 10.04)

I’ve been using the excellent terminal emulator Terminator for a long time. Terminator sports (among other things) split screen and “cluster support” (grouping of screens, making it possible to type the same thing in all terminals). In previous versions of Ubuntu (Terminator versions prior to 0.14) Terminator would pick all settings from GNOME Terminal, including character encoding (ISO-8859-15 in my case). Apparently this is no longer the case in Ubuntu 10....

March 29, 2010 · 1 min · alj

Tip: Moving the titlebar buttons back where they belong in Ubuntu 10.04

I’m not going to dwell on the subject – The Ubuntu Design team (and in the end Mark Shuttleworth) decided to change the titlebar button layout as part of the new Light GNOME theme (which is a really nice theme); for more information read this article Being the good Ubuntu fanboy that I am, I have really tried to embrace this new layout – But every time I move the mouse pointer to the right side of the window only to find the close button missing, I grew increasingly frustrated....

March 29, 2010 · 1 min · alj

Tip: How to fix the ATI driver when upgrading Ubuntu 9.10 to 10.04

I decided to upgrade my laptop to 10.04 beta 1. When the update was done (something I had to do at home because the damn Update Manager does not work with proxies, at least not when running it manually) I was left without a working Xorg configuration, apparently because the fglrx (non-free) ATI driver did not support the x-server used in Lucid. According to the release notes, the fix is the use the open source driver (ati) instead....

March 28, 2010 · 1 min · alj

Irssi notifications using Desktop Notifications and Minivan

I was pretty happy with solution to get notifications from Irssi though it had some shortcomings. A couple of days ago a colleague made me aware of a Perl modules written by another colleague (Anton Berezin) called IPC::Message::Minivan which, it turns out, is perfect for my notification script. Basing the notifications on Minivan combine the speed of using something like Dbus locally (instant notifications) with the convenience of my previous script (notifications over the network, able to handle multiple clients)....

March 6, 2010 · 3 min · alj

Facebook Chat in bitlbee

Facebook now supports XMPP. Yay. Using Facebook Chat in bitlbee is pretty straight forward (I am running 1.2.4, older versions of bitlbee require a bit more tweaking, consult the manual). For Facebook Chat through XMPP to work you need to set a Facebook username. In the &bitlbee channel account add jabber <username>@chat.facebook.com> <Facebook password> account on that’s it. Edit (04-03-2011): As some has pointed out, you need to input your username in lowercase....

February 12, 2010 · 1 min · alj

Yet another way to get Irssi notifications on your Linux desktop

For a better solution, see this article – I am keeping this post online because it makes it possible to implement distributed notifications with Perl modules included in the Ubuntu repositories. One of the things lacking (in my opinion at least) when using Irssi and GNU Screen is the lack of a way for Irssi to alert you when you are not looking at the terminal. I have looked at many implementations for libnotify (default in Ubuntu), Mumbles (Growl for Linux) and Dzen....

February 6, 2010 · 3 min · alj

Ubuntu: Fixing Java in Firefox 3.6

If you have installed Firefox 3.6, you will discover that Java is no longer working For i386 (32 bit Ubuntu): $ sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 50 For amd64 (64 bit Ubuntu): $ sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so 50 ...

January 28, 2010 · 1 min · alj

UFW: Blocking outgoing connections

Note: This is known to work for a machine acting as masquerading firewall for an entire network. I wanted to block connections to certain outbound ports. After some trial and errors I found something that works Add the following to /etc/ufw/before.rules: -A ufw-before-forward -s <SOURCE IP> ! -d <LOCAL NET>/24 -p tcp -m tcp --dport <DEST PORT> -j DROP it’s as simple as that. Remember to reload all the rules:...

January 24, 2010 · 1 min · alj