標籤:
參考: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.rpm2 $ sudo rpm -ivh epel-release-7-1.noarch.rpm3 $ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
2.添加mosquito-myrepo源
mosquito-myrepo是一個私人製作的第三方源,其中包含了fcitxIME以及基於fcitx的搜狗IME。
1 $ yum-config-manager --add-repo=https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-7/mosquito-myrepo-epel-7.repo
- 項目地址: https://copr.fedoraproject.org/coprs/mosquito/myrepo/
- 支援的發行版: Fedora 19/20/21/rawhide 以及RHEL/CentOS 7
3.安裝搜狗IME
1 $ yum install sogou-pinyin sogou-pinyin-skins
4.配置
1 $ sudo pkill ibus-daemon2 $ gsettings set org.gnome.settings-daemon.plugins.keyboard active false3 $ imsettings-switch fcitx4 $ fcitx -r; fcitx-configtool5 $ sogou-qimpanel
執行後面兩個命令後可能會報一些錯誤,似乎可以不用管。執行完成之後,退出目前使用者並重新登陸。
5.安裝其他IME
1 $ yum install fcitx-googlepinyin fcitx-cloudpinyin # Google拼音IME2 $ yum install fcitx-rime fcitx-cloudpinyin # 中州韻IME3 $ yum install fcitx-libpinyin fcitx-cloudpinyin # libpinyinIME4 $ yum install fcitx-sunpinyin sunpinyin-data fcitx-cloudpinyin # sunpinyinIME
最後的清理:
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 安裝中文IME