No free space on ext3 filesystem, How To free it up?

> March 17th, 2010 ---

No free space on ext3 filesystem, How To free it up when deleting files takes no effect?

The solution: manually set the number of reserved filesystem blocks to zero:

sudo tune2fs -r 0 /dev/sdb2

Replace /dev/sdb2 with your partition.

Howto: switch off / spin down external USB / Firewire disk / hard drive

> February 18th, 2009 ---

Recently I’ve bought ssd drive for my notebook and 2.5″ Enclosure for the old hdd.

My 2.5″ Enclosure has no switch on/off, so … to turn it off I have to plug and unplug the usb cable, but … there’s a better way

All I need to do is to install sg3-utils, and use two simple commands to turn off/on my external usb drive.

apt-get install sg3-utils

and to turn it off/on

sg_start /dev/sdb –stop
sg_start /dev/sdb –start

that’s all!

How to move all MySQL databases to another server

> February 16th, 2009 ---

How to move all MySQL databases to a new server in a few simple steps.

Let’s assume your original location of mysql is at /media/disk/…
Your new location of mysql is at /
You just need to synchronize two directories /etc/mysql and /var/lib/mysql/. Remember to stop mysql before doing this, and start it after synchronisation.

/etc/init.d/mysql stop
rsync -rav /media/disk/var/lib/mysql/* /var/lib/mysql/
rsync -rav /etc/mysql/* /etc/mysql/
/etc/init.d/mysql start

that’s all!

Force Enable Incompatible Extensions In Firefox 3

> June 26th, 2008 ---

Lat week, I installed Firefox 3 final release I use lots of very usefull addons with my Firefox 2, and unfortunately some of them were disabled after upgrading from FF2 to FF3.

After some Googling, I found something that solved my problem.

The solution on How to Force Enable Incompatible Extensions In Firefox 3 is very simple:

  • Type about:config into Firefox’s address bar
  • Right-click anywhere. Choose New>Boolean. Make the name of your new config value extensions.checkCompatibility and set it to false.
  • Make another new boolean pair called extensions.checkUpdateSecurity and set the value to false
  • Restart Firefox.
  • Now, you can activate your incompatible extension, and check if it works with Firefox 3

That’s all

skype: error while loading shared libraries: libsigc-2.0.so.0: wrong ELF class: ELFCLASS64

> August 30th, 2007 ---

What to do if you got this error on 64bit linux distro, you’ve downloaded skype static and you’ve copied libsigc-2.0.so.0 and libsigc-2.0.so.0.0.0 to /lib32?:

that was wrong! - and the error is:

skype: error while loading shared libraries: libsigc-2.0.so.0: wrong ELF class: ELFCLASS64

Solution is quite simple - just wget libsigc++-2.0-0c2a_2.0.16-3_i386.deb (or some other version appropriate to your distro (remember to get 32bit version!).

After downloading go into libsigc++-2.0-0c2a_2.0.16-3_i386.deb/CONTENT/usr/lib

and unpack libsigc-2.0.so.0 and libsigc-2.0.so.0.0.0 to /lib32

That’s all!

skype: error while loading shared libraries: libsigc-2.0.so.0: cannot open shared object file: No such file or directory

> August 30th, 2007 ---

What to do if you got this error on 64bit linux distro and you’ve downloaded skype static?:

skype: error while loading shared libraries: libsigc-2.0.so.0: cannot open shared object file: No such file or directory

Solution is quite simple - just wget libsigc++-2.0-0c2a_2.0.16-3_i386.deb (or some other version appropriate to your distro (remember to get 32bit version!).

After downloading go into libsigc++-2.0-0c2a_2.0.16-3_i386.deb/CONTENT/usr/lib

and unpack libsigc-2.0.so.0 and libsigc-2.0.so.0.0.0 to /lib32

That’s all!

How to check uuid for specified disk partition?

> August 27th, 2007 ---

It’s very eay to check uuid, just ls some dir ;-):

ls -l /dev/disk/by-uuid/

that’s all!

How to uninstall Google Desktop for Linux?

> August 20th, 2007 ---

How to uninstall Google Desktop for Linux?

If you use Fedora, Mandrake or some other rpm based linux distro:

run the command: rpm -e google-desktop-linux


If you use Debian, Ubuntu, Kubuntu or some other deb based linux distro:

run the command: dpkg -r google-desktop-linux

FATAL: Could not determine fully qualified hostname. Please set ‘visible_hostname’

> February 9th, 2007 ---

You get:

FATAL: Could not determine fully qualified hostname. Please set ‘visible_hostname’
After installing squid (=after apt-getting squid on Ubuntu)

Solution is very simple.

Open your squid.conf file (/etc/squid/squid.conf) find out visible_hostname and put any name after visible_hostname:

visible_hostname myLocalDesktopComputer

That’s all.

Couldn’t open: /dev/mga_vid, Error opening/initializing the selected video_out (-vo) device.

> January 12th, 2007 ---

Couldn’t open: /dev/mga_vid, Error opening/initializing the selected video_out (-vo) device.

i u got this error while trying mplayer to play video on Linux (Kubuntu, Ubuntu or other).

The solution is very simple:

Right click on mplayer window, go to preferences and oopen Video tab and choose correct driver. If you use OpenGL gl driver should be OK.