CLI Disk Usage

Modern Linux systems have plenty of tools for both Gnome and Kde to analyze the disk space. But if you log into a server via SSH or similar, you’re out of luck. You need a tool for Cli Disk Usage analytics. That tool is ncdu.

You can install it easy:

sudo apt-get install ncdu

Issuing ncdu inside the folder you want to check will open a cool ncurses interface, really easy to use 🙂

Converting disc images to another format on Linux

While this information is available all over the net, i find myself losing enough time now and again trying to figure out how to convert a disk image to iso or something useful for that matter. So i decided to put together a small tutorial on converting disk images to another format on Linux, so i can easily access it whenever i need it.

The most popular disk image formats i’ve had to deal with are: iso (which Ubuntu handles by default perfectly), CloneCD/IMG (used by CloneCD), CUE/BIN, MDF (created by Alcohol 120%), NRG (Nero images) and last but not least DMG (format used mainly by Apple).

Since Linux handles very well .iso files, the idea is to convert any of the image types listed into iso and then the job is easy. For all of the formats there are tools to do just that. You can install them as follows:

sudo apt-get install ccd2iso bchunk mdf2iso nrg2iso dmg2img

Example usage:

# ccd
ccd2iso /path/to/example.img /path/to/example.iso
# bin/cue
bchunk /path/to/example.bin /path/to/example.cue /path/to/example.iso 
# mdf
mdf2iso /path/to/example.mdf /path/to/example.iso 
# nrg
nrg2iso /path/to/example.nrg /path/to/example.iso 
# dmg
dmg2img filename.dmg

Some of those formats can be also mounted using the CLI:

# ccd/img
sudo mount -o loop example.img /media/example 
# nrg 
sudo mount -o loop,offset=307200 /path/to/example.nrg /media/example 
# dmg
dmg2img /path/to/example.dmg /path/to/example.img 
sudo modprobe hfsplus
sudo mount -t hfsplus -o loop example.img /media/example

Install GIMP 2.7 on Ubuntu

This tutorial will show you how to install GIMP 2.7 on Ubuntu Jaunty without affecting the default GIMP 2.6 install

sudo apt-get install ruby # needed by gegl
git clone git://
git clone git://
cd babl
sudo make install
cd ../gegl
sudo make install
sudo apt-get install libjasper-dev # the jasper libs are required to provide JPEG2000 support in GIMP
cd ..
tar jxvf gimp-2.7.0.tar.bz2
cd gimp-2.7.0
./configure --prefix=/opt/gimp-2.7
sudo make install

Now just create a file gimp-2.7 inside /usr/bin as follows:


export PATH

/opt/gimp-2.7/bin/gimp-2.7 "[email protected]"

Run /usr/bin/gimp-2.7 🙂

Chmod only files or chmod only folders

I moved the blog the a new server and i realised that all the permissions got screwed up on the process. All files and folders were having chmod 777, and that’s not exactly ideal. After digging a bit on google on how to chmod only files or chmod only folders, i came up with this:

1. Recursive chmod only files within this folder:
find . -type f -exec chmod 0600 {} ;

2. Recursive chmod only folders within this folder:
find . -type d -exec chmod 0755 {} ;

Hope this helps!

Google Chrome for Linux and Mac with CrossOver Chromium

Two weeks ago i have posted a tutorial on how to make Google Chrome run on Linux using wine. That gave Linux users the option to test the browser without having to go to a Windows machine, but it was not perfect as it lacked HTTPS support.

CrossOver packaged for both Linux and Mac the browser and it supports HTTPS. Check it out at:

Note that this package does NOT play flash files. In order to get flash pages to play you just have to go to and install the flash player as if you were running windows.

Install Adobe Flash Player 10 on Ubuntu 64bit

UPDATE: Native Adobe 64bit Flash Player has been released.
I have put together a small tutorial on how to install the native flash player 10 64bit plugin for linux.

Adobe recently launched Flash Player 10 Beta codenamed “Astro”. Great news, as it supports a bunch of new features, but as usually nothing yet for the 64 bit users. I’m going to show you how to get flash player 10 running on Ubuntu 64bit using nspluginwrapper. Before doing anything in the terminal make sure you close Firefox else you might not get the expected result.

1. Make sure you don’t have any other flash plugin installed on your system:
sudo apt-get remove -y –purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper

1.1 To be sure we don’t have any other old flash libs let’s cleanup the folders where it usually resides:
sudo rm -f /usr/lib/mozilla/plugins/*flash*
sudo rm -f ~/.mozilla/plugins/*flash*
sudo rm -f /usr/lib/firefox/plugins/*flash*
sudo rm -rfd /usr/lib/nspluginwrapper

2. Install ia32-libs and latest nspluginwrapper
sudo apt-get install ia32-libs nspluginwrapper

3. Download the latest flash player from Adobe Labs and extract it:
cd ~
tar zxvf flashplayer10_install_linux_051508.tar.gz
sudo cp install_flash_player_10_linux/ /usr/lib/mozilla/plugins/
rm -rf ~/install_flash_player_10_linux/

4. Use nspluginwrapper to install the plugin and link it to firefox
sudo nspluginwrapper -i /usr/lib/mozilla/plugins/
sudo ln -sf /usr/lib/nspluginwrapper/plugins/ /usr/lib/mozilla/plugins/
sudo ln -sf /usr/lib/nspluginwrapper/plugins/ /usr/lib/firefox-addons/plugins/

EDIT: here is how to install flash player 10 on 64bit systems for Liferea and Vuze

sudo ln -sf /usr/lib/nspluginwrapper/plugins/ /usr/lib/xulrunner-addons/plugins/

5. Start Firefox and type in the address bar about:plugins and press enter. You should get a result similar to this one:


6. Go to and test the new features.

EDIT: if you are lazy by nature, you can just grab install_flash_player_10_ubuntu64bit, a small script i put together. Make it executable (chmox +x install_flash_player_10_ubuntu64bit) and run it in terminal. It will kill ask you for root password the kill any Firefox you might have running and install the flash player 10

NOTE: for the new and improved script follow this URL: