Windows Subsystem for Linux(WSL)

In general, there are two ways to implement Windows Subsystem for Linux(WSL).

A] Graphical User Interface (GUI)

B] Command Line Interface (CLI)

Prerequisites:
  1. Make sure your Windows version supports WSL. WSL 2 requires Windows 10 Version 1903 or higher with Build 18362 or higher.
  2. Enable Virtualization in your BIOS/UEFI settings.
A] Here are the general steps to implement WSL on windows using GUI:

1. From the taskbar, click search box or search icon and search for “Turn Windows features on or off” and click “Open”.

2. Once the “Windows Features” window opened, scroll down and look for “Virtual Machine Platform”, “Windows Hypervisor Platform”(optional) and “Windows Subsystem for Linux(WSL)” and select the checkbox and click OK

3. Restart your computer.

4. Install a Linux distribution from the Microsoft Store. You can search for distributions like Ubuntu, Debian, or others.

B] Here are general steps to install WSL on Windows using Command prompt or Powershell:
Prerequisites:

1. Make sure your Windows version supports WSL. WSL 2 requires Windows 10 Version 1903 or higher with Build 18362 or higher.

2. Enable Virtualization in your BIOS/UEFI settings.

Installing WSL:
1. Open PowerShell as Administrator:

– Right-click on the Start button.

– Select “Windows PowerShell (Admin)” or “Command Prompt (Admin)”.

2. Run the following command to enable the WSL feature:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
3. Enable Virtual Machine Platform (required for WSL 2):
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
4. Restart your computer.
5. Install a Linux distribution from the Microsoft Store. You can search for distributions like Ubuntu, Debian, or others.
6. Set up WSL 2 as the default version:
wsl --set-default-version 2
Configuring WSL:

1. Launch your installed Linux distribution from the Start menu.

2. Set up a user account and password when prompted.

Updating WSL:

Microsoft frequently updates WSL, so it’s a good idea to keep it up to date. You can update WSL using the following PowerShell command:

wsl --update

How do you feel about this post? Drop your comments below..