1. 程式人生 > >CentOS 7通過yum安裝fcitx五筆輸入法

CentOS 7通過yum安裝fcitx五筆輸入法

tool ngs content google oos popu 裝包 地址 switch

CentOS 7通過yum安裝fcitx五筆輸入法

下面通過了親測:

1、設置源

Posted in Linux at 三月 5th, 2015 / No Comments ?



增加EPEL源
EPEL7差點兒是CentOS必備的源:

$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
$ sudo rpm -ivh epel-release-7-5.noarch.rpm
$ sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
加入mosquito-myrepo源
mosquito-myrepo是一個私人制作的第三方源。當中包括了fcitx輸入法以及基於fcitx的拼音、五筆輸入法。



項目地址: https://copr.fedoraproject.org/coprs/mosquito/myrepo/
支持的發行版: Fedora 19/20/21/rawhide 以及RHEL/CentOS 7

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

2、卸載原來的:

yum remove ibus

yum remove imsettings imsettings-libs im-chooser

3、安裝新的

假設僅僅須要安裝五筆那麽則須要安裝包(當然附帶會安裝一些對應的依賴):

# yum install fcitx fcitx-table-chinese --enablerepo=mosquito-myrepo

註:這一步,五筆輸入法已經安裝上了。



假設須要可視化的fcitx設置工具則使用命令:

# yum install fcitx-configtool --enablerepo=mosquito-myrepo


4、進行配置

配置Fcitx
在~/.bashrc中加入例如以下內容

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export [email protected]=fcitx”

關閉gnome-shell 對鍵盤的監聽,然後切換輸入法為fcitx:

$ sudo pkill ibus-daemon
$ gsettings set org.gnome.settings-daemon.plugins.keyboard active false
$ imsettings-switch fcitx

重新啟動系統,fcitx自己主動啟動,但圖標藏在桌面右下角的通知欄中
打開fcitx的配置工具,選擇輸入法標簽點”+”能夠搜索並加入輸入法

安裝其它輸入法

$ yum install fcitx-googlepinyin fcitx-cloudpinyin # 谷歌拼音輸入法
$ yum install fcitx-rime fcitx-cloudpinyin # 中州韻輸入法
$ yum install fcitx-libpinyin fcitx-cloudpinyin # libpinyin輸入法
$ yum install fcitx-sunpinyin sunpinyin-data fcitx-cloudpinyin # sunpinyin輸入法

http://seisman.info/fcitx-for-centos-7.html

http://www.92wiki.com/hdwiki/doc-view-424.html

引用文檔:http://yuexuan.sinaapp.com/?p=2218


CentOS 7通過yum安裝fcitx五筆輸入法