Tag Archives: Ubuntu

[Fixed] K3b doesn’t burn mp3 to CD

On Ubuntu 10.10, if you get an error message as the following when trying to create audio CD from mp3:

“Unable to handle the following files due to an unsupported format:
You may manually convert these audio files to wave using another application supporting the audio format and then add the wave files to the K3b project.”

Check if you have libk3b6-extracodecs installed, if not just;

$ sudo apt-get install libk3b6-extracodecs

It fixed my problem.

Credit: [SOLVED] Trying to BURN mp3’s to CD

Banshee crashes: The database disk image is malformed

Banshee just crashed on me with the following error message:

[Info  20:44:59.949] Running Banshee 1.6.1: [Ubuntu 10.04 LTS (linux-gnu, x86_64) @ 2010-06-18 18:47:49 UTC]
[Info  20:45:01.043] All services are started 0.949921
Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Mono.Data.Sqlite.SqliteException: The database disk image is malformed
database disk image is malformed
at Mono.Data.Sqlite.Sqlite3.Reset (Mono.Data.Sqlite.SqliteStatement stmt) [0x00000]
at Mono.Data.Sqlite.Sqlite3.Step (Mono.Data.Sqlite.SqliteStatement stmt) [0x00000]
at Mono.Data.Sqlite.SqliteCommand.ExecuteNonQuery () [0x00000]
at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteCommand:ExecuteNonQuery ()
at Hyena.Data.Sqlite.HyenaSqliteCommand.Execute (Hyena.Data.Sqlite.HyenaSqliteConnection hconnection, Mono.Data.Sqlite.SqliteConnection connection) [0x00000]
--- End of inner exception stack trace ---

I think this is how it happened. My computer hanged while Banshee was running, and I had to force reboot it.  Hence, the Banshee database file was corrupted. Thanks to boombox1387 from Ubuntu forum, this problem can be fixed as the following:

Install sqlite3:

sudo apt-get install sqlite3

Then run:

cd ~/.config/banshee-1

Dump the database in an SQL text format:

sqlite3 banshee.db ".dump" > dump

Backup the (corrupted) database:

mv banshee.db banshee.db.backup

Create and restore a database from dump file:

cat dump | sqlite3 banshee.db

Banshee started up again. Both files: dump and banshee.db can be removed.

Credit: [ubuntu] Banshee Crashed

Amarok 2.3.0 and PulseAudio Problem

Ever since I upgraded my Ubuntu desktop from 9.04 to 10.4, I have been having problems with Amarok dropping sound randomly. For example, if Amarok is playing the music and another program requires to use sound, Amarok will become silence.

One solution to restore sound in Amarok is to kill pulseaudio and restart Amarok. It works, but very annoying.

Fortunately, installing libxine1-gnome and configure Amarok to use Esound (ESD) instead of PulseAudio fixed the problem.

Thanks to this bug report https://bugs.launchpad.net/ubuntu/+source/amarok/+bug/176332

Enable Japanese input on Debian/Ubuntu

Normally, I would install Scim and Anthy for Japanese input method on Debian. Recently, I found an easier way to achieve the same thing, which is to use IBus instead of Scim.

  1. Install ibus: sudo apt-get install ibus ibus-anthy ibus-gtk
  2. From the menu, System -> Preferences -> IBus Preference
    IBus Preference should detects that you have run IBus daemon yet, click “Yes” to run it.
  3. You’ll be asked to edit yoru .bashrc and add the following 3 lines:

    export GTK_IM_MODULE=ibus
    export XMODIFIERS=@im=ibus
    export QT_IM_MODULE=ibus
  4. Click on “Input Method” tab, if you don’t see “Japanese – Anthy” listed under the Input Method list, select “Japanese -> Anthy” from the “Select an input method” drop down list, then click Add.
  5. You might want to restart X (logout and log back in)
  6. Open a text editor, and hit Ctrl + Space to toggle the Japanese input method

