Open the kali terminal and enter:
apt install fcitx
Install the input method framework
Install Google Pinyin input method command:
apt install fcitx-googlepinyin
After the input method is installed, open the Fcitx configuration; enter fcitx in the search box to find
Sort the installed Google Pinyin input method as the first
In the case of text input, press the shift key to switch between Chinese and English; the above installation and configuration deployment are completed.
Enter reboot to restart the system