web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Installation of Windows Subsystem for Linux

Olister Rumao Profile Picture Olister Rumao 3,967

Introduction:


I'm sure many saw this and wondered what this is. Let me explain.
This is known as Windows Subsystem for Linux(WSL). Basically, WSL is like a Linux Environment running on Windows without a need to have VM or Dual Boot.
WSL allows you to integrate your Linux Applications, Tools, directly inside Windows.
Refer What is Windows Subsystem for Linux | Microsoft Learn for more details.

Pre-requisites:

  • Basic Understanding of Linux
  • Basic Understanding of Virtual Machine 
  • Basic Understanding of OS Installation / Dual Boot

Books & References:

Demonstration:

1. Direct Installation via  wsl --install:

You can open PowerShell running as Administrator.

Note that this method is only available to Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11.

2. I will follow the Manual way of installation:

i. Enable Windows Subsystem for Linux:

Run the following command in Powershell with Administrator rights.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart


ii. Enable Virtual Machine Feature:

Run the following command in Powershell with Administrator rights.

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

You will need your machine to have virtualization capabilities. Restart the machine to complete WSL install correctly.


iii. Download the Linux Kernel Update Package and Install:

You can get the package from Linux Kernel Update Package from here and run the installer.



iv. Set WSL2 as the default version:
Run the following command in Powershell with Administrator rights.
wsl --set-default-version 2


v. Install a Linux Distribution from Microsoft App Source:
Go to Microsoft App Source and install Ubuntu Linux Distro.


vi. Open the Linux Distribution App and complete User Setup:

You will see a CLI version of Ubuntu started asking for Username and Password.



vii. Setup a GUI through LXDE Desktop Environment:
I tried setting up LXDE Desktop Environment. However, it did not work as expected.

Conclusion:

I hope this blog clarifies what is WSL and how to setup. More follow-up blogs will come up soon.
For any questions feel free to reach out to me at olisterr@outlook.com

Cheers!!


This was originally posted here.

Comments

*This post is locked for comments