一 .查看arch linux 版本信息
$ uname -a
Linux zwq 5.3.7-arch1-1-ARCH #1 SMP PREEMPT Fri Oct 18 00:17:03 UTC 2019 x86_64 GNU/Linux
二. 安装过程
-
更新系统
sudo pacman -Syu -
安装输入法相关依赖
sudo pacman -S archlinuxcn-keyring sudo pacman -S fcitx-im fcitx-configtool fcitx-gtk2 fcitx-gtk3 fcitx-qt4 fcitx-qt5 libidn fcitx-sogoupinyin fcitx-googlepinyin -
修改启动项
mkdir ~/.config/autostart cp /etc/xdg/autostart/fcitx-autostart.desktop ~/.config/autostart/ echo "GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx" > .pam_environment echo "export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx" > .xprofile -
重启机器验证是否生效
reboot -
查看进程&测试输入法
-
查看fcitx
$ ps -ef | grep fcitx baseuser 1176 1 1 10:56 ? 00:00:06 fcitx baseuser 1181 1 0 10:56 ? 00:00:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --config-file /usr/share/fcitx/dbus/daemon.conf baseuser 1185 1 0 10:56 ? 00:00:00 /usr/bin/fcitx-dbus-watcher unix:abstract=/tmp/dbus-gHnnStnANx,guid=69429f9dc01bdf338c8aceeb5dafc17a 1181 baseuser 6204 4300 0 11:07 pts/0 00:00:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn fcitx -
查看sogou
$ ps aux |grep sogou baseuser 1188 0.8 0.8 3323736 140304 ? Sl 10:56 0:05 sogou-qimpanel baseuser 1210 0.0 0.2 352164 37708 ? Sl 10:56 0:00 sogou-qimpanel-watchdog baseuser 6230 0.0 0.0 9700 2304 pts/0 S+ 11:07 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn sogou -
切换输入法 使用
ctrl+space切换输入法 查看是否能够正常切换
-