Virtual Machine Ubuntu16.04 network settings and other common settings, virtual machine ubuntu16.04
By default, Ubuntu is not connected to the Internet. As a result, the basic library software cannot be updated, and tools such as putty and FileZilla cannot connect to Ubuntu.
1. First, set the network of the host machine
Set VMnet8
Set local connection and virtual network VMnet8 sharing
2. The installed Virtual Machine network is changed to the NAT mode. Go to the Ubuntu system to view the network card name, and then adjust the network configuration.
View Nic name: ifconfig
There is a problem with the default vi Editor, such as turning it to ABCD from top to bottom, which will be solved below. So temporarily use the gedit command to adjust the network configuration,
Set DNS,
Restart NETWORK SERVICE
Test whether the Network is available
Iii. Source Adjustment
1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted 2 deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties 3 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted 4 deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties 5 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted 6 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties 7 deb http://mirrors.aliyun.com/ubuntu/ xenial universe 8 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe 9 deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse10 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse11 deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse12 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties13 deb http://archive.canonical.com/ubuntu xenial partner14 deb-src http://archive.canonical.com/ubuntu xenial partner15 deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted16 deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties17 deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe18 deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
View Code
4. The problem becomes ABCD. Uninstall vi and reinstall it.
5. Install the ssh service and use putty to remotely log on to Ubuntu