CentOS安装搜狗输入法

1.切换用户

如果本机已安装ibus,需要先卸载,需要root用户操作:(切换用户命令是 su - root或者su - 用户名.注意-符号两边都有一个空格)

 [root@localhost]# su root

2.卸载ibus

1. 查看ibus:

 [root@localhost]# yum list installed | grep -i ibus

2. 卸载ibus:

 [root@localhost]# yum remove ibus

3.安装fcitx

1.添加fcitx软件源

可以先不添加,如果没有fcitx软件源在添加

 [root@localhost]# wget http://download.opensuse.org/repositories/home:/cathay4t:/misc-rhel6/CentOS_CentOS-6/home:cathay4t:misc-rhel6.repo -O /etc/yum.repos.d/fcitx.repo

2.安装fcitx

 [root@localhost]# yum install fcitx fcitx-pinyin fcitx-configtool

4.安装搜狗输入法

1.下载搜狗输入法.deb安装文件

https://pinyin.sogou.com/linux/?r=pinyin

2.安装alien依赖软件

 [root@localhost]# yum install epel
 [root@localhost]# yum install alien -y
 [root@localhost]# yum install qtwebkit -y

3.将搜狗输入法.deb包转换为rpm包

 [root@localhost]# alien -r sogoupinyin-2.2.0.0108-2.x86_64.deb

4.安装搜狗输入法

 [root@localhost]# rpm -ivh sogoupinyin-2.2.0.0108-2.x86_64.rpm

或者:

 [root@localhost]# sudo rpm -ivh --force sogoupinyin-2.2.0.0108-2.x86_64.rpm

或者:

 [root@localhost]# yum install sogoupinyin-2.2.0.0108-2.x86_64.rpm 

5.配置输入法

1.关闭gnome-shell 对键盘的监听

 [root@localhost]# gsettings set org.gnome.settings-daemon.plugins.keyboard active false

2.切换输入法为fcitx

 [root@localhost]# imsettings-switch fcitx

猜你喜欢

转载自blog.csdn.net/qq_21774161/article/details/84649396
今日推荐