Fcitx安装与配置
(1) 安装fcitx:
# apt-get install fcitx
(2) 创建脚本以便X Window启动时自动载入fcitx:
# cd /etc/X11/Xsession.d
# vi 25xchinput_start
输入以下内容并保存:
export XMODIFIERS=@im=fcitx
export XIM=fcitx
export XIM_PROGRAM=fcitx
/usr/bin/fcitx &
(3)安装搜狗输入法、下载搜狗拼音的deb包,用gdebi安装(gdebi的作用类似于dpkg,但在安装输入法的时候会自动下载相关依赖)要 注意gdebi安装完相关依赖后会退出,所以需要再次运行用gdebi安装deb包,安装完成后用im-config配置fcitx为第一输入,
(4) 重启系统或X Window。(此处最好关机后启动)
PS:
配置源
# vim /etc/apt/source.list
最后增加中国科学技术大学的源(其他的应该也可以):
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-freedeb-src
然后更新
# aptitude update
2安装包:
# aptitude install fcitx fcitx-frontend-all fcitx-module-x11