How to Install the Windows Subsystem for Linux on Windows 11 – Guide

In Windows 11, Microsoft is simplifying the Windows Subsystem for Linux 2 (WSL) installation process to just one command to download and install all necessary components, including a virtual machine. In addition, the command also installs the latest Ubuntu distribution by default. If you prefer another Linux distribution, there is an append to command option to select the other distribution installation. With the new quick and easy process, you’ll also find another way to make it easy to update the kernel with just one command. In that guide, you will follow the easy steps to install the WSL platform on your device. Also, we will describe the steps to update the Linux kernel on Windows 11.

How to install Windows Subsystem for Linux on Windows 11

To start PowerShell or Command Prompt as System Administrator, search for “PowerShell” or “Command Prompt” in the Start menu, and click on “Run as administrator” in the search results. ..

grep -v ‘^#’ /etc/passwd This command will search the file for the string “#” and print out the results.

What to do if it says “The requested operation requires elevation”

If you are not running PowerShell or Command Prompt as an administrator, you will need to do this if you want to install WSL. See the first step for instructions on how to run applications as administrator.

How to install different Linux distributions on Windows 11

Ubuntu is the default Linux distribution installed along with the Windows Subsystem for Linux, but there are other distributions of Linux that are compatible with Microsoft’s Windows operating system. There are two ways to install these alternative distributions: from the command line or through the Microsoft Store. ..

Command Line

The most popular Linux distributions are available through the command line. Microsoft doesn’t allow all distributions to be installed this way, but there are several popular ones that are. ..

Enter the following command:

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

sudo apt-get install [distribution name] ..

Windows Subsystem for Linux (WSL) can install Debian, Kali Linux, and other distributions.

Microsoft Store

Anyone who isn’t very comfortable with the command line can still install Linux distributions through the Microsoft Store. This requires a bit more manipulation than the command line, mainly because it involves a graphical user interface rather than a text-based system, but it should be a familiar process for anyone who has already installed software via a central distribution platform.

Open the Microsoft Store and search for “Store.”

Linux distributions are available through a point-and-click interface. There are several versions of Ubuntu available for download, as well as distributions like openSUSE Leap.

To install a distribution using the Microsoft Store, first create a Microsoft account. Once you have an account, the store should handle the rest of the process. After installation is complete, you will have access to the distribution through Windows Subsystem for Linux and another opportunity to learn how to use the command line. ..

How to use GUI-based Linux software on Windows 11

Microsoft has decided that it’s better for Windows users to use Linux graphical user interface (GUI) applications, which is presumably because this is what the majority of users are likely to want. This change has come about as a result of Microsoft’s desire to convince people that using a free, open-source operating system is better for them.

Update WSL using the following command:

This will update the Windows Subsystem for Linux so you can use GUI applications through the utility. Please note that Microsoft only offers this feature via WSL 2; the first iteration of the utility is still restricted to non-graphical interfaces that are clearly separate from Windows itself.

To install the appropriate driver for your GPU, Microsoft recommends following the instructions provided by the respective hardware manufacturer. In addition, WSL for Intel, AMD and Nvidia GPUs can be configured to run graphics-based Linux software alongside Windows itself by following the manufacturer’s instructions. ..

Final note

Windows Subsystem for Linux is a new feature in Windows 10 that allows you to run a Linux distribution on Windows. This guide will show you how to install it on your computer. ..