配置国内源
sudo pacman-mirrors -i -c China -m rank
安装yaourt
添加archlinuxcn源
sudo vim /etc/pacman.conf
在最后添加:
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
安装yay
pacman -S yay
更新数据库
yay -Syy
安装yaourt:
yay -S yaourt
安装输入法
安装基础库
sudo pacman -S fcitx fcitx-im fcitx-configtool
安装输入法
yaourt fcitx-sogoupinyin
新建并配置~/.xprofile
添加如下内容:
export LC_ALL=zh_CN.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
ex