Enable WSL via Optional Features in Windows 11
The Windows Subsystem for Linux (WSL) allows developers and power users to run a GNU/Linux environment directly on Windows 11 without the overhead of a traditional virtual machine or dual-boot setup. This guide provides a straightforward, step-by-step walkthrough for enabling WSL using the built-in Optional Features graphical interface in Windows 11.
Step 1: Open the Windows Features Menu
- Press the Windows Key + R to open the Run dialog box.
- Type
optionalfeaturesand press Enter, or search for Turn Windows features on or off in the Start menu search bar and select the top result.
Step 2: Enable WSL and Virtual Machine Platform
- In the Windows Features pop-up window, scroll down the list of available components.
- Locate and check the box next to Windows Subsystem for Linux.
- To ensure compatibility with WSL 2, also locate and check the box next to Virtual Machine Platform.
- Click the OK button at the bottom of the window.
Step 3: Restart Your Computer
- Windows will apply the necessary system changes and search for required files.
- When prompted, click Restart now to complete the feature installation. A system reboot is mandatory for the changes to take effect.
Step 4: Install a Linux Distribution
Once your computer restarts, the core WSL feature is active. To begin using Linux:
- Open the Microsoft Store from the Start menu.
- Search for your preferred Linux distribution (such as Ubuntu, Debian, or openSUSE).
- Click Get or Install.
- Once installed, launch the distribution from the Start menu to complete the initial user account configuration.