Featured image of post Installing WSL on Windows 11 Home (Ubuntu)

Installing WSL on Windows 11 Home (Ubuntu)

A practical step-by-step guide to enabling Windows Subsystem for Linux (WSL2) and setting up Ubuntu on Windows 11 Home.

Windows Subsystem for Linux (WSL) offers a powerful way to integrate Windows 11 Home with Linux. Having a growing interest in Linux and venturing into DevOps, I decided to find out how Ubuntu can be used on my new Windows machine—after previously trying to install Ubuntu on a bootable USB and realizing I mostly used the CLI rather than the bundled desktop apps.

This article details how to install WSL with Ubuntu on Windows 11 Home, providing a practical approach to enhancing your development workflow.

Why WSL?

With WSL, you get direct access to Linux command-line tools without giving up Windows convenience or dual-booting.


Installation Steps

Step 1: Enable Windows Subsystem for Linux

  1. Click on the Start menu.
  2. Search for Turn Windows features on or off and open it.
  3. Scroll to the bottom and check the box for Windows Subsystem for Linux. Windows Features dialog with Windows Subsystem for Linux checked
  4. Click OK.
  5. Click Restart now so the changes take effect. Windows Features confirmation or restart prompt

Step 2: Install WSL2

  1. Launch PowerShell as Administrator.
  2. To view available distributions verified for installation, run:
1
wsl --list --online
  1. To install the default Ubuntu distribution, run:
1
wsl --install

Windows Features confirmation or restart prompt

  1. To install a specific distribution, run:
1
wsl --install -d DISTRO-NAME

For example, running:

1
wsl --install -d Ubuntu-20.04

will install Ubuntu 20.04 LTS.

  1. Restart your machine when prompted.

Step 3: Set Up Ubuntu

  1. Launch the installed Ubuntu app from the Start menu.
  2. Follow on-screen instructions to set up a user account and configure your Ubuntu environment.
  3. Upon completion, you’ll have a fully functional Ubuntu terminal ready for use.

Windows Features confirmation or restart prompt

Conclusion

Following these steps, you’ve successfully integrated Ubuntu into your Windows machine and can now navigate a Linux environment from your familiar Windows desktop.

Thank you for reading. Happy Coding!