Step by Step Procedure to Install WSL2 on Windows And Run Ubuntu on Windows Using WSL2

Arunkl
TheSecMaster
Published in
5 min readApr 12, 2023
Windows, WSL and Linux penguin sitting on a black background
Source:thesecmaster.com

As you know, there are multiple ways and applications to boot multiple operating systems in parallel on the Windows platform. Windows Subsystem for Linux is one among them. WSL allows you to install and run your choice of Linux distribution (Available in the Microsoft Store) on a Windows computer like an application. If you want more information about Windows Subsystem for Linux in Microsoft Windows. We have a dedicated post covering all the basic information about Windows Subsystem for Linux. However, in this post, we will show you the practical procedure, like how to install, enable, set up, and configure Windows Subsystem for Linux on a Windows computer. Let’s see a step-by-step procedure to install WSL2 on Windows and run Ubuntu on Windows using WSL2.

Table of Contents

· What Is Windows Subsystem for Linux?
· Pre-Requisites to Install WSL2 on Windows:
· How to Install WSL2 on Windows 10 / Windows 11?

What Is Windows Subsystem for Linux?

Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables (in ELF format) natively on Windows 10. WSL provides a Linux-compatible kernel interface developed by Microsoft, allowing users to run native Linux apps in unmodified Linux distributions running on the Windows kernel. This is made possible through a new Linux-compatible subsystem that was added to the Windows Kernel called Windows Subsystem for Linux (WSL).

-Wikipedia

In addition to providing increased compatibility with many existing Linux programs, WSL offers a simpler installation process for some popular Linux distributions like Ubuntu, Debian, and Kali Linux. Microsoft worked with Canonical, the company behind Ubuntu, to bring the entire userland into Windows as a separate app package. This makes it possible to run Ubuntu in Windows without having to dual-boot or use a virtual machine.

Pre-Requisites to Install WSL2 on Windows:

Before we head towards the installation of the Windows Subsystem for Linux 2 (WSL2), let’s check the pre-requisites to install WSL2 on Windows computers.

  • To run WSL2, Windows 10 should have the below versions,

. For x64 systems: Version 1903 or higher, with Build 18362 or higher.

. For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.

. Or Windows 11.

How to Install WSL2 on Windows 10 / Windows 11?

The procedure to install WSL2 on Windows and run Ubuntu on Windows using WSL2 may sound difficult, but actually, it’s not. All you have to do is enable a couple of virtualization features in Windows, download and install the kernel update package on your Windows computer, and finally, launch the Linux distribution of your choice from the Microsoft Store. That’s it. Let’s see these three simple processes in a step-by-step procedure to install WSL2 on Windows and run Ubuntu on Windows using WSL2.

Time needed: 15 minutes.

How to Install WSL2 on Windows 10 / Windows 11?

  1. Open ‘Turn Windows features on or off’ on your Windows Computer

Needs to enable Windows Features before installing any Linux distributions on Windows.
Click on ‘Start‘, search for ‘Turn Windows features on or off‘ –> Open.

Open ‘Turn Windows features on or off’ on your Windows Computer

2. Enable ‘Virtual Machine Platform‘ and ‘Windows Subsystems for Linux‘ features

Enable ‘Virtual Machine Platform‘ and ‘Windows Subsystems for Linux‘ features by enabling check mark and click on ‘OK‘.

Enable ‘Virtual Machine Platform’

3. Restart Computer

Post successful installation the computer should be restarted.

Restart Computer

4. Install Linux Kernel Updates Package

Download Linux Kernel Updates Package from this Microsoft Link and Install with Administrative Privileges.
Run the downloaded Setup file. Click ‘Next‘ to start the installation and ‘Finish‘ after successful installation.

Install Linux Kernel Updates Package

5. Finish the Installation of Linux Kernel Updates Package

Finish the Installation of Linux Kernel Updates Package

6. Install the Linux Distribution

Open Microsoft Storeand based on the requirement select and install your choice of Linux Distribution. We have chosen Ubuntu in this demo tutorial.

Install the Linux Distribution

7. Launch Ubuntu

After successful Installation, Lunch the installed Linux Distribution.

Launch Ubuntu

8. Configure Login account in Ubuntu in WSL2

First time Lunch will take few minutes. Configure the Username and Password immediately after the launch of Ubuntu. Now your Ubuntu is ready to login.

Configure Login account in Ubuntu in WSL2

9. Run Ubuntu on Windows using WSL2

This is how you can run Ubuntu on Windows using WSL2.

Run Ubuntu on Windows using WSL2

We hope this post will help you know the step-by-step procedure to install WSL2 on Windows and run Ubuntu on Windows using WSL2. Please share this post if you find this interested. Visit our social media page on Facebook, LinkedIn, Twitter, Telegram, Tumblr, & Medium and subscribe to receive updates like this.

This post is originally published at thesecmaster.com

We thank everybody who has been supporting our work and request you check out thesecmaster.com for more such articles.

--

--

TheSecMaster
TheSecMaster

Published in TheSecMaster

This is a place where we cover topics related to Cyber Security, Risk and Vulnerabilities, Malware, Digital forensics, Dark Web, Cyber Attacks, and Best practices. We also try covering various platforms like Cloud, Virtualization, Containers, and Operating System platforms.