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?

How to tell which Linux distro you’re running

Update:

Thanks to Jayen, there is a better way:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic

$ cat /etc/issue
Debian GNU/Linux squeeze/sid \n \l

Or


$ cat /proc/version
Linux version 2.6.32-trunk-686 (Debian 2.6.32-5) (ben@decadent.org.uk) (gcc version 4.3.4 (Debian 4.3.4-6) ) #1 SMP Sun Jan 10 06:32:16 UTC 2010

Source: Which Linux Distro are you using??

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

Profile backup – Mozilla FireFox and Thunderbird

At work, a colleague is struggling to get his pc up and running for a few days now. To add insult to injury, he also lost some of his Microsoft Outlook back up emails.
Seeing what happened to him, I shall back up my files and emails too.

I use Mozilla Thunderbird (2.0.0.22), and I found a very nice tool to back up the emails (a.k.a profile). It’s called MozBackup.
mozbackup-screenshot

I thought I should share this with others who use Thunderbird too.