How to Enable Windows Subsystem for Linux

Requirements for Running WSL on Windows 10

The journey to integrating Linux with your Windows PC begins with enabling the Windows Subsystem for Linux (WSL). It’s a crucial step before you can welcome a Linux distribution into your Windows environment. Compatibility is key here, and it’s essential to note that while not every Windows 10 version can support WSL, every iteration of Windows 11 can seamlessly run it.

For those with Windows 10, Microsoft stipulates that your system should be running on the 64-bit version 2004 or higher, boasting a Build number of at least 19041. If your version of Windows 10 is a bit older, fret not; you can still join the party, albeit with a manual WSL installation.

How to Enable Windows Subsystem for Linux

Should you encounter an error message stating, “The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again,” it’s a clear sign that WSL activation is in order. Here’s how to go about it:

  • Access Settings on your Windows 10 machine and navigate to Apps.
  • Under Related settings, select Programs and Features.
  • From there, click on the Turn Windows features on or off option, find the checkbox for Windows Subsystem for Linux, and give it a tick.
  • Click OK to cement your choice and then opt to Restart now to apply the changes.

Installing WSL on a Windows Machine

Once WSL is up and running on your device, you’re ready to install the Windows Subsystem for Linux itself, followed by any Linux distribution that suits your fancy. You might consider starting with a small, lightweight distro, especially if you’re treading lightly into Linux waters. Furthermore, you can even opt for a Linux desktop version with a graphical user interface to smooth out the learning curve.

WSL1 or WSL2: Which Is Better For You?

Enter WSL2, the latest iteration of the Windows Subsystem for Linux, which has set the standard for new installations. If you’re on Windows 11 or Windows 10, Version 1903 (Build 18362 or higher), WSL2 is ready to amplify your Linux experience with enhanced performance, full system call compatibility, and IPv6 support. Unlike WSL1, WSL2 operates using a full Linux kernel within a managed virtual machine, saving you the hassle of manually managing a VM to run Linux.

Despite WSL2’s advancements, there might be instances where WSL1 is more suitable, particularly if you’re working with older versions of VMware or VirtualBox—software that isn’t compatible with WSL2. However, for those utilizing the latest VMware or VirtualBox releases, which support Hyper-V, WSL2 remains a viable option.

Reasons to Switch to WSL1

The most compelling argument for opting for WSL1 over WSL2 is its superior performance when dealing with OS file systems. Although, this speed bump can be mitigated by housing your project files within the Linux file system itself. Regardless of which version you choose, once WSL is enabled and your chosen Linux distro is installed, you’ll be well-positioned to navigate the command line with finesse.

Tech Optimizer
How to Enable Windows Subsystem for Linux