Archive for the ‘Kubuntu’ Category

Remove all binaries from a directory tree

June 4, 2008

Here is a one liner that packs some serious bash punch:

rm `find . -type f -exec file ‘{}’ \; | grep -i linux | awk -F: ‘{print $1}’`

Restarting Sound Server in Kubuntu

May 29, 2008

If occasionally your sound stops working, you can try to restart the sound server:

sudo /etc/init.d/alsa-utils restart

If this doesn’t work, try to kill the processes that block it:

1) Identify them:

lsof | grep pcm

example output: esd 5080 name 70u CHR 116,6 13639 /dev/snd/pcmC0D0p

2) kill ’em:

kill -9 5080

3) restart alsa:

sudo /etc/init.d/alsa-utils restart

That should do the trick. Thanks to the person who posted it here.

Linux, external firewire hard drive and NTFS

January 19, 2008

I always had problems to write on my external NTFS hard drive. I just downloaded the ntfs-3g package and mounted the device with file type ntfs-3g. Now I can, even as a normal user, access and write on the disk.

[root@mymachine:~]$ aptitude install ntfs-3g
[root@mymachine:~]$ mount /dev/sdb1 /mnt/external-disk/ -t ntfs-3g

Ralink RT61 Wireless PCI and Kubuntu

December 30, 2007

It has always been a pain in the ass to get the wireless card with a Ralink RT61 chipset to work with Linux. Here’s how it worked for me.

  1. Edit /etc/modprobe.d/blacklist
    and add
    “blacklist rt61pci”
    “blacklist rt2x00pci”
    “blacklist rt2x00lib”
  2. Download and install ndiswrapper
  3. Download the Windows driver (you need the rt61.inf)
  4. “ndiswrapper -i rt61.inf”
  5. “ndiswrapper -l” checks the status
  6. “modprobe ndiswrapper”
  7. Configure your interface in /etc/network/interface
  8. If you want to start ndiswrapper at boot time add “ndiswrapper” in a line to /etc/modules

That’s it.

Data Loss after Copying to USB Stick

December 30, 2007

Sometimes, after I copied files to my USB stick with Kubuntu Linux, the data was corrupted. Furthermore, the copying process seemed far to quick for USB 1.0. In order to make sure that all your data gets copied, change to the directory where to USB stick is mounted, e.g. /mnt/stick/ and use the “sync” command. sync will flush the file system buffers. After sync has finished, you can unmount the stick and all the data should be on it.

Gutsy Upgrade: No More DVD Playback in Kaffeine

December 27, 2007

I could not play DVDs anymore after installing Kubuntu Gutsy Gibbon (7.10). I always got a message “xine: couldn’t find demux for >dvd:///dev/scd0<“. In this forum I found people with the same problem. Apparently, installing the “libxine1-ffmpeg” library does the trick. This can be done easily: “aptitude install libxine1-ffmpeg“.