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
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)
2.2. Click Get, wait for the installation, and then click Open
2.3. Enter the account password (note: there may be format requirements)
2.4. In this way, the installation is successful
3. GUI interface application running Linux
3.1 Run "PowerShell" as an administrator and enter wsl --update
the command to check for updates (the Linux GUI interface application can only be run after the update)
3.2 Enter wsl --shutdown
reboot.
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.
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…)
Address: https://blog.csdn.net/qq_40846862/article/details/119609971
Description: After installing WSL, it will be successful
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.)