1. ip r
2. ssh
3. sudo su -
4. passwd
5. vi /etc/ssh/sshd_config
6. PermitRootLogin yes
7. systemctl restart ssh
8. ssh root
9. ip l
10. vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.182.11
netmask 255.255.255.0
gateway 192.168.182.254
#dns-nameservers 192.168.182.254
auto eth1
iface eth1 inet manual
auto eth2
iface eth2 inet manual
10-1 vi /etc/resolv.conf
nameserver 192.168.182.254
nameserver 220.170.64.68
nameserver 8.8.8.8
10-2 vi /etc/resolvconf/resolv.conf.d/base
nameserver 192.168.182.254
nameserver 220.170.64.68
nameserver 8.8.8.8
11. reboot
12. vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
# deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
# deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
# deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合作伙伴和附加
# deb http://archive.canonical.com/ubuntu/ xenial partner
# deb http://extras.ubuntu.com/ubuntu/ xenial main
13. apt-get update
14. apt install python-pip
14-1. pip install --upgrade pip
14-2. pip install -U os-testr