VMware installation and Ubuntu installation and uninstallation in virtual environment (including Ubuntu system configuration)

1. Install VMware

1.1 Download VMware

1. Go to vmware official website to download;
2. Or search directly on the search engine. There are many shared virtual machine installation packages on the Internet.

1.2 Install VMware

1. Download the file: After installation, this interface will appear.
Insert image description here
2. If you click Next and this page appears, it proves that you already have VMware in your computer and can use it directly. If you want to reinstall, just delete it and reopen the installation program to continue the installation.
Insert image description here
3. Check [I accept the terms of the license agreement] and click [Next].
Insert image description here
4. You can choose the installation location and change it to a drive other than the C drive to prevent the C drive from being full (of course, if your C drive has more space, you can choose not to change it).
Insert image description here
5. Then the software is being installed...
Insert image description here
6. The installation is completed.
Insert image description here
7. Search for the VMware workstation16 key from the search engine, copy one and fill it into the license, and finally click Finish (the corresponding key is not provided in this article). If you click Finish first, just enter the key in the help.
Insert image description here

2. Install Ubuntu in a virtual machine

2.1 Download Ubuntu

1. Download the Ubuntu image file.
Enter the Ubuntu official website and click download
Insert image description here
2. Click "desktop" -> "download"
Insert image description here

2.2 Install Ubuntu operating system (Ubuntu16.04)

1. Create a new folder to store the installed system (it is recommended that the path should not contain Chinese characters)
Insert image description here
2. Create 2 folders VM and DATA under the linux folder
Insert image description here
3. Copy the Linux system image to the Linux folder
Insert image description here
4. Install
Insert image description here
5 .Select Custom (Advanced) (C), and then click [Next].
Insert image description here
6. Select [Workstation 16.x] and click [Next].
Insert image description here
7. Select [Install the operating system later] and click [Next].
Insert image description here
8. Select [Linux] and [Ubuntu 64-bit], and then click [Next].
Insert image description here
9. Edit the name of the virtual machine. Choose the name as you like. It is best not to contain Chinese characters, and select the VM folder under Linux.
Insert image description here
10.1 Here is a step to check how to check the number of cores of your computer. Right-click [WIn] and click on Device Manager;
Insert image description here
10.2 For example, as shown in the figure below, this computer has 4 cores.
Insert image description here
11. Select the number of processors and the number of cores per processor, and then click [Next].
Insert image description here
12. Select the virtual machine memory and click [Next].
Insert image description here
13. Select [Use a bridged network], and then click [Next].
Insert image description here
14. Select [LSI Logic(L)], and then click [Next].
Insert image description here
15. Select [SCSI(S)], and then click [Next].
Insert image description here
16. Select [Create a new virtual disk (V)], and then click [Next].
Figure 16
17. Select [Maximum disk size], check [Split virtual disk into multiple files] and click [Next].
Figure 17
18. Select the disk space location and click [Next].
Figure 18
19. Select [Customize Hardware].
Figure 19
20. First click [CD/DVD (SATA)], then select [Use ISO Image File], select the previous Ubuntu image file, and then click [OK].
Insert image description here
21. If the situation is the same as the following, click Close and click Finish (if not encountered, ignore this step).
Insert image description here
22. Click on the settings option of the virtual machine, and then perform the following operations.
Insert image description hereInsert image description here
23. After completing the creation of the blank virtual machine, proceed with the installation of Ubuntu and click [Open this virtual machine] (the name of the virtual machine previously set in step 9).
Insert image description here
Then press Enter or wait a few seconds and it will automatically jump.
Insert image description here

24. Select [Chinese (Simplified)]. Of course, if your English is better, it is better to choose Eglish. Then click [Install ubuntu]
Insert image description here
Steps 1~24 are applicable to the installation of most Ubuntu versions (I have only tried the installation of Ubuntu16.04 and Ubuntu22.04. The installation process of the intermediate versions should not be much different. You can refer to the above steps.), Ubuntu22. The subsequent installation steps of 04 (newer version) are slightly different from those of Ubuntu16.04. You can jump directly to the 2.5 Ubuntu22.04 (newer version) installation tutorial.

