Centos7.2安裝搜狗拼音


  • 方法一:
  • Fedora 19/20/21/rawhide 使用以下命令添加源: 
    # yum install dnf-plugins-core 
    # dnf copr enable mosquito/myrepo 
    # yum localinstall http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  • RHEL/CentOS 6/7 不包含 dnf 軟件包,使用以下命令添加源: 
    # yum-config-manager --add-repo=https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-$(rpm -E %?rhel)/mosquito-myrepo-epel-$(rpm -E %?rhel).repo
    # yum install epel-release 
    # yum localinstall http://li.nux.ro/download/nux/dextop/el$(rpm -E %rhel)/x86_64/nux-dextop-release-0-2.el$(rpm -E %rhel).nux.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/$(rpm -E %rhel)/x86_64/rpmfusion-nonfree-release-$(rpm -E %rhel)-1.noarch.rpm http://download1.rpmfusion.org/free/el/updates/$(rpm -E %rhel)/x86_64/rpmfusion-free-release-$(rpm -E %rhel)-1.noarch.rpm
    注意:rhel/centos 6/7 需要添加 epel  rpmfusion Nux Dextop 源。

     

  • # yum-config-manager --enable epel-testing > /dev/null

       

    Install sogou - 安裝搜狗拼音輸入法

  • 測試系統:fc20√el7√
  • 執行以下命令安裝搜狗拼音: 
    # yum install sogou-pinyin sogou-pinyin-skins
  • Configuration fcitx
  • 結束 ibus 守護進程 
    $ sudo pkill ibus-daemon
  • 關閉 gnome-shell 對鍵盤的監聽 
    $ gsettings set org.gnome.settings-daemon.plugins.keyboard active false
  • 切換輸入法為 fcitx 
    $ imsettings-switch fcitx
  • 重載 fcitx, 啟動搜狗面板 
    $ fcitx -r; fcitx-configtool 
    $ sogou-qimpanel

    點擊左下角的加號開始添加其他輸入法

  • 一定要把only show current language取消勾選

       

    然后搜索so,就可以選中搜狗輸入法啦

     

  • 方法二:(鏈接: http://pan.baidu.com/s/1gfNugyZ 密碼: cz3v)

     

    為了方便,我已經將編譯好了rpm,打包成fcitx.tar.gz。如圖:

     

    安裝步驟:

    1.解壓fcitx

    2.安裝fcitx+sougou

    注意yum需要root用戶(我已安裝,僅作演示)。若有依賴問題,請安裝RPMforgeEPEL源再yum一次

     

    3.修改默認固定輸入法

     

    4./etc/profile最后增加:

     

    5.安裝圖形輸入法選擇器

     

    6.Sundry->Input Method Selector:

    單擊FCITX后面的Preferences,在Input Method下面單擊'+'號,

    去掉'Only Show。。。'的勾,然后找到sougou,再OK

    最后Logout就行了

     

    7.選擇開機啟動的輸入法(需要root)

     

    8.重啟后,最終安裝結果

     

    Notice

    1.最好把輸入法的快捷切換鍵改了,因為ctrl+space在許多程序中都有其他的作用了……

    2.有些人說要先把ibus卸載了,可是我現在安裝后用了幾天,好像沒有什么影響。。。

    3.在折騰fcitx時,第一次時某些程序不能輸入中文,搞了大半天沒搞定,結果還把系統搞殘了,果斷重裝系統一次后再來一次,結果之前不能輸入中文的程序,現在能了,真是奇葩……

    4.剛重裝的系統,沒有美化一下,截圖看起來真丑。

    5.裝了一次最好別卸載了裝第二次,我不知道折騰時裝第二次不知道改了什么東西,導致輸入法亂碼,差點吐血了!

     

     

     

    enjoy i


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM