The Ubuntu virtual machine is installed on the computer because of the need for Linux. However, because the China Unicom pppoe dial-dial mode is used in the home, the VM cannot access the internet, the related settings are recorded as follows:
1. pppoe Internet access settings:
Reference Web site http://wenku.baidu.com/view/9e2fe6d4c1c708a1284a4449.html
1. First enable the VM Nic net8:
2. Set the VM Nic to vmnet8 (NAT): Select vmnet NAT under custom specific virtual network.
3. Share the network adapter (local connection) that can access the Internet in the PC: You need to enable other network users to connect through the intenet connection of the computer, and select vmnet8.
4. Set the default gateway of the vmnet8 Nic to the IP address of the NIC that the local PC can access.
5. Set the NIC address in the VM to an IP address in the CIDR Block corresponding to the vmnet8 Nic. The default gateway is the IP address corresponding to the vmnet8 Nic, and configure DNS.
Ifconfig eth0 192.168.0.123 netmask 255.255.255.0
Route add default GW 192.168.0.1
Set DNS:
In/etc/resolv. conf
Add
Nameserver 202.102.134.68
6. Restart the VM.
Ii. Install sshd and GCC
Sudo apt-Get install OpenSSH-Server
Sudo Apt-GetInstallBuild-essential