Step-by-step installation of Ubuntu 22.04 LTS (2)
Tags: ubuntu
Published: 2024-03-27 03:07:19

## Ⅱ Installation

2-1 Insert the successfully written USB flash drive into the USB port of the PC where you need to install the system, press the On/Off button, and then quickly hit the F7 or F11 key on the keyboard (depending on the model, you can refer to the shortcut keys corresponding to the model in the following figure) to enter the boot setup, and then select the USB flash drive with the prefix UEFI: Enter to enter the installation wizard. If the USB flash drive is not recognized in the boot setup, please press Del or F2 key to enter BIOS setup and select Save & Exit > Boot Override, select UEFI: USB flash drive prefixed with Enter to enter the installation wizard.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g53pj0rh5eofzy79uzsa.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/il9eab7e2wa57n359mp4.png)
2-2, select the installation mode (usually choose Try or install Ubuntu).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pj5sl68vh53a42iaeegq.png)
2-3, select the system language and click lnstall Ubuntu.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7an000zqpdq0q0t3s6ht.png)
2-4, select the keyboard layout and click Continue to enter the next step.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4p55l2hf743vydwsmsmf.png)
2-5. Select Normalinstallation and cancel Download updates while installing Ubuntu to save installation time. Click Continue to go to the next step.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/201oqm6wiwweqpcqgq6m.png)
2-6, select Erase disk and install Ubuntu and click Install Now, select Continue partition, go to the next step.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/14rjhmotmup98t7u0ws1.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/49923831boyos3vqx9kp.png)

2-7、Choose your region and click Continue.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wq8w0duqyoxvedp6mdf8.png)
2-8, Your name: enter the user name, Choose a password: enter the password. (Please remember the password entered here.) After confirming that there is no error, click Continue to start installing the system, this step usually takes about 10 minutes, please wait until the installation is complete.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8nszb4v4sseacca093mh.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6o3p8ptsnsx1o9gx7n16.png)

2-9、After completing the installation, remove the USB flash drive, select Restart Now, and then press Enter to enter the system desktop after reboot.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h620tq77kykq7elm0uxw.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z6y38s37m4nb4zdj3piv.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p9x9047g1i0c954cj9e3.png)

## Ⅲ, ubuntu system many times need root privileges to use normally, the following introduction to open the root user and set the root password steps.

3-1, press Ctrl + Alt + T keys to open Terminal (Terminal), user@user-virtual-nachine:~s: enter sudo passwd root and enter, in turn, enter the current login user password, to set the root password, confirm the root password. (Note: It is recommended that you use a combination of upper and lower case letters and numbers for the root password, not less than 8 digits, such as Abc123456). When "passwd: password updated successfully" appears, it means the password is set successfully!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6r3zml3dpgfouzase3cc.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/izzb0c85q1ow06jbrdjt.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d35w2kzey1ys83ohjucp.png)
3-2、When you need to use root privileges, enter su root in Terminal, and enter root password in Password to switch to root user. When "root@user-virtual-machine: / home/user#" appears, it means the switch to root is successful!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g62nk7y08ssbknlvvnh3.png)
For more tutorials on computers, mini hosting check out the [sopport](https://www.hystou.com/support.html) section of [my website](https://www.hystou.com)!