Big data actual combat Linux Ubuntu 20.04.1 desktop version installation and network configuration

1. Install the virtual machine

1.1 Open VNware, right click to run as management

Click the file in the upper left corner, and then create a new virtual machine. Typical recommended installation is recommended.
Insert picture description here
Click Next.

1.2 Install the virtual machine operating system

Insert picture description here
Choose to install later, usually after installing the virtual machine and then mounting the image.
Click Next.

1.3 Select system and version

Insert picture description here
Choose Linux operating system, Ubuntu 64 bit.
Click Next.

1.4 Naming the virtual machine and choosing a location

Insert picture description here
Name the virtual machine and create a file to store the virtual machine.
Click Next.

1.5 Set Disk Size

Insert picture description here
Choose the disk size and choose according to the performance of the host. Here, 20g is selected by default.
Click Next.

1.6 Improve the hardware

Insert picture description here
Click on custom hardware.

1.6.1 Processor

Insert picture description here
The processor cores are selected according to the performance of the host machine. Here, the total number of processor cores is 2, and all virtualization engines are selected.

1.6.2 New CD / DVD

Insert picture description here
Select the device status to connect at startup.
Mount the image file.

1.6.3 Firmware Type

Select the current virtual machine, right-click and choose Settings.

Insert picture description here

Insert picture description here
Select the option,
Insert picture description here
and the installation of this virtual machine is complete, you can install Ubuntu.

2. Install Ubuntu Desktop Edition

2.1 Turn on the virtual machine

Insert picture description here
Click to turn on the virtual machine.
Insert picture description here
Wait for the reading to be completed.

2.2 Choose language

Insert picture description here
Choose English as the language.

2.3 Select keyboard

Insert picture description here
The American keyboard is selected by default, and click Continue.

2.4 Installation method

Insert picture description here
Minimize the installation by default, click Continue.

2.5 Installation type

Insert picture description here
Ubuntu needs to be installed by default, click Install Now.

2.6 Rewrite disk

Insert picture description here
Click Continue.

2.7 Select time zone

Insert picture description here
Select Shanghai and click Continue.

2.8 Set common user password

Insert picture description here
Set the normal user name to bass and the password to 123 and
click Continue.

2.9 Installing Ubuntu

Insert picture description here
Wait for the installation to complete.

2.10 Restart the system

Insert picture description here

2.11 Enter the system

Insert picture description here
Press the Enter key.

Insert picture description here
Insert picture description here
Insert picture description here

Click on the user and enter the password 123.

2.12 Welcome screen

Insert picture description here
Click next.
Insert picture description here
Click next.
Insert picture description here
Click next.
Insert picture description here
Click done.
At this point, the Ubuntu installation is complete.

Insert picture description here
Since the desktop keeps popping out of no network, the method of inputting commands is used to configure the network below.

3. Network configuration

3.1 Edit virtual network editor

Insert picture description here
Insert picture description here
Select VMnet8 and change the subnet IP to the specific requirements of the problem. Here is 172.25.0.0 as an example.
Cancel the use of the local DHCP service to assign IP addresses to virtual machines.
Then click, NAT settings, write gateway.
Insert picture description here
The gateway uses 172.25.0.254 as an example.

3.2 Open a terminal window

hot key. trl+Alt+T.

3.3 Set root password, switch root user

Insert picture description here
sudo passwd root
su - root

3.4 Edit the file of network configuration

3.4.1 View the name of the network card and the dns of the host.

Insert picture description here
Enter the command in the prompt window, ipconfig/all
ip a The
network cable connection looks at the dns of the Ethernet, and the wifi connection looks at the dns of the wireless local area.

3.4.2 Enter file

Insert picture description here

3.4.3 Editing files

Insert picture description here

Insert picture description here
ens33 is the name of the network card.
dhcp4:no means that automatic IP address acquisition is not used.
Write the above ip address as 172.25.0.20.
172.25.0.20/20 means that the IP address is 172.25.0.20. The subnet mask is 255.255.255.0.
The gateway is 172.25.0.254.
dns is 192.168.43.1

3.4.4 Restart the network

Insert picture description here
netplan apply

3.4.5 Check whether it is successful

ping 172.25.0.20 the IP address of this machine
Insert picture description here

ping 172.25.0.254 gateway
Insert picture description here

ping qq.com extranet
Insert picture description here
Note: ctrl+c. Terminate the ping network.
At this point, the Ubuntu network configuration is successful.

4. Use the root user to log in to the system

Click here for details

Guess you like

Origin blog.csdn.net/qq_45059457/article/details/108748925