Ubuntu 14.04 英文版下安装搜狗拼音

参考了网上的几篇文章,终于在Ubuntu上把搜狗拼音装上了:

第一步:
sudo apt-get remove ibus
sudo apt-get remove scim
sudo apt-get remove fcitx*

sudo apt-get autoremove   // 删除依赖包,不再使用的package
dpkg --get-selections | grep fcitx //检测是否删除fcitx
sudo apt-get -f install   // 尝试修正安装过程中出现的依赖性关系

第二步:
sudo add-apt-repository ppa:fcitx-team/nightly       //添加fcitx的ppa
sudo apt-get update // 刷新软件源

第三步:
然后安装搜狗输入法

到搜狗网站下载sougoupin安装deb包,

在命令终端中进入下载目录:cd /home/user/Downloads

sudo dpkg -i sogoupinyin_2.0.0.0068_i386.deb

sudo apt-get -f install(修复依赖关系)

注:

(1)使用“sudo apt-get install fcitx-sogoupinyin”安装不成功

(2)下载搜狗deb包直接双击安装也不行

第四步:
然后依次安装下列包(下17个应该是必须的)sudo apt-get install ****

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为默认输入法

sudo apt-get install im-switch
sudo im-switch -s fcitx -z default

注:

(1)可能遇到的问题:

No system wide default defined just for locale en_US .
Use "all_ALL" quasi-locale and set IM.
update-alternatives: error: alternative /etc/X11/xinit/xinput.d/fcitx for xinput-all_ALL not registered, not setting.

解决方法:

在英文locale下启动Fcitx输入法,需要在/etc/X11/xinit/xinput.d/下新建一个文件en_US,文件内容如下:

sudo vim /etc/X11/xinit/xinput.d/en_US

XMODIFIERS="@im=fcitx"
XIM=fcitx
XIM_PROGRAM=/usr/bin/fcitx
XIM_ARGS=""
GTK_IM_MODULE=XIM
QT_IM_MODULE=XIM
DEPENDS="fcitx"
:wq    //退出vim,并保存

ls -l /etc/X11/xinit/xinput.d   // 查看输入法启动项,查看有en_US,若有则可
(2)也可以在System Settings中的 Language Support中选择?

第六步:

注销或重启。

第七步:

打开fcitx configuration,看到搜狗拼音就成功了。可在其它选项卡中进行热键等的设置。
这个输入法的翻页不是pagedown或pageup,而是加号键跟减号键。


参考文章:

http://www.7edown.com/edu/article/soft_4913_1.html

http://www.lihuoqing.cn/other/1276.html

http://blog.csdn.net/wsscy2004/article/details/25212261



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值