标签 armbian 下的文章

1.设置中国时间

sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone

2.更换软件源
编辑/etc/apt/sources.list删除里面的内容,换成下面的(此源为arm版Ubuntu-bionic软件源):
注意:此软件源只适用于ubuntu系统

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-proposed main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-proposed main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe

Debian-buster的软件源:
注意:此软件源只适用于debian系统

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free

3.更新软件列表和软件:

sudo apt update && apt upgrade

4.编辑/etc/locale.gen去掉zh_CN.UTF-8前面的# 然后保存并退出
5.安装中文字体

sudo apt-get install ttf-wqy-zenhei

如果要输入y/n的话,输入y并回车
6.编辑.xprofile

sudo nano ~/.xprofile

添加以下代码

export LC_ALL=zh_CN.UTF-8

按ctrl+x、按y、回车
7.编辑/etc/default/locale
将内容改成:

File generated by update-locale
LC_MESSAGES=zh_CN.UTF-8
LANGUAGE=zh_CN.UTF-8
LANG=zh_CN.UTF-8
LC_ALL=zh_CN.UTF-8

8.执行以下命令

sudo locale-gen zh_CN.UTF-8

9.最后重启系统

reboot