該教程保證真實(shí)有效(2020/1/07測(cè)試)
適合Centos 7 所有版本
不用卸載ibus 渊季,別信那些坑比
下載sogou 2.2.0(注意!不要下官網(wǎng)最新版2.3 會(huì)失敗)
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
設(shè)置環(huán)境變量
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 #解壓,會(huì)有三個(gè)文件罚渐,只要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 #這步需要切換到普通用戶桌面環(huán)境用sudo 執(zhí)行
配置待啟動(dòng)的輸入法
執(zhí)行以下命令却汉,并按照提示選擇fcitx.conf所在的序號(hào)后回車:
(切回root桌面環(huán)境)
alternatives --config xinputrc --> 5(對(duì)應(yīng) /etc/X11/xinit/xinput.d/fcitx.conf)
echo '/usr/bin/fcitx &> /dev/null' >> /etc/bashrc
注銷或重啟
按ctrl + space
切換到搜狗輸入法,之后按shift
切換就可以了
有圖有真相
image.png
有什么問題可以留言
第一次寫文章荷并,有什么建議可以提出來
---------------------------------更新------------------------------------------------------
2.3安裝要麻煩點(diǎn)合砂,版本界面還沒2.2好看,需要安裝gcc 5.4才支持2.3
image.png