debian
apt-get install im-config #输入法设置
apt-get install fcitx #输入法软件
apt-get install xfonts-wqy #字体库
apt-get install fcitx-frontend-all #前端模块
apt-get install fcitx-sogoupinyin #安装拼音库 // 可选安装
apt-get install fcitx-table-wubi #安装五笔库 // 可选安装
apt-get install fcitx-frontend-fbterm #或者安装全部拼音、五笔库。// 可选安装
apt-get install fonts-wqy-microhei fonts-wqy-zenhei #中文字体 // 可选安装
如果你输入的时候各种ctrl+space或者ctrl+shift一通乱按就是什么也看不到?因为根本就没有Ui控件…
你需要安装输入法前端所需的ui动态库
apt-get install fcitx-ui-classic
apt-get install fcitx-module-kimpanel
apt-get install fcitx-ui-light
必须重启
systemctl reboot
manjaro
pacman -S fcitx-im fcitx-configtool
### 安装搜狗输入
pacman -S fcitx-sogoupinyin
### 安装谷歌输入
pacman -S fcitx-googlepinyin
在用户家目录新建.xprofile,写入五行值。
vim ~/.xprofile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
### 其他输入栏无法输入等问题,需要加下面二个变量
export XIM=fcitx
export XIM_PROGRAM=fcitx