Centos7 安裝搜狗輸入法
阿新 • • 發佈:2022-01-14
親測有效!!!
下載sogou 2.2.0(注意!不要下官網最新版2.3 會失敗)
1 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 2 mv sogoupinyin_2.2.0.0108_amd64.deb\?st\=jpTlz-vO-Of4mW1f10EBCg sogoupinyin_2.2.0.0108_amd64.deb
配置Centos7的epel源
1 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 2 mv sogoupinyin_2.2.0.0108_amd64.deb\?st\=jpTlz-vO-Of4mW1f10EBCg sogoupinyin_2.2.0.0108_amd64.deb
安裝fcitx和必要軟體
1 yum -y install fcitx-configtool libQtWebKit* fcitx
設定環境變數
1 cat >> /etc/profile << EOF 2 export XMODIFIERS=@im=fcitx 3 export GTK_IM_MODULE=fcitx 4 export QT_IM_MODULE=fcitx 5 export XIM=fcitx 6 EOF
安裝dpkg(用來解壓deb包)
1 yum -y install dpkg 2 ar -x sogoupinyin_2.2.0.0108_amd64.deb 3 tar -xvf data.tar.xz -C / 4 cp /usr/lib/x86_64-linux-gnu/fcitx/fcitx-sogoupinyin.so /usr/lib64/fcitx/ 5配置待啟動的輸入法yum install -y im-chooser 6 sudo imsettings-switch fcitx
1 echo '/usr/bin/fcitx &> /dev/null' >> /etc/bashrc
登出或重啟
按ctrl + space
切換到搜狗輸入法,之後按shift
切換就可以
效果圖如下