Kali 设置中文教程

Kali 设置中文主要分 3 件事:

1. 系统语言改中文
2. 安装中文字体
3. 安装中文输入法

下面按步骤来。

1. 更新软件源

先打开终端执行:

sudo apt update

2. 安装中文语言包和字体

sudo apt install -y locales fonts-wqy-microhei fonts-wqy-zenhei

然后配置语言:

sudo dpkg-reconfigure locales

进入界面后:

  1. 找到并勾选:
    zh_CN.UTF-8 UTF-8
  2. 也可以保留:
    en_US.UTF-8 UTF-8
  3. 下一步默认语言选择:
    zh_CN.UTF-8

完成后重启:

sudo reboot

3. 手动设置系统语言

如果重启后还是英文,执行:

sudo update-locale LANG=zh_CN.UTF-8

然后再重启:

sudo reboot

检查是否生效:

locale

看到类似这个就说明成功:

LANG=zh_CN.UTF-8

4. 安装中文输入法

推荐安装 Fcitx5:

sudo apt install -y fcitx5 fcitx5-chinese-addons fcitx5-config-qt

设置输入法框架:

im-config

选择:

fcitx5

然后重启:

sudo reboot

5. 添加中文输入法

重启后打开:

应用程序菜单 > 设置 > Fcitx 5 配置

或者终端输入:

fcitx5-configtool

添加输入法:

拼音 / Pinyin

切换输入法快捷键通常是:

Ctrl + Space

或者:

Ctrl + Shift

6. 如果只是想显示中文,不需要输入中文

只执行这些就够:

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

7. 如果你想恢复英文

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
然后选择 zh_CN.UTF-8,重启后再配置 Fcitx5 拼音输入法。