开发板上的debian默认不显示中文。
- 安装字体
sudo apt install fonts-wqy-zenhei
- 安装locals
sudo apt install locales
- (无必要)设置/etc/locale.gen、设置/etc/locale.conf
- 运行dpkg-reconfigure locales
dpkg-reconfigure locales
可以选择UTF-8
用TAB切换到OK
用TAB切换到OK
- 重启(必须)
- 检查
$ localeLANG=zh_CN.UTF-8
LANGUAGE=
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=