Table of contents
Set hotkeys (quickly switch between Chinese and English input methods)
system settings
Enter the command sudo raspi-config
Select Localisation Options
Select Locale
Select zh_CN.UTF-8 UTF-8
Install input method ibus
Install the ibus framework
Enter the command sudo apt-get install ibus
Install Pinyin Engine
Enter the command sudo apt-get install ibus-pinyin
set.barshrc
Enter the command sudo nano $HOME/.bashrc
Enter the following content at the bottom and save and exit (how to use the nano editor will not be explained here)
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus settings
Enter the command ibus-setup
Set hotkeys (quickly switch between Chinese and English input methods)