ubunt 安装fcitx-sougoupinyin

来源:互联网 发布:淘宝lee哪家有正品啊 编辑:程序博客网 时间:2024/05/21 16:55

在ubuntu12.04 13.04亲测。


第一步:

Ubuntu 默认是安装了ibus.所以删除它
sudo apt-get remove ibus
对于已经安装老版本的fcitx,删掉再装.
sudo apt-get remove fcitx*
删除依赖库
sudo apt-get autoremove
检测是否删除fcitx
dpkg --get-selections | grep fcitx
dpkg --get-selections | grep ibus
卸载与ibus有关的软件。如python-ibus ibus-gtk ibus-gtk3等
第二布:
添加fcitx的ppa:
sudo add-apt-repository ppa:fcitx-team/nightly
然后刷新软件源:
sudo apt-get update
第三步:
然后直接安装搜狗输入法
sudo apt-get install fcitx-sogoupinyin
第四步:
然后依次安装下列包(下17个应该是必须的)sudo apt-get install ****
sudo apt-get fcitx fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data
fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4 fcitx-googlepinyin
fcitx-libs fcitx-module-dbus fcitx-module-x11 fcitx-modules fcitx-pinyin
fcitx-table fcitx-table-wubi fcitx-ui-classic
第五步:
然后设置为fcitx为默认输入法
im-switch -s fcitx -z default
sudo im-switch -s fcitx -z default

由于4.2.4新版的Fcitx与系统默认的Locale有点问题。我们把下面这段代码粘贴到主文件夹下的.xprofile中(如果没有这个文件,则新建一个。)

export LC_ALL=zh_CN.utf8
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=xim
export GTK_IM_MODULE=xim
fcitx -d
 
第六步:
注销或重启就生效
在右上角的输入法设置中
"输入法" ==> 搜狗拼音
或输入法的“配置”中设置
这个输入法的翻页不是安pagedown或pageup,而是加号键跟减号键(其实不加shift)

参考文献
http://www.mintos.org/config/quantal-fcitx.html