How to Install the Windows Subsystem for Linux on Windows 11

The Windows Subsystem for Linux (WSL) enables you to run Linux software program on your Windows 11 PC. When you allow WSL, Windows will set up a custom-built Linux kernel. You can then set up Ubuntu or one other Linux distribution of your selection.

How WSL Works on Windows 11

You can allow the Windows Subsystem for Linux (WSL) on all editions of Windows 11—even Windows 11 Home. (You also can (*11*).)

Like more moderen variations of Windows 10, Windows 11 makes use of WSL 2. This second model is redesigned and runs a full Linux kernel in a Hyper-V hypervisor for improved compatibility. When you allow the function, Windows 11 downloads a Microsoft-built Linux kernel that it runs in the background. Windows Update retains the kernel up to date. (You can use your personal {custom} Linux kernel for those who desire, too.)

To use WSL, you’ll want to set up a Linux distribution. By default, WSL installs Ubuntu. This provides you with entry to a full Ubuntu command-line setting utilizing the Bash shell or some other command-line shell of your selection.

You can entry your Linux shell environments in the Windows Terminal app included with Windows 11, too.

You also can run graphical Linux apps out of the field (Just set up them in the Linux command-line setting and run the command.). Windows 11 additionally contains assist for working Linux apps with GPU entry, making GPU-accelerated Linux computing workloads run properly on Windows.

The Fast Way: Install WSL with a Command

Microsoft has made this course of very simple on Windows 11. You can allow the Windows Subsystem for Linux and set up a Linux distribution like Ubuntu with a single command.

To do that, you have to to use a command-line window with Administrator permissions. We’ll do that with the Windows Terminal, though you can even simply launch Command Prompt.

To launch a Windows Terminal with Administrator permissions, right-click the Start button on the taskbar or press Windows+X and click on “Windows Terminal (Admin).” (You also can discover the Windows Terminal shortcut in your Start menu—right-click it and choose “Run as Administrator.”) Agree to the User Account Control immediate that seems.

Right-click the Start button and select "Windows Terminal (Admin)."

To allow the Windows Subsystem for Linux and set up Ubuntu, which is the default distribution, simply run the following command:

wsl --install

When the course of is full, Windows will ask you to reboot your PC. Restart your pc. You’ll give you the option to use your Linux system after you do. (You can right-click the Start menu and click on Shut Down or Sign Out > Restart to shortly reboot.)

Run the "wsl --install" command.

To checklist different accessible Linux distributions, run the following command as a substitute. This lists (-l) distributions which are accessible on-line (-o).

wsl -l -o

You can set up a Linux distribution of your selection by working the following command, changing “Name” with the title of the Linux distro, as displayed in the “Name” column:

wsl --install -d Name

For instance, to set up Debian as a substitute of Ubuntu, you’d run:

wsl --install -d Debian

You also can run this command a number of instances to set up a number of Linux distributions on your system.

List available Linux distributions and install one.

Once your pc has rebooted, you may launch the Linux distro that you just put in out of your Start menu.

Launch the "Ubuntu" shortcut.

You’ll additionally discover it as an possibility in the Windows Terminal app. Click the down arrow to the proper of the new tab “+” button on the tab bar and choose the Linux distribution that you just put in.

Tip: If you don’t see the Linux distribution that you just put in in the Windows Terminal, launch it out of your Start menu first. After it completes its first-run setup course of, it can seem right here.

Click the down arrow and select your Linux distribution.

Now, you need to use the Linux shell simply as for those who have been sitting in entrance of a PC Linux—or as for those who have been remotely related to a server working Linux. You’ll simply want to know Linux commands.

The Slow Way: Enable WSL and Install a Distro

You also can allow the Windows Subsystem for Linux (WSL) the older method. This takes extra clicking, and we advocate simply working the command above.

To do that, open your Start menu and search for “Windows features.” (You can press the Windows key to open the Start menu and simply begin typing.) Launch the “Turn Windows Features On or Off” shortcut.

Enable the “Windows Subsystem for Linux” checkbox right here and click on “OK.” You will probably be prompted to reboot your pc.

Enable the "Windows Subsystem for Linux" option and click "OK."

After you do, open the Microsoft Store app and search for the Linux distribution that you really want to use. For instance, you may search for “Ubuntu.”

Install the Linux distribution that you really want to use (like Ubuntu) as you’ll some other utility. Just click on the “Install” button on its Store web page.

You can now launch it out of your Start menu simply as if it have been put in from the command above.

Install Ubuntu from the Microsoft Store.

Source link

This Web site is affiliated with Amazon associates, Clickbank, JVZoo, Sovrn //Commerce, Warrior Plus etc.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *