- 安装了中文语言包。
sudo apt-get install language-pack-zh-hans
- 将系统的默认语言设置为中文
sudo update-locale LANG=zh_CN.UTF-8
- 添加环境
/etc/profile 最后中添加
export LANG=zh_CN.utf8
export LC_CTYPE="zh_CN.utf8"
可以在~/.bashrc文件后面也加上
sudo apt-get install language-pack-zh-hans
sudo update-locale LANG=zh_CN.UTF-8
/etc/profile 最后中添加
export LANG=zh_CN.utf8
export LC_CTYPE="zh_CN.utf8"
可以在~/.bashrc文件后面也加上