Big data actual combat Linux Ubuntu 20.04.1 server minimal installation and network configuration

1. The birth of Uduntu

Ubuntu is a Linux operating system based on desktop applications. Its name comes from the word "ubuntu" in Zulu or Hausa in southern Africa, which means "humanity" "I exist because of everyone's existence". It is Africa A traditional value.
Buntu Linux is a Debian Linux-based operating system founded by South African Mark Shuttleworth (Mark Shuttleworth). The first version of Ubuntu (Ubuntu 4.10 Warty Warthog) was announced in October 2004. Ubuntu is suitable for laptops, desktop computers and servers, especially for desktop users to provide a perfect experience. Ubuntu almost includes all commonly used application software: word processing, email, software development tools and Web services. Users download, use, and share the Ubuntu system, as well as obtain technical support and services, without paying any licensing fees.

2. iso image

It can be downloaded from the official domestic mirror website.
Click here to jump.
Insert picture description here
Left click 20.4/
Insert picture description here
right click, 914m and 3g. Save link as...
here is prepared in advance. The left is desktop, and the right is minimized.
Insert picture description here

3. Create a new virtual machine

3.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.

3.2 Install the system later

Insert picture description here
Here choose to install the operating system later.

Click Next.
Insert picture description here
Here, the client system selects Linux, and the version selects Ubuntu 64-bit.
Click Next.

3.3 Name the virtual machine and select the file directory of the virtual machine

Insert picture description here
The name of the virtual machine to be created, and the folder in which it is placed, are in accordance with everyone's habits.
Click Next.

3.4 Specify Disk Capacity

According to the performance of your host, choose the size of the disk, where the disk is 20g.
Insert picture description here
The maximum disk size is 20g.
Click step by step.

3.5 Finish creating a virtual machine

Insert picture description here
Click on custom hardware.

3.6 Mount iso

Insert picture description here
Device status, click Connect at startup, and click Close. For network installation.
Insert picture description here
Select all virtualization engines and click OK.

3.7 Firmware type

Select the virtual machine, right-click and select settings

Insert picture description here

Insert picture description here
Select an option,
Insert picture description here
click Advanced, and select UEFI as the firmware type.
Note: The difference between UEFI and BIOS.
1. UEFI is a so-called "firmware", which is responsible for hardware startup and detection when booting, and acts as an intermediary when the operating system controls the hardware.
2. Compared with BIOS, 99% of UEFI encoding is done by C language.
3. UEFI changes the previous interrupt and hardware port operation method, and adopts the new method of Driver/protocol.
4. UEFI will not support X86 real mode, and will directly use Flat mode (that is, DOS can no longer be used. Now some EFI or UEFI can be used because of compatibility, but in fact this part is not defined by UEFI).
5. UEFI output is no longer a simple binary code, it is changed to Removable Binary Drivers.
6. OS startup is no longer calling Int19, but directly using protocol/device Path.
7. For third-party development, BIOS basically cannot do it unless it participates in the design of BIOS, but it is also limited by the size of ROM, while UEFI is much more convenient.
8. UEFI makes up for the lack of BIOS support for new hardware.

3. The significant difference from BIOS is that UEFI uses a modular, C-style parameter stack transfer method, and a dynamic link to build a system. It is easier to implement than BIOS, and has stronger fault tolerance and error correction features, thus shortening Time of system development. More importantly, it runs in 32-bit or 64-bit mode, breaking through the addressing capabilities of traditional 16-bit codes and reaching the maximum addressing capability of the processor. This move overcomes the drawbacks of slow BIOS code running.

3.8 Check hardware

Check whether the iso is mounted, whether the connection is started, and whether the firmware type is UEFI.

4. Undressed Ubuntu

4.1 Select a virtual machine and click to start the virtual machine.

Insert picture description here

4.2 Carry out safety inspections

Insert picture description here
start installation.

4.3 Choose language

Insert picture description here
The language is English.
Press the Enter key.

4.4 Select keyboard

Insert picture description here
Choose a US keyboard.
When the cursor is on done, press Enter directly.

4.5 Selection of network card

Insert picture description here
Choose Continue without network, and then press Enter.

4.6 Enter the address of the agent

Insert picture description here
Address is not needed here, select done and press Enter.

4.7 Enter the download address of the domestic mirror

Do not choose the official mirror download address because the internet speed is very slow.
Insert picture description here
Here is changed to a domestic mirror, taking 163 as an example.
In addition, the website of Alibaba Cloud is:
http://mirrors.aliyun.com/ubuntu

Select done and press Enter.

4.8 Storage activation

Insert picture description here
By default, select done and press Enter.

4.9 Storage space

Insert picture description here
By default, select done and press Enter.
Insert picture description here
Choose Countinue.

4.10 Enter ordinary users and their passwords

Insert picture description here
Set the user name, the slave name is the same as the virtual machine name, and the username is bass. The password is 123.
Select done and press Enter.

4.11 SSH required

Insert picture description here
Press the enter key, ssh is required, select done, and press the enter key.

4.12 Wait for the installation to complete

Insert picture description here
Wait patiently. If you wait more than 15 minutes, change the address of the Alibaba Cloud image file.

Insert picture description here
Select Reboot Now and press Enter.

4.13 An error is reported after the VM restarts after installing Ubuntu

as follows.
Insert picture description here

The solution to the error:
close the client, edit the virtual machine settings, and cancel the "Connect at startup." in the CD/DVD item.
Insert picture description here
Then turn on the virtual machine.

4.14 Perform security checks on virtual machines

Insert picture description here

4.15 Enter account and password

Insert picture description here

4.16 Check if the installation is successful

Insert picture description here
ll, check whether the file is normal, as above, Uduntu is successfully installed.

4.17 Set root password

Insert picture description here
Switch to the root user and see if the setup is successful.
Insert picture description here
If # appears, it is the root user.
At this point, Uduntu is successfully installed.

5. Network configuration

5.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.

5.2 Check if there is a network card

Select the virtual machine and right-click settings.
Insert picture description here
See if there is a network adapter, or network card for short.

5.3 View network card name and dns

5.3.1 View the name of the network card

Insert picture description here
ip a

5.3.2 View dns

Enter the command in the prompt window, the ipconfig/all
network cable connection looks at the dns of the Ethernet, and the wifi connection looks at the dns of the wireless local area.

5.4 Enter the configuration file

Insert picture description here
cd /etc/netplan
ll

5.5 Write configuration file

Insert picture description here

5.6 Restart the network and check whether the configuration is successful

Insert picture description here
ping the IP address of the virtual machine
Insert picture description here

ping gateway
Insert picture description here

Ping the external network At
Insert picture description here
this point, the Ubuntu network configuration is successful.

Guess you like

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