Ubuntu – Distribution Agnostic Virtualbox Auto-Install Script

Just threw together a very simplistic shell script that will:

1. Add the Virtualbox repository to /etc/apt/sources.list and will automatically build it by pulling the “Codename” variable from ‘lsb_release’.

2. Download and install the GPG key associated with the Virtualbox repository.

3. Perform an ‘apt-get update’ and install Virtualbox with no prompts.

You can checkout the code from the Github below and the script is ‘build_vbox’.


How to move window buttons back to right in Ubuntu 10.X

As the Ubuntu’s new tag line says “It’s time for a change.”, indeed a lot of change has been implemented to the operating system, applications and the interface. There are few which you will find it interesting and useful and while few others might annoy you because of a sudden change.

I never liked Ubuntu much, and it seems many people are complaining against it saying that the move to have the buttons at the left hand side (close, maximize, minimize) like we have in Apple OS was a bad one. People find the sudden shift hard to come to terms with.

Tell you what, it’s extremely easy to move the buttons back to the right hand side. All you need is a bit of configuration tweaking from Gnome Configuration Editor and you are done. To begin, open gconf-editor. Either type it in terminal and hit enter or press Alt+F2 and run it from there.

Once you open gconf-editor, navigate to


You can see the top class ‘app‘ in the left hand pane. Now navigate to the path mentioned above. Then, in the right hand pane, change the value of the key button_layout from




You can either right click the key value and edit it, or just double click it and start typing. Once you have changed the value, hit the enter key and that’s it. All the windows will now have buttons on the right.

There is still one problem however, as you can see, the graphics used for the buttons are not the same for all 3 buttons, so they look a bit weird. You can either change the theme, or change the graphics for the buttons to get a smoother blending.

Installing Emacs on Ubuntu 10.04 from Source

Here is how you can compile the mother of all editors on Ubuntu 10.04 from source:

1. Obtain the source archive for Emacs from ftp://ftp.gnu.org/gnu/emacs/

2. Open a Terminal in Ubuntu and type:

A. sudo apt-get install build-essential libxpm-dev libgif-dev libtiff4-dev

B. This will install the necessary packages to compile Emacs.

3. Extract the Emacs archive downloaded in step 1 by typing: tar xvzf emacs-major_version-minor_version.tar.gz.

4. Change to the Emacs source directory. a.k.a. cd emacs-major_version-minor_version

5. Type: ./configure

6. Type: make

7. Type: sudo make install