Thursday, March 31, 2011

Upgrading Iceweasel4 From Experimental

In a former post I've installed iceweasel 4 from ( version 4.0-1~bpo60+1 ).
To upgrade to the version of experimental I've added this line to /etc/apt/sources.list :

deb experimental main contrib non-free

As root :
apt-get update
apt-get install -t experimental iceweasel

Iceweasel was upgraded to version 4.0-3.

Friday, March 25, 2011

Firefox Extensions - FabTabs

FabTabs, is kind of an experimental extension for now that will color your Firefox Tabs in a way you have never seen before. By taking a small screenshot of the website you are currently viewing, and calculating the most commonly used color from that screenshot, it tries to take the 1 essential color from the website and applies it to the tab.

Shared Folders In Virtualbox With Linux Guest

Virtualbox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Read here to get started.
To download go to this page and choose the appropriate package.
After installing the Guest Additions, you can use the Shared Folders Functionality. Make a folder Share in the home directory of your host. When running your Linux guest go to Devices > Shared Folders...( the window running the guest ) click on the icon Add Shared Folder ( Ins ) and navigate to folder Share in your home directory ( host ). Check Make Permanent. Then as root in your guest :
mkdir /media/Share and add this line to your /etc/fstab :

Share /media/Share vboxsf defaults,rw,uid=1000,gid=1000 0 0

Reboot your guest or in your guest mount -a as root.....

Wednesday, March 23, 2011

Run Iceweasel 4 On Squeeze

Go to and just follow the instructions....
I was only a bit reluctant because libcairo2 had to be upgraded from version 1.8.10-6 ( stable ) to version 1.10.2-1.1~bpo60+1 ( squeeze-backports ). I use a patched version of libcairo2 : , but apparently you don't need to patch libcairo2 any more....

Still needed are these lines in ~/.fonts.conf :

<!-- lcdnone, lcddefault, lcdlight, lcdlegacy -->
<match target="font">
<edit mode="assign" name="lcdfilter">

The menu fonts were too tiny so I had to add a userChrome.css with :

/* Global UI font */
* { font-size: 11pt !important;
font-family: Candara !important;

Sunday, March 20, 2011

Compiling Firefox 4 RC

Mozilla Firefox 4 is almost here! Out of curiosity I compiled the source using Debian Sid in Virtualbox.
See some former posts : and

.mozconfig ( added to folder mozilla-2.0 after extracting source ) :
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-release
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-optimize
ac_add_options --enable-official-branding
ac_add_options --enable-system-cairo
ac_add_options --enable-application=browser
mk_add_options MOZ_CO_PROJECT=browser

In mozilla-2.0 open a terminal and enter make -f Once the compile is done, the binaries will be in ../mozilla-2.0/ff-release/dist/bin/. After that cd mozilla-2.0/ff-release && make package. Package will be in : mozilla-2.0/ff-release/dist/ (tar.bz2). In my case : firefox-4.0.en-US.linux-x86_64.tar.bz2.

Extracting firefox-4.0.en-US.linux-x86_64.tar.bz2 will yield a folder firefox which I renamed firefox-4.0rc2 and moved into my home directory. To test I opened a terminal inside this folder and I got this error after the command ./firefox -P ( to create a new profile ) : ./firefox-bin : /usr/lib/ : version `GLIBCXX_3.4.14` not found ( required by ./ ).

Solution : add testing repository to your sources.list, update and in synaptic search for package libstdc++6. In synaptic : Package > Force Version...
libstdc++6 (4.4.5-8) will be upgraded to 4.5.2-4 and package gcc-4.5-base (4.5.2-4) will be installed. After that remove testing from your sources.list.

Add an entry in your menu and you're done....

Thursday, March 10, 2011

Multi-Column View of Google Search Results

Show Google Results in multiple columns. The default number of columns is set to 2. But it can be easily changed to other number using the Alt+1/2/3 shortcut. ( conflicts with Alt key for changing tabs )
First you need the Greasemonkey addon :
After that you add the following script :
You will need to choose Instant is off....

Alternative :

Phatch: Simple Batch Image Processing Tool

Whether it is resizing, shrinking, applying shadow or watermark or tag, phatch is perfect tool if you have a lot of photos you want to process.
From their site :
Phatch is an user friendly, cross-platform Photo Batch Processor and Exif Renamer with a nice graphical user interface. Phatch handles all popular image formats and can duplicate (sub)folder hierarchies. Phatch can batch resize, rotate, apply shadows, perspective, rounded corners, … and do much more actions in minutes instead of hours or days if you do it manually.
Phatch starts by default with an empty action list, with the logo shown. You start Phatch by adding actions out of a list of predefined functions ( + sign ). The order of the actions is important. If you want to change the order of the actions, you can just drag and drop them as you wish. The last action should always be a Save action. It would make no sense to manipulate images and not to save the result. Your processed images will be found in the location specified in your Save action.

Your favorite actionlist can be saved with Action List > Save As...

Friday, March 4, 2011

Improved Font Rendering With Lcd Filter Patches In Cairo

In a former post I wrote about a rebuilt libcairo2 with David Turner's patch to get better font rendering. Fonts looked great to my opinion, but maybe a little fuzzy to others.

So I have been looking a little bit further and came across these two pages :

I don't think any patching of libxft2 in Debian Squeeze is needed, so I describe here what I've done to patch libcairo2 :

(1) Go to : and download cairo-ubuntu.tar.gz.
tar xf cairo-ubuntu.tar.gz will yield a folder cairo-ubuntu containing cairo-respect-fontconfig.patch.
(2) Go to : and download cairo_1.8.10-2ubuntu1.debian.tar.gz.
tar xf tar xf cairo_1.8.10-2ubuntu1.debian.tar.gz will yield a folder debian/patches.
Inside are : 04_lcd_filter.patch and 06_Xlib-Xcb-Hand-off-EXTEND_PAD-to-XRender.patch.

Install packages needed to compile :
As root : apt-get install build-essential devscripts fakeroot
apt-get build-dep cairo

Make a folder in your home directory where all the work gets done :
mkdir source && cd source Inside source : mkdir cairo-patches cairo
Move these three patches from above to folder cairo-patches :

Getting source and patching :
cd cairo
apt-get source cairo
cd ./cairo-*
cp ../../cairo-patches/* ./debian/patches/
patch -p1 -i ./debian/patches/cairo-respect-fontconfig.patch
patch -p1 -i ./debian/patches/04_lcd_filter.patch
patch -p1 -i ./debian/patches/06_Xlib-Xcb-Hand-off-EXTEND_PAD-to-XRender.patch

Modify the changelog :
dch -i
A text editor will open ( in my case nano ) and write something after the asterisk (*) :
Additional lcd filter patches
Save and close.
Compile packges and copy it to debs folder:
dpkg-buildpackage -rfakeroot -us -uc
Move one folder up : cd ..
The one we need : libcairo2_1.8.10-6.1_amd64.deb ( in my case on a amd64 )
As root : dpkg -i libcairo2_1.8.10-6.1_amd64.deb

Enable the lcd filter :
<!-- lcdnone, lcddefault, lcdlight, lcdlegacy -->
<match target="font">
<edit mode="assign" name="lcdfilter">

My complete .fonts.conf