感谢支持
我们一直在努力

在ubuntu英文环境中也能使用中文输入法

Linux的中文老看着不舒服,就连最火的Ubuntu也感觉有点,于是就切到英文环境下。可是却无法输入中文了。

在网上搜了半天,发现很多都要修改/etc/X11/xinit/xinput.d/default文件。我不大喜欢修改系统文件。

于是就想了别的办法——观察了一下/etc/X11/xinit/xinput.d/的内容,增加了一个链接就OK了。

eagle@peak:~$ ls -l /etc/X11/xinit/xinput.d/total 32
lrwxrwxrwx 1 root root 32 2007-08-06 02:09 all_ALL -> /etc/alternatives/xinput-all_ALL
-rw-r–r– 1 root root 1042 2006-12-07 01:51 default
lrwxrwxrwx 1 root root 30 2007-08-24 22:28 en_US -> /etc/alternatives/xinput-zh_CN
lrwxrwxrwx 1 root root 30 2007-08-06 02:09 ja_JP -> /etc/alternatives/xinput-ja_JP
lrwxrwxrwx 1 root root 30 2007-08-06 02:09 ko_KR -> /etc/alternatives/xinput-ko_KR
-rw-r–r– 1 root root 474 2006-12-07 01:51 none
-rw-r–r– 1 root root 577 2007-03-05 23:02 scim
-rw-r–r– 1 root root 384 2006-10-20 10:43 scim-chewing
-rw-r–r– 1 root root 649 2007-03-05 23:02 scim-immodule
-rw-r–r– 1 root root 385 2007-03-05 23:32 scim-pinyin
-rw-r–r– 1 root root 506 2007-03-05 23:02 scim_xim
lrwxrwxrwx 1 root root 30 2007-08-06 02:31 th_TH -> /etc/alternatives/xinput-th_TH
-rw-r–r– 1 root root 610 2006-12-07 01:51 th-xim
lrwxrwxrwx 1 root root 30 2007-08-06 02:09 zh_CN -> /etc/alternatives/xinput-zh_CN
lrwxrwxrwx 1 root root 30 2007-08-06 02:09 zh_HK -> /etc/alternatives/xinput-zh_HK
lrwxrwxrwx 1 root root 30 2007-08-06 02:09 zh_SG -> /etc/alternatives/xinput-zh_SG
lrwxrwxrwx 1 root root 30 2007-08-06 02:09 zh_TW -> /etc/alternatives/xinput-zh_TW
eagle@peak:~$ ln -s /etc/X11/xinit/xinput.d/en_US /etc/alternatives/xinput-zh_CN

赞(0) 打赏
转载请注明出处:服务器评测 » 在ubuntu英文环境中也能使用中文输入法
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