Delete all thumbs.db

Windows creates in every folder with pictures a thumbs.db file.

Linux doesn’t need them, so here is a simple command to get rid of them.

sudo find /home/user -name Thumbs.db -exec rm {} \;

Remove empty directories

To remove empty directories in a directory structure use the following command :

sudo find /begin/here -type d -empty -delete

Install Firefox 4 Beta in Ubuntu 10.04

Installing Firefox 4 Beta using Synaptec Package Manager

  1. Open Synaptec Package Manager
  2. Click Setting > Repositories
  3. Select tab “Other Software”
  4. Click on the “+ Add” button and type the following in the APT line :
  5. Click on “+ Add Source” and close Software Sources
  6. Hit the Reload button in SPM
  7. Search for “firefox 4”
  8. Mark the Firefox 4 package for Install. Agree to some additional required packages.
  9. Hit Apply in SPM and your FireFox 4 Beta is installed
  10. You can find it under Applications > Internet > Minefield 4.0 Web Browser

Mindfield is the code name for experimental versions of Mozilla for the Linux Platform

Installing Firefox 4 Beta using CLI

Open a Terminal and type the following commands:
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update
sudo apt-get install firefox-4.0

Compiz not working in Ubuntu 10.04

Tried to install AWN on my desktop today. After installing a custom theme, AWN told me to enable compiz first.

Each time I tried to start Compiz it would crash.
After a little search on the Internet I found the following.

Turns out I didn’t completely installed Compiz.
After running this command in a Terminal all my problems disappeared.

sudo apt-get install compiz compiz-plugins compiz-gnome compiz-core compiz-fusion-plugins-main compiz-fusion-plugins-extra compizconfig-backend-gconf

Ubuntu 10.04 Post-Install Guide: What to do and try after installing Lucid Lynx!

What to do and try after installing Lucid Lynx?

Read this article and find out.

Ubuntu 10.04 with Brother DCP-357c

My home computer is still running Windows XP.
The main reason for this is my printer. It’s a Brother DCP-357c.

For a long time I tried to make it work under Ubuntu.
I was giving up the hope that it would ever work.
After upgrading my laptop to Ubuntu 10.04 I thought to give it one more try.


Here’s how I did it.

First install the Brother drivers with Synaptic. Search for “Brother” and you will find the following packages.

Install them for printing support.

Then download and install brscan2 from the Brother site.
You can find it here.

Open a terminal and type


You’ll get a output similar like this:

Bus 006 Device 002: ID 04f9:01e4 Brother Industries, Ltd DCP-357C

After ID you will find the Vendor ID (04f9) and the Product ID (01e4)
You will need both of them, so remember them.

In the terminal type the following:

gksudo gedit /lib/udev/rules.d/40-libsane.rules

Add the following lines to the end of the hardware list

#Brother DCP-357C
ATTRS{idVendor}==”04f9″, ATTRS{idProduct}==”01e4″, ENV{libsane_matched}=”yes”

Save the file and restart your computer.
After the restart Ubuntu will find your printer but gives the message that the correct drivers are not installed.
Chose to manually select the driver and select the Brother DCP-353C. Print the test page and everything should work like a charm.

Try to scan with “Simple scan” from the menu. This should work also.