Windows Subsystem for Linux (WSL) allows developers as yourself to run a Linux environment directly on a Windows environment without having to deal with a virtual machine or dual-boot setup. There are times having a virtual machine or a dual-boot setup isn’t something ideal anymore and that’s where WSL2 on Windows comes into play, being able to run a Linux distribution side by side natively with Windows.
Before we begin, I would like to point out the title of this article is Installing WSL2 on Windows and not Installing WSL2 on Windows 10 because this article could eventually still applies on newer version of Windows.
Installing WSL2
Before we can actually install a Linux distribution for WSL2, we need to make sure to install the following items
-
Virtual Machine Platform
-
Windows Subsystem for Linux
Go to start, and search for Turn Windows features on or off and select both Virtual Machine Platform and Windows Subsytem for Linux.