Kali Linux中文输入法安装

注:仅在X11桌面生效
1.彻底删掉 ibus
sudo apt remove --purge ibus* -y
2.自动卸载依赖残留包
sudo apt autoremove -y
3.安装 fcitx5 和拼音输入法
sudo apt update && sudo apt install fcitx5 fcitx5-1. chinese-addons -y
4.设置 fcitx5 为默认输入法
im-config -n fcitx5
5.写入环境变量
echo "export GTK_IM_MODULE=fcitx5" >> ~/.xprofile
echo "export QT_IM_MODULE=fcitx5" >> ~/.xprofile
echo "export XMODIFIERS=@im=fcitx5" >> ~/.xprofile
echo "fcitx5 &" >> ~/.xprofile
6.重启生效
reboot
7.完整命令
# 卸载 ibus
sudo apt remove --purge ibus* -y
sudo apt autoremove -y
# 安装 fcitx5 和拼音输入法
sudo apt update && sudo apt install fcitx5 fcitx5-chinese-addons -y
# 设置 fcitx5 为默认输入法
im-config -n fcitx5
# 写入环境变量
echo "export GTK_IM_MODULE=fcitx5" >> ~/.xprofile
echo "export QT_IM_MODULE=fcitx5" >> ~/.xprofile
echo "export XMODIFIERS=@im=fcitx5" >> ~/.xprofile
echo "fcitx5 &" >> ~/.xprofile
# 重启生效
reboot讲解

浙公网安备 33010602011771号