换源

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main universe restricted

设置编码

export LC_ALL=”en_US.UTF-8”

设置时区

在.profile后加上
TZ='Asia/Shanghai'; export TZ
如果是Ubuntu

设置DNS

修改/etc/resolv.conf文件
改为路由器的DNS