SCIM in Debian Lenny for Chinese Input

I have to struggle with this whenever I had a new Debian installation. SCIM does not work out of the box in Debian, so there’s some minor configurations to do. But I failed to note it down anywhere, just happily relying on Google.

So yet again, I have a new Debian Lenny installation on my new notebook. And the same story again, I got to search all over Google for the instructions to make it work. So this time round I decided to note it down here so that I can “Read My Own F$#king Manual” next time as well as for the benefit of others.

Step 1:

Install the fonts

aptitude install ttf-arphic-bkai00mp ttf-arphic-uming ttf-arphic-gkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-ukai xfonts-intl-chinese unifont ttf-unifont

Step 2:

Install all the scim related packages

aptitude install scim-pinyin uim-pinyin scim-uim scim-chinese scim-tables-zh

Step 3:

im-switch -c

Select scim and save.

Step 4:

Restart your session by logging out and logging in again.

You should have your SCIM work after that.