Virtual Machine Ubuntu16.04 network settings and other common settings, virtual machine ubuntu16.04

Source: Internet
Author: User

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

 

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.