Archive for the 'Linux' Category

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

Wednesday, 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

Wednesday, 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 […]

How to move all MySQL databases to another server

Monday, 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 stoprsync -rav […]

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

Thursday, 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 […]

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

Thursday, 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 […]

How to check uuid for specified disk partition?

Monday, 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?

Monday, 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’

Friday, 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.

Friday, 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.

Linux & RAID - very simple how to

Tuesday, November 14th, 2006

Everything You Always Wanted to Know About RAID in Linux But Were Afraid to Ask
What you need:
mdadm
mdadm is a tool for managing Linux Software RAID arrays, it can create, assemble, report on, and monitor arrays.
You cant find in your distro (use your distro’s package manager to install it) or at: http://neilb.web.cse.unsw.edu.au/source/mdadm/ or http://www.kernel.org/pub/linux/utils/raid/mdadm/ or any […]