Other common settings such as virtual machine Ubuntu16.04 network settings

Source: Internet
Author: User
Tags aliyun

The newly installed Ubuntu16.04 in the virtual machine is not connected to the Internet, which prevents the base Class library software from being updated, and putty, FileZilla and other tools cannot connect to Ubuntu.

First, the network to set up the host machine

Set up a virtual network VMnet8

Set up local Area connection and virtual network VMnet8 share

Second, the installed virtual machine Network is adjusted to NAT mode. Go to Ubuntu system to view the NIC name and adjust the network configuration.

View NIC Name: Ifconfig

This problem will be resolved below because of a problem with the default VI editor, such as turning up and down around the ABCD. So temporarily adjust the network configuration with the Gedit command,

Set up DNS,

Restart Network Service

Test whether the network is available

Third, the source adjustment

1 # deb Cdrom:[ubuntu 16.04 LTS _xenial xerus_-Release amd64 (20160420.1)]/xenial main restricted2 deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by Software-properties3 deb http://mirrors.aliyun.com/ubuntu/xenial main restricted4 deb-src http://mirrors.aliyun.com/ubuntu/xenial main restricted Multiverse universe #Added by software-properties< /c0>5 deb http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted6 deb-src http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted Multiverse universe #Added by Software-properties7 Deb Http://mirrors.aliyun.com/ubuntu/xenial Universe8 Deb Http://mirrors.aliyun.com/ubuntu/xenial-updates Universe9 Deb Http://mirrors.aliyun.com/ubuntu/xenial MultiverseTen Deb Http://mirrors.aliyun.com/ubuntu/xenial-updates Multiverse One deb Http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe multiverse A deb-src http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe Multiverse #Added by Software-properties - Deb Http://archive.canonical.com/ubuntu xenial partner - deb-src Http://archive.canonical.com/ubuntu xenial partner the deb http://mirrors.aliyun.com/ubuntu/xenial-security main restricted - deb-src http://mirrors.aliyun.com/ubuntu/xenial-security main restricted Multiverse universe #Added by Software-properties - Deb Http://mirrors.aliyun.com/ubuntu/xenial-security Universe -Deb Http://mirrors.aliyun.com/ubuntu/xenial-security Multiverse
View Code

Four, up and down into ABCD problem, uninstall VI reinstall can

Install SSH service, easy to use putty remote login Ubuntu

Other common settings such as virtual machine Ubuntu16.04 network settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.