Tuesday, July 21, 2009

Input Chinese in Ubuntu(输入中文)

I follow the guidance of website "http://ubuntuforums.org/showthread.php?p=124214".
1. Install libraries:
* scim
* scim-chinese
* scim-config-socket
* scim-frontend-socket
* scim-gtk2-immodule
* scim-server-socket
* scim-tables-zh (option)
* xfonts-intl-chinese
* xfonts-intl-chinese-big
* ttf-arphic-gbsn00lp
* ttf-arphic-gkai00mp
* ttf-arphic-bkai00mp
* ttf-arphic-bsmi00lp


2, Open a terminal,
$gvim .xsession

Type
"
scim -d
export XMODIFIERS=@im=scim
export GTK_IM_MODULE=scim
gnome-session
"

Then save .xsession under your home direcotry.

$chomd +x .xsession



Restart X server by CTRL+ALT+BACKSPACE

Activate the chinese input by CTRL+SPACE.

Finally I got it. Very cool, just feel a little strange.

现在可以用中文咯。。。。。嘻嘻。。。




This method is dead in June, 2010.



But I find a solution:
$sudo apt-get install scim-qtimm im-switch scim-pinyin
$im-switch -z en_US -s scim

It works again......你看到了吧。。。死掉的SCIM又活回来了。。

No comments: