1、更新系统
sudo apt/apt-get update
2、安装中文字体
sudo apt/apt-get install xfonts-intl-chinese fonts-wqy-microhei fonts-wqy-zenhei -y
3、安装ntp
sudo apt/apt-get install ntp -y
4、更新日期和时间
sudo ntpdate ntp1.aliyun.com
阿里云的几个时间服务器
ntp1.aliyun.com
ntp2.aliyun.com
ntp3.aliyun.com
ntp4.aliyun.com
ntp5.aliyun.com
ntp6.aliyun.com
ntp7.aliyun.com
5、更改环境变量
sudo vim/nano /etc/environment
输入以下内容
LANG="zh_CN.UTF-8"
LANGUAGE=en_US:en
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="zh_CN.UTF-8"
6、使环境变量生效
source /etc/environment
7、更改默认的编码,命令窗口输入
sudo dpkg-reconfigure locales
进入图形界面,选中en_US.UTF-8 UTF-8和zh_CN.UTF-8 UTF-8并将zh_CN.UTF-8 UTF-8选为默认
8、选择时区
sudo dpkg-reconfigure tzdata
Asia–>china–>Shanghai
9、重启
reboot
修改前
修改后
,