How to Install Windows Subsystem for Linux in Windows 11 2022


This tutorial is about how to install Windows Subsystem for Linux in Windows 11. We will try our best for you to understand this guide. I hope you will like this blog How to Install Windows Subsystem for Linux in Windows 11. If your answer is yes, please share after reading this.

Check how to install Windows Subsystem for Linux in Windows 11

Windows Subsystem for Linux (WSL) lets you run Linux software on a Windows 11 PC. With WSL enabled, Windows can run a Linux distribution at the same time. Microsoft lets you enable WSL on all major versions of Windows 11, which means you don’t need to upgrade from Windows 11 Home to Pro to use it. Windows 11 uses WSL 2.0, which is an enhanced version of WSL designed to run the full Linux kernel in a Hyper-V environment.

Once WSL is running, you will have access to the Linux shell from the new Windows terminal. From here, you can use commands to install and run Windows software as well as Linux applications. Windows 11 includes support for Linux apps running with GPU access, making it a versatile tool for a wide variety of users. Here’s how to get Windows Subsystem for Linux working on your Windows 11 PC.

How to Install Windows Subsystem for Linux on Windows 11

Start PowerShell or Command Prompt as System Administrator. This is most easily accomplished by searching for “PowerShell” or “Command Prompt” in the start menu. Whichever option you choose, don’t just run the command line by hitting “Enter” because Windows won’t let you install WSL as a normal user. Instead, you need to click “Run as administrator” in the search results. Enter the following command:


Assuming you started PowerShell (as shown in our example) or Command Prompt as an administrator, this command should automatically enable the services that WSL relies on, download the utility, and install everything you need to make it work without more information. It also downloads and installs Ubuntu, a popular Linux distribution that can be found on everything from single-board computers to enterprise-class servers, by default.

Restart your PC. A notification should appear telling you that WSL has been installed and will be available after you restart your PC. You don’t need to restart your system right away, but if you don’t, WSL will remind you to restart the next time you try to do anything with the utility. Restart as soon as possible. WSL will install after reboot. Enter a username and password when prompted by WSL. This will be your WSL credentials only.

How to Install Different Linux Distributions on Windows 11

Ubuntu is the default Linux distribution installed with the Windows Subsystem for Linux, but it’s not the only “flavor” of Linux that supports Microsoft functionality. There are two ways to install alternative Linux distributions with their own default user interfaces, preinstalled utilities, and other features: via the command line and via the Microsoft Store.

command line

The command line, which stands for Command Prompt or PowerShell, is the most convenient way to install some of the most popular Linux distributions available today. Microsoft doesn’t allow all distros to be installed this way, probably because there are too many for the company to offer built-in support, but there are several popular distros available. Enter the following command:

wsl – list – online

The “wsl” part of the command indicates that we are using the Windows Subsystem for Linux, the “list” is a list of supported Linux distributions, and the “online” specifier indicates the distributions offered by Microsoft instead of those that we already have. . running on our PC. This command should return a list of distributions that can be installed via the command line.

Enter the following command to install a new distro


This command instructs the Windows Subsystem for Linux to install one of the distributions listed via the command above. At the time of writing, this includes everything from Debian, a distro that prides itself on its stability and provides the foundation on which distros like Ubuntu are built, to Kali Linux, the favorite of Offensive Security hackers.

Microsoft Store

Anyone not very comfortable with the command line can still install Linux distros through the Microsoft Store. This requires a bit more fiddling than the command line, mostly because it’s a graphical user interface rather than a text-based system, but it should be a familiar process for anyone who’s installed a software through a central distribution platform. previously.

  • Open the Microsoft Store. The app is automatically pinned to the Start menu and taskbar on new installations of Windows 11, but if you’ve removed it from those default locations, it’s easy enough to launch by searching for “Store” in the start menu.
  • Search for “Linux”. Linux distros don’t have a dedicated Microsoft Store section at the time of writing, but searching for “Linux” will reveal distros available through that point-and-click interface. There are different versions of Ubuntu available for download, for example with distributions like openSUSE Leap.
  • Click on the distribution you are interested in, then click on “Install”. As long as you’ve created a Microsoft account, the rest of the process should be handled by the Microsoft Store. Once that’s done, you’ll have a new distro to access through the Windows Subsystem for Linux, and one more chance to start learning how to use the command line.

How to Use GUI-Based Linux Software in Windows 11

WSL originally provided access to Linux’s command-line interfaces, which was probably fine for power users, but unlikely to make the operating system more accessible to newcomers. (It’s not necessarily in Microsoft’s interest to convince people that it’s better for them to use a free and open-source operating system instead of Windows.) That has changed, and now it’s possible to use Linux graphical user interface (GUI) applications on Windows. .

Update WSL using the following command


This will update the Windows Subsystem for Linux so that you can use GUI applications through the utility. Note that Microsoft only offers this feature through WSL 2; the first iteration of the utility is still limited to non-graphical interfaces that are clearly distinct from Windows. Restart wsl by typing

wsl off

Install the appropriate driver for your GPU. Microsoft links to WSL GPU driver installation instructions for Intel, AMD, and Nvidia GPUs. Follow these guidelines to ensure that your discrete graphics card or GPU integrated into your CPU is optimized to run graphics-based Linux software alongside Windows. Install the software you want to use. Linux distributions offer various package managers that can be used to install software via the command line; some also offer central distribution platforms similar to the Microsoft Store, where Linux apps can be found. It doesn’t matter which installation method you choose, but you must have something installed. Otherwise, you’re limited to whatever the distro has built in.

Launch the app, then interact with it like any other Windows app. Microsoft designed WSL 2 support for GUI applications to resemble the basic Windows experience. Once the software is launched (usually by entering a program-specific command in a terminal emulator), it can be interacted with using on-screen commands, pinned to the Start menu, added to the taskbar, and otherwise , treated as a typical Windows program.

Final Words: How to Install Windows Subsystem for Linux in Windows 11

Hope you understand this article How to Install Windows Subsystem for Linux in Windows 11, if your answer is no, you can ask anything via the contact forum section linked to this article. And if your answer is yes, share this article with your family and friends.


About Author

Comments are closed.