安装Ubuntu 为避免后期麻烦可以尽量将home设置为大容量磁盘;
修改IP地址
输入IP地址和inet类型;
auto enp3s0
iface enp3s0 inet static #设置接口enp3s0网络类型为静态;address 192.168.18.202 #配置IP地址,address约定俗成的写法
netmask 255.255.255.0 #子网掩码配置
修改DNS
sudo vi /etc/resolvconf/resolv.conf/base
nameserver 8.8.8.8
nameserver 202.96.209.133
添加apt源
$sudo vi /etc/apt/sources.list
$sudo apt-get upgrade
复制以下源添加到sources.list源,注释到地方可以不用在意,主要为快速更新,不影响其他。清华源地址:deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
原文链接:https://www.f2er.com/ubuntu/355411.html