当前位置:   article > 正文

centos7安装搜狗输入法_sogoupinyin_2.2.0.0108_amd64.deb centos

sogoupinyin_2.2.0.0108_amd64.deb centos

该教程保证真实有效(2020/1/07测试)
适合Centos 7 所有版本
不用卸载ibus ,别信那些坑比

下载sogou 2.2.0(注意!不要下官网最新版2.3 会失败)

wget cdn2.ime.sogou.com/dl/index/1524572264/sogoupinyin_2.2.0.0108_amd64.deb?st=jpTlz-vO-Of4mW1f10EBCg&e=1570252581&fn=sogoupinyin_2.2.0.0108_amd64.deb
mv sogoupinyin_2.2.0.0108_amd64.deb?st=jpTlz-vO-Of4mW1f10EBCg sogoupinyin_2.2.0.0108_amd64.deb
配置Centos7的epel源

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
安装fcitx和必要软件

yum -y install fcitx-configtool libQtWebKit* fcitx
设置环境变量

cat >> /etc/profile << EOF
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XIM=fcitx
EOF
安装dpkg(用来解压deb包)

yum -y install dpkg
ar -x sogoupinyin_2.2.0.0108_amd64.deb #解压,会有三个文件,只要data.tar.xz 就行
tar -xvf data.tar.xz -C /
cp /usr/lib/x86_64-linux-gnu/fcitx/fcitx-sogoupinyin.so /usr/lib64/fcitx/
yum install -y im-chooser #切换输入法工具
sudo imsettings-switch fcitx #这步需要切换到普通用户桌面环境用sudo 执行
配置待启动的输入法
执行以下命令,并按照提示选择fcitx.conf所在的序号后回车:
(切回root桌面环境)
alternatives --config xinputrc --> 5(对应 /etc/X11/xinit/xinput.d/fcitx.conf)
echo ‘/usr/bin/fcitx &> /dev/null’ >> /etc/bashrc
注销或重启
按ctrl + space 切换到搜狗输入法,之后按shift切换就可以了
有图有真相
在这里插入图片描述

有什么问题可以留言
第一次写文章,有什么建议可以提出来
---------------------------------更新------------------------------------------------------
2.3安装要麻烦点,版本界面还没2.2好看,需要安装gcc 5.4才支持2.3

作者:华彩少年
链接:https://www.jianshu.com/p/d36ec6bd99bc
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/176973?site
推荐阅读
相关标签
  

闽ICP备14008679号