LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 922|回复: 1

can not use chinese input method in ubuntu

[复制链接]
发表于 2007-5-18 23:39:03 | 显示全部楼层 |阅读模式
ISO Path:
http://mirrors.cn99.com/ubuntu-cd/ubuntu-7.04-alternate-i386.iso

i select "en" when install the base system,anything is ok.
when i want to input chinese character ,i installed fcitx.setting locale as follow:

1.modify /var/lib/locales/supported.d/local,and zh_CN zh_CN.GBK zh_CN.UTF-8

2.sudo locale-gen,seems ok:
...
en_US.UTF-8 zh_CN zh_CN.GBK zh_CN.UTF-8... up-to-date
....

3.add following to .bashrc
export LC_CTYPE=zh_CN.UTF-8
export XMODIFIERS="@im=fcitx"

4.add following lines to  /etc/X11/Xsession.d/95input
export LC_CTYPE=zh_CN.UTF-8
export XMODIFIERS=@im=fcitx
export XIM=fcitx
export XIM_PROGRAM=fcitx
fcitx

5.restart X

after that ,i press ctrl-space.nothing changes.

i think ,locale zh_CN is not installed in my computer,and when i want to change the system language
to chinese,i can not find it in gdm "select language" list!

but there is no problem when i visit this web pages,all  chinese characters

anybody knows what packages should be installed,or how to configure to use chinese locale?
 楼主| 发表于 2007-5-19 00:16:36 | 显示全部楼层
问题解决.
原来locale的安装方法有变
应该使用 sudo locale-gen zh_CN.UTF-8来生成.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表