25. Click the two check boxes as shown below, and then click [Continue].
Insert image description here
26. Select [Erase entire disk and install Ubuntu], and then click [Install Now].
Insert image description here
27. Click [Continue].
Insert image description here

28.InputShanghai, click [Continue]. (Don’t ask why you chose Shanghai, just ask because we are all from Shanghai hhh)
Insert image description here
29. Select [Chinese] (both left and right), and then click [Continue].
Insert image description here
30. Set the account information, as shown below. Click [Continue] when the setting is completed.
Insert image description here
31. Installing the system..., just wait for the installation.
Insert image description here
32. When the installation is complete, click [Restart Now].
Insert image description here
33. Press the Ctrl+Alt keys simultaneously and release the mouse
Insert image description here
Insert image description here
. At this point, the installation of the Ubuntu operating system in the virtual machine is completed.

2.3 VM-Tools related tool installation

1.1 Achieve interoperability between two systems – install a tool VM-Tools, and remind you to install tool 1.2 on the lower side. You
Insert image description here
can also install it on the following interface
Insert image description here
. 2. The interface will pop up automatically.
Insert image description here
3. Right-click on a blank space and open it in Terminal.
Insert image description here
4. When the command is input. You can enter the first few letters and then press the TAB key on the keyboard to automatically complete them.
Insert image description here

sudo cp VMwareTools-10.3.23-16594550.tar.gz /tmp

Insert image description here

sudo cd /tmp

Insert image description here

sudo tar -xvf VMwareTools-10.3.23-16594550.tar.gz 

Insert image description here

cd vmware-tools-distrib/

Insert image description here

sudo ./vmware-install.pl 

Insert image description here
Where there is a pause, just press the Enter key.
Insert image description here
Insert image description here

reboot

To verify that the installation is complete, you can copy and paste a file directly into Ubuntu.

2.4 Set up Ubuntu root user login

Insert image description here

sudo passwd root

Insert image description here
Insert image description here

cd /usr/share/lightdm/lightdm.conf.d/

Insert image description here

sudo gedit 50-ubuntu.conf

Insert image description here

greeter-show-manual-login=true

Then Ctrl + S to save, Ctrl + Q to exit, and then enter reboot to restart.
Insert image description here

reboot

Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here

gedit /root/.profile

Insert image description here

#mesg n || true
tty -s && mesg n

Insert image description here

reboot

If the virtual machine is not in use, we can just click suspend.
Insert image description here
We do not use the root account to log in, we use a normal account to log in.
Insert image description here

2.5 Ubuntu22.04 (newer version) installation tutorial

Step 1-24 reference2.2 Install Ubuntu operating system (Ubuntu16.04)
25. Select the language as Chinese and click Continue
Insert image description here
26. Click Continue by default
Insert image description here
27. Click Install Now
Insert image description here
28. Click Continue
Insert image description here
29. Select the time zone
Insert image description here
30. Set the login user and password
Insert image description here
31. Wait for the system installation to complete
Insert image description here
32: Click [Restart Now]
Insert image description here
33. At the same time Press the Ctrl+Alt keys and release the mouse
Insert image description here
Insert image description here

At this point, the installation of the Ubuntu22.04 operating system in the virtual machine is completed.

[Note] Ubuntu22.04 version does not require manual installation of VM-Tools related tools. The system has already been installed for us when installing the operating system.

3. Uninstall Ubuntu in the virtual machine

1. Right-click the virtual machine->Manage->Delete from disk
Insert image description here
2. Click "Yes"
Insert image description here
3. Enter the installation document of Ubuntu and delete the iso file downloaded before (you do not need to uninstall it, I will uninstall it to introduce the download steps)
Insert image description here
Disclaimer: The configuration process in this article is for learning reference only. If you plan to use it for commercial purposes, please do not purchase and use genuine software! Infringement will be deleted immediately! ! !

Guess you like

Origin blog.csdn.net/YSA_SFPSDPGY/article/details/131701495