码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS 7 安装中文输入法

时间:2015-01-12 19:11:01      阅读:446      评论:0      收藏:0      [点我收藏+]

标签:

参考:http://seisman.info/fcitx-for-centos-7.html#id10

1.加入EPEL源

1 $ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm
2 $ sudo rpm -ivh epel-release-7-1.noarch.rpm
3 $ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

2.添加mosquito-myrepo源

mosquito-myrepo是一个私人制作的第三方源,其中包含了fcitx输入法以及基于fcitx的搜狗输入法。

1 $ yum-config-manager --add-repo=https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-7/mosquito-myrepo-epel-7.repo

3.安装搜狗输入法

1 $ yum install sogou-pinyin sogou-pinyin-skins

4.配置

1 $ sudo pkill ibus-daemon
2 $ gsettings set org.gnome.settings-daemon.plugins.keyboard active false
3 $ imsettings-switch fcitx
4 $ fcitx -r; fcitx-configtool
5 $ sogou-qimpanel

执行后面两个命令后可能会报一些错误,似乎可以不用管。执行完成之后,退出当前用户并重新登陆。

5.安装其他输入法

1 $ yum install fcitx-googlepinyin fcitx-cloudpinyin # 谷歌拼音输入法
2 $ yum install fcitx-rime fcitx-cloudpinyin # 中州韵输入法
3 $ yum install fcitx-libpinyin fcitx-cloudpinyin # libpinyin输入法
4 $ yum install fcitx-sunpinyin sunpinyin-data fcitx-cloudpinyin # sunpinyin输入法

最后的清理:

mosquito-myrepo在不断地支持更多的软件,这也进一步造成该repo中的软件与base、EPEL中的软件存在版本冲突,在该repo的项目主页中建议安装yum的优先级插件yum-plugin-priorities,这在一定程度上会缓解版本冲突问题,但无法从根本上避免。鉴于多个repo的版本冲突会造成一些麻烦,最好的办法还是在安装完需要的软件之后就禁用该repo,需要的时候再启用。

编辑/etc/yum.repos.d/mosquito-myrepo-epel-7.repo,将其中的enable=1改成enable=0即可。

参考:https://copr.fedoraproject.org/coprs/mosquito/myrepo/

CentOS 7 安装中文输入法

标签:

原文地址:http://www.cnblogs.com/hzrong/p/4218949.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!