Kali 设置中文主要分 3 件事:
1. 系统语言改中文
2. 安装中文字体
3. 安装中文输入法
下面按步骤来。
先打开终端执行:
sudo apt update
sudo apt install -y locales fonts-wqy-microhei fonts-wqy-zenhei
然后配置语言:
sudo dpkg-reconfigure locales
进入界面后:
zh_CN.UTF-8 UTF-8
en_US.UTF-8 UTF-8
zh_CN.UTF-8
完成后重启:
sudo reboot
如果重启后还是英文,执行:
sudo update-locale LANG=zh_CN.UTF-8
然后再重启:
sudo reboot
检查是否生效:
locale
看到类似这个就说明成功:
LANG=zh_CN.UTF-8
推荐安装 Fcitx5:
sudo apt install -y fcitx5 fcitx5-chinese-addons fcitx5-config-qt
设置输入法框架:
im-config
选择:
fcitx5
然后重启:
sudo reboot
重启后打开:
应用程序菜单 > 设置 > Fcitx 5 配置
或者终端输入:
fcitx5-configtool
添加输入法:
拼音 / Pinyin
切换输入法快捷键通常是:
Ctrl + Space
或者:
Ctrl + Shift
只执行这些就够:
sudo apt update
sudo apt install -y locales fonts-wqy-microhei fonts-wqy-zenhei
sudo dpkg-reconfigure locales
sudo update-locale LANG=zh_CN.UTF-8
sudo reboot
sudo update-locale LANG=en_US.UTF-8
sudo reboot
可以这样执行:
sudo apt update
sudo apt install -y locales fonts-wqy-microhei fonts-wqy-zenhei fcitx5 fcitx5-chinese-addons fcitx5-config-qt
sudo dpkg-reconfigure locales