How to install sougoupinyin on Debian/Ubuntu.

#apt--get remove fcitx* &&  apt autoremove   ###防止過多依賴包的干擾

#apt-get update

#apt-get fcitx im-config

#im-config        ###選擇爲fcitx

下載Linux版本的搜狗輸入法deb軟件包ubuntu

#dpkg -i sogou*.deb ; apt-get -f install

UPDATE: Installing SouGou PinYin will add a Kylin repository into your system, you may keep it and install the key so that apt update won't boring you with missing GPG issue:

# apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 8D5A09DC9B929006

配置Fcitx的環境:在~/.bashrc中加入一下內容瀏覽器

export GTK_IM_MODULE=fcitx    

export QT_IM_MODULE=fcitx    

export XMODIFIERS="@im=fcitx"
#gsettings set org.gnome.settings-daemon.plugins.keyboard active false

(解除gnome桌面與ibus守護進程的綁定(必須有這一步))bash

#reboot

最後調出輸入法code

#fcitx-configtool      ###最好保留默認的en-us 鍵盤

注意事項:server

fcitx安裝成功了,配置也OK,在瀏覽器或者其餘應用裏面能夠用,但在terminal中不能使用,這是由於沒有裝fcitx的圖形管理包所致使的。進程

kde依賴於qt5,而gnome依賴於gtk3(fedora 23是這個版本)ci

kde界面使用:rem

#apt-get install fcitx-qt5

gnome界面使用:terminal

#apt-get  install fcitx-gtk3
相關文章
相關標籤/搜索