Containing whatever I enthuse over

Archive for the ‘Linux’ Category

Exporting mp3 Files

Posted by clissold345 on January 19, 2007

To export an mp3 file from Audacity you need the file libmp3lame.so. One way of getting this file is to install the packages liblame0 and liblame-dev from the Mulitverse repository.

When you first export an mp3 file Audacity will prompt you for the location of the file libmp3lame.so. The file should be in the folder /usr/lib

(This short note applies to Ubuntu 6.10 and Audacity 1.2.4.)


Posted in Linux | Leave a Comment »

Resume Download with KTorrent

Posted by clissold345 on December 12, 2006

This short note applies to KTorrent 2.0.3. I had to reinstall Ubuntu and KTorrent and I wanted to resume an incomplete download. By default KTorrent creates a folder containing the files in a torrent, so in order to resume the download, when you’ve searched for and found the torrent file, you save the torrent to the folder containing the folder containing the incomplete download.

For example, if the incomplete download is in /videos/myfilm, save the torrent to /videos, then KTorrent will resume the download (which is what I wanted). If you save the torrent to /videos/myfilm, KTorrent will create a new folder /videos/myfilm/myfilm and will download from scratch (which is not what I wanted).

Posted in Linux | 1 Comment »

Grub Stops Working

Posted by clissold345 on November 14, 2006

Suppose that you have linux and another operating system (e.g. Windows) installed on your PC. You normally start your PC using Grub (Grand Unified Bootloader). Then one day Grub stops working. The instructions below give one possible way of fixing the problem.

Grub consists of two stages: stage1 and stage2. I assume Grub stage1 was installed on the first partition of your hard drive and Grub stage2 is installed on your linux partition. I assume that the problem with Grub is that Grub stage1 is corrupt or has been overwritten.

Boot your PC from a linux rescue cd (the cd needs to have a copy of grub on it). I used System Rescue Cd.

At the command prompt enter:


to start the Grub command shell.

To find which partition is your linux partition enter:

find /boot/grub/stage1

To set the Grub root device to be your linux partition enter:

root (hd0,x)

where “(hd0,x)” is the partition name output by the previous command. On my computer the linux partition is (hd0,6).

To reinstall Grub stage1 enter:

setup (hd0)

To quit the Grub command shell enter:


To reboot your PC enter:

shutdown -r now

Remove the linux rescue cd from the cd drive. Your PC should now reboot using Grub (just as it did before the problem occurred).

Note: The above instructions work for System Rescue Cd version 0.2.19

Posted in Linux | Leave a Comment »

Epson Ink Levels

Posted by clissold345 on November 1, 2006

I have an Epson Stylus Photo R300 printer. If your printer is /dev/usb/lp0, the following command (issued as root):

escputil -i -r /dev/usb/lp0 -u

displays the ink levels for the six ink cartridges in the printer.

Here is an example of the output:

Output from escputil

If you’re using Centos, escputil can be found in the gimp-print-utils package.

If you’re using Ubuntu (as I am), escputil can be found in the escputil package. On Ubuntu my printer is /dev/usblp0 so the command is:

escputil -i -r /dev/usblp0

Posted in Linux | Leave a Comment »

French Accents

Posted by clissold345 on October 31, 2006

To get French accents in a KDE environment follow these instructions. (They work for KDE 3.3 using a UK keyboard.)

In Control Centre | Regional & Accessibility | Keyboard Layout, click on the Xkb Options tab to set the ¨Compose¨ key.

In Control Centre | Regional & Accessibility | Keyboard Layout, choose the ¨intl¨ variant of the UK keyboard.

If you hold down the “Compose” key, “,” and “c” at the same time, you get ç

If you press Caps Lock and then hold down the “Compose” key, “,” and “c” at the same time, you get Ç

¨`¨ followed by ¨e¨ gives è

¨´¨ followed by ¨e¨ gives é

¨^¨ followed by ¨a¨ gives â

and so on.

Please tell me if you know of a more elegant way of getting French accents on a UK keyboard in KDE.

Posted in Linux | Leave a Comment »