【原创】Linux-Ubuntu 12.4下…

来源:互联网 发布:红警2点网络进不去 编辑:程序博客网 时间:2024/06/05 06:12
ubuntu 12.04 ,安装语言:英文
1).ctrl + alt + T 进入终端
2).sudo apt-get install fcitx-bin '回车
3).输入密码 回车
4).y 回车
5).y 回车 
"download something...
6).ldconfig deferred processing now taking place --至此,linuxubuntu下的输入法安装成功.
“如果提示Errhttp://tw.archive.ubuntu.com/.... (-5 No address associated withhostname) 意味着网络异常,检查一下网络就可以啦~”
sudo reboot 重启一下试试看..
检查:
<一>/usr/lib/gtk-3.0/3.0.0/immodules.cache (如果系统是gnome3)
<二> /usr/lib/gtk-2.0/2.10.0/gtk.immodules(二选一,跟系统而定)
生成:
<一>如果/usr/lib/gtk-3.0/3.0.0/immodules.cache不存在,sudogtk-query-immodules-3.0>/usr/lib/gtk-3.0/3.0.0/immodules.cache生成immodules.cache(提示permission denied 请先su,密码,再生成)
<二> 如果/usr/lib/gtk-2.0/2.10.0/gtk.immodules 不存在,sudogtk-query-immodules-2.0>/usr/lib/gtk-2.0/2.10.0/gtk.immodules生成gtk.immodules(提示同上)
修改:
<一>

将:

"fcitx" "Fcitx (Free Chinese Input Toy of X)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 

更改为:

"fcitx" "Fcitx (Free Chinese Input Toy of X)" "fcitx" "/usr/share/locale" "en:ja:ko:zh:*" 
步骤:
        vi /usr/lib/gtk-3.0/3.0.0/immodules.cache 
     i 进入编辑状态 ,修改后【ESC】,冒号":",wq-保存退出
<二> 

将:

"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"

更改为:

"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"
步骤:
        vi /usr/lib/gtk-2.0/2.10.0/gtk.immodules
        i 进入编辑状态 ,修改后【ESC】,冒号":",wq-保存退出
参考来源:http://wiki.ubuntu.org.cn/Fcitx
转载请附加本文链接.谢谢.http://blog.sina.com.cn/s/blog_83dc494d0101b9fn.html

还有一种,参考来源:http://blog.csdn.net/sun_168/article/details/8306149


sudo apt-get install language-pack-gnome-zh
sudo apt-getinstall language-pack-zh
sudo apt-getinstall language-support-fonts-zh
sudo apt-getinstall language-support-input-zh
sudo apt-getinstall language-support-zh

这几个包可能不存在,那么我就就在后面加上“-hans”,比如包language-pack-gnome-zh,添加后就是“language-pack-gnome-zh-hans”。至于为什么在最后会做说明。

下面再安装fcitx,命令:sudo apt-get install fcitx

最后将默认输入法修改为fcitx,命令如下:

im-switch -s fcitx  //这里无需加sudo

重新启动操作系统即可完成安装。


最后说明下什么后面加-hans,因为针对每个中文包,现在都分成了一个是繁体也就是传统的中文,主要针对的是港澳台,一个简体中文,对应的大陆地区。hans是hanSimplified的缩写,hant是han traditional的缩写,因此前面采用的是“-hans”。

但是按照设置完了以后,左面右上角还是没有输入法图标,这个纠结了。

首先,切换输入法是【Ctrl】+【Space】

但是没托盘图标,见:http://www.cnblogs.com/maso1987/archive/2012/07/15/2592732.html

我试了一下,解决办法:

  1、重启输入法(临时)

  在终端(Terminal)[快捷键Ctrl+Alt+T]里面输入:

1 killall ibus-daemon2 ibus-daemon -d

 

  2、彻底解决方法

  在终端(Terminal)[快捷键Ctrl+Alt+T]运行下面的命令,然后注销并重新登陆即可。

1 gconftool --type boolean -s /desktop/ibus/panel/show_icon_on_systray true2 gconftool --type boolean -s /desktop/ibus/panel/show true3 gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
我在我机器上用第一种方法是不管用的:第一句就会报错,进程不存在。
第二种方法试了试,还是没用~~
哎,算了,安装直接ibus输入法吧
sudo apt-get install ibus ibus-pinyin
图标托盘问题输入:
ibus-daemon -drx
总之呢,我是解决了。
0 0
原创粉丝点击