Reference: Japanese Input with Karmic?

Stopping hard drive clicking noise on MSI U100

Finally, the OS X has been removed from MSI Wind U100, and completely replaced by Debian (testing).

Whenever the computer is idle, the hdd makes this weird clicking noise. To stop it, we can use hdparm to turn it off.

kenno@tora:~$ sudo hdparm -B 254 /dev/sda

/dev/sda:
setting Advanced Power Management level to 0xfe (254)
APM_level = 254
kenno@tora:~$

Source: MSI Wind – Gentoo Linux Wiki

FIXED: extconf.rb:8:in `require’: no such file to load — mkmf (LoadError)

While reading Linux Journal Issue 181 today, I stumbled upon a section explaining about running Ruby on Rails on Apache using an Apache module called Phusion Passenger, also known as mod_rails.

To install Passenger, I followed the instruction provided in the magazine:

sudo gem install passenger

Unxpectedly, I got the following error:

Building native extensions. This could take a while...
ERROR: Error installing passenger:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:8:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:8

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out

What’s happening? What did I do wrong?

According to a blog post by Al Hoang, a Ruby dev package needed to be installed. Well, I wouldn’t have a clue about this!

So, to FIX this, I need to install ruby1.8-dev:

$ sudo apt-get install ruby1.8-dev
...

Now, I’m ready to install Passenger gem:

$ sudo gem install passenger
Building native extensions. This could take a while...
Successfully installed passenger-2.2.4
1 gem installed
Installing ri documentation for passenger-2.2.4...
Installing RDoc documentation for passenger-2.2.4...

Credit: Fixing ‘mkmf’ load error Ruby in Ubuntu

Remove Universal Access Preference icon from Gnome panel

One of the advantages of using GNU/Linux operating system is that you hardly have to restart it. I have Debian on my laptop and it’s been running for months, until last night. It crashed and froze. Anyway, that’s not the main point this post was written.

After restarting, I saw this new icon in the Gnome top panel (the third icon from the right):

universal_preference

Well, for the start, I don’t know what it is and I don’t think I will have a need for it either. So I wanted to remove it, but right click on this icon would do nothing. Left clicked on it would give me some setting option, but nowhere does it mention how to remove it.

Thanks to the tip from Ubutu Forum, someone has found a solution. Basically, you need to go the “Keyboard Preferences” and untick the “Accessibility features can be toggled  with keyboard shortcuts“.

The following is the step by step guide:

On Debian, from the menu panel, click on System -> Preferences -> Keyboard (alternatively, you can just type gnome-keyboard-properties from the Terminal)

Screenshot-Keyboard Preferences

Then, untick or uncheck the Accessibility features can be toggled  with keyboard shortcuts and click on Close button. The undesired icon shall disappear.

Credit: How to remove universal access from notification area

Pidgin 2.5.5 – cannot connect to Yahoo messenger

I just noticed the abnormality with Pidgin 2.5.5 (running on Debian) these few days — I couldn’t connect my Yahoo messenger account at all. According to the discussion of Bug #389278 it appears that Yahoo was trying to change its protocol.

A quick way to have Pidgin connecting to Yahoo messenger server again is to change the Pager server setting for the Yahoo account in Pidgin.

To do this, from Pidgin:

  • Manage Accounts (Ctrl + A)
  • Select the Yahoo account from the list (assuming you’ve set one up before), and click Modify
  • Click on Advanced tab, under the Yahoo Options, in the Pager server field replace scs.msg.yahoo.com with cn.scs.msg.yahoo.com

Try to connect to Yahoo messenger server again. It worked for me.

Credit: Bug #389278 in pidgin (Ubuntu)

Update:

Please cosider upgrade your Pidgin to version 2.5.7. I just upgraded mine and the problem seems to have gone away. Don’t forget to change the Page Server back to scs.msg.yahoo.com.