CentOS 7 安裝中文IME

來源:互聯網
上載者:User

標籤:

參考: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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.