The 'default' Raspberry-Pi image Raspbian comes with a lot of overhead which is mostly not wanted at least in my case. Here is a little aptitude line which gets rid of all the stuff we don't want on our little embedded system like Xorg server, fonts, X Applications, LXDE and so forth. To slim/trim down your Raspbian installation.

sudo apt-get remove --purge x11-common x11-utils x11-xkb-utils x11-xserver-utils \
  xarchiver xauth xkb-data xinit lightdm lightdm-gtk-greeter consolekit \
  libx{composite,cb,cursor,damage,dmcp,ext,font,ft,i,inerama,kbfile,klavier,mu,pm,randr,render,res,t,xf86}* \
  lxde* lx{input,menu-data,panel,polkit,randr,session,session-edit,shortcut,task,terminal} \
  obconf openbox gtk* libgtk* python-pygame python-tk python3-tk scratch tsconf omxplayer squeak-vm \
  penguinspuzzle mupdf netsurf-gtk menu-xdg

sudo apt-get autoremove && sudo apt-get autoclean

boxfs for Ubuntu Precise Quantal ppa

Mon, 17 Sep 2012 by Frank Lazzarini

Do you have a Account. For those who do not know, it is a cloud storage system just like but it uses an open standard API called OpenBox API. Domenico Rotiroti wrote a fuse driver called boxfs to mount your …

read more

Conky Amarok integration - Show current playing song

Tue, 10 Jul 2012 by Frank Lazzarini

Last weekend, I worked a little bit on a python script that connects via dbus to Amarok, and fetches information of the currently playing track. It also has the feature to copy the cover art to a fix location so you can use it in conky as a static image …

read more

Migrate resources depending on ocf:pacemaker:ping RA with Pacemaker

Thu, 07 Jun 2012 by Frank Lazzarini

The job we want to accomplish is quite simple. Let's just say you have two nodes nodeA and nodeB on two different locations which both have a individual gateways. Now let's imagine the following scenario, gatewayA goes down, and resulting in this there is no more internet connectivity on nodeA …

read more

Git visualization with gource

Sun, 06 May 2012 by Frank Lazzarini

Are you using git/svn/mercurial/bazaar as version control system and you ever wanted to visualize your work, how the project developed over time well Gource is there to visualize all this in a beautiful way. It takes the history of your svn/git/mercurial/bazaar repository and visualizes …

read more

Install Firebird 2.5 onto Ubuntu 10.04 via PPA

Fri, 27 Apr 2012 by Frank Lazzarini

As of Ubuntu 12.04 Firebird 2.5 packages are included in the official repositories, but here I am focusing on installing Firebird 2.5 on older installations with Ubuntu 10.04 LTS. So you want to install Firebird 2.5 onto Ubuntu 10.04 without the need to install …

read more

Run through folder add files with a certain extension to a list - Python Oneliner

Mon, 26 Mar 2012 by Frank Lazzarini

Here is great Python Oneliner I came across, to put a list of files ending with a certain extension or name to a list, all this in just one line...

import os

list = []
list += [each for each in os.listdir('path/to/files') if each.endswith('.jpg')]
read more

Gtk using ugly theme in KDE 4.8.1 on Ubuntu 11.10 Oneiric

Sun, 25 Mar 2012 by Frank Lazzarini

I lately updated my laptop with the latest packages and I've got KDE 4.8.1 from the ppa. To my surprise all the gtk apps that I have installed look terrible, with the standard GTK look, apps like firefox/pidgin and so on. The default theme look was change …

read more

Syncing 8TB with DRBD (what a beauty)

Thu, 22 Mar 2012 by Frank Lazzarini

Hey all, this is just a screenshot, for all you nerds out there. Syncing 8TB of data with Drbd via a single 1GBps connection, crazy I know, but it was worth the test :)

read more

Python resize image keeping aspect ratio

Thu, 22 Mar 2012 by Frank Lazzarini

This time I am posting just a little snippet which came in handy with the latest web development I am doing. The problem was to resize an uploaded image on the fly and creating an according thumbnail for that image. For testing purposes I create a script that could be …

read more