[Installation Tutorial] Windows 11 installs the Linux subsystem and runs Linux GUI applications

Introduction

Not only can you run Android applications on Windows 11, but you can also run Linux applications, and you can hardly feel the difference, just like running Windows' own applications. To run Linux applications, you need to install the Windows 11 Subsystem for Linux. And the Linux subsystem is isolated from Windows 11.

The steps to install the Linux subsystem in Windows 11 are as follows

1. Two functions need to be turned on.

Open the enable or disable Windows function interface in the control panel, check Virtual Machine Platform (virtual machine platform) and Windows Subsystem for Linux and click OK
Please add a picture description

Please add a picture description

2. Install the Linux version

2.1 After the setup is complete, you may need to restart. After restarting, go to the application store that comes with Windows 11 (you can directly search the mall and it will come out), search for "Linux" in the mall, choose a Linux version you want to install, and it may let you Enter a username and password. (I choose Ubuntu)
Please add a picture description

2.2. Click Get, wait for the installation, and then click Open

Please add a picture description

2.3. Enter the account password (note: there may be format requirements)
Please add a picture description

2.4. In this way, the installation is successful
Please add a picture description

3. GUI interface application running Linux

3.1 Run "PowerShell" as an administrator and enter wsl --updatethe command to check for updates (the Linux GUI interface application can only be run after the update)
Please add a picture description

3.2 Enter wsl --shutdownreboot.

3.3 To run Linux GUI applications, you need to install related graphics drivers (I didn’t find where to see the installation, if you find it, please leave a message to tell me)

Suggestion: do not install

The reasons are as follows:

  • From the perspective of resources: Graphical desktop environments consume a lot of system resources. You can use Ubuntu Server on a machine with as little as 512 MB of RAM, but Ubuntu Desktop requires at least 2 GB of RAM to provide proper functionality. Running a desktop environment on a server is considered a waste of resources.
  • Force yourself to learn: your system should be used and administered via the command line. To reach this level, you need to have a solid knowledge of Linux commands.
  • Please do not add a GUI on a production server. Subsequent removal of the GUI may cause dependency issues and in some cases break the system.

3.4. Enter the Linux subsystem, click the arrow on the PowerShell window, and select the Linux subsystem you installed.
Please add a picture description

If you need to install GUI, enter the corresponding command, such as installing gimp software, entersudo apt-get install gimp

After the installation is complete, type "gimp" (the name of the application you installed) to start the application.

problem solved

1. WSL installation cannot be opened (WslRegisterDistribution failed with error: 0x800701bc…)

Please add a picture description

Address: https://blog.csdn.net/qq_40846862/article/details/119609971

Description: After installing WSL, it will be successful

Please add a picture description

2.adduser: Please enter a username matching the regular expression configured

Solution: Change the uppercase first letter to lowercase

with reference

1. Windows 10 uses WSL to install mitmproxy to capture packets Address: https://juejin.cn/post/6844903618663940109

2.[Windows 11 installs the Linux subsystem and runs Linux GUI applications - Tencent Cloud Developer Community - Tencent Cloud (tencent.com)](https://cloud.tencent.com/developer/news/865385#:~:text =Open the enable or disable Windows function interface in the control panel, check the two items of Virtual Machine, Platform and Windows Subsystem for Linux, and click OK. After the setting is completed, you can search for "Linux" in the App Store that comes with Windows 11. Choose a Linux version you want to install, the installation process is very simple, you may be asked to enter a user name and password.)

Supongo que te gusta

Origin blog.csdn.net/Daisy74RJ/article/details/125483629
Recomendado
Clasificación