Setup of Windows Subsystem for Linux
Here are some steps to install Windows Subsystem for Linux. We are installing WSL on Windows 10.
Step 1: Open the start menu in Windows by pressing the [Win] key or clicking the bottom right icon of the Windows desktop.
Step 2: Type cmd. A result similar to this would appear.
Step 3: Click on the Run as administrator option on the right side of the taskbar
Step 4: A new window would have appeared similar to this
Step 5: Type the following command and press Enter to install Windows Subsystem for Linux.
wsl --install
Step 6: The WSL2 installation process has begun. It will install the Linux Kernel during this process. After the process has been completed the user gets acknowledged that Windows Subsystem for Linux (WSL) has been installed.
Step 7: Now WSL has been successfully installed onto the Windows 10 Operating System. Now restart your Operating System. Upon restarting you could use Windows Subsystem for Linux (WSL2).
Note: By default, the Ubuntu distribution gets installed in Windows Subsystem for Linux (WSL2). If you want any specific distribution, you could get so by replacing the command.
wsl --install
wsl --install -d DIST
Where DIST is the name of the distribution you are wanting to install.
Enabling Virtual Machine:
As mentioned earlier, WSL2 is a small virtual machine, so Windows has to accommodate it. If this is already enabled, skip the process and restart your PC to make sure it’s ready for installation. The easiest way to do this is with PowerShell. As an administrator, he opens PowerShell and enters the following command:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Now you can reboot your PC and be able to do anything on WSL.
Install Windows Subsystem for Linux (WSL)
The Windows Subsystem for Linux (WSL) lets developers run a GNU/Linux environment on Windows, without the overhead of a traditional virtual machine or dual boot setup. This incorporates Linux-like functionality on Windows OS without the overhead of running another OS in parallel, therefore, reducing resource consumption. This makes WSL a go-to choice for people wanting to switch between the two Operating Systems or ones who want to get Linux-like functionality in their Windows OS. WSL2 is a new version of the architecture that allows you to use Linux on top of Windows 10 natively and replaces WSL. In this article, you will learn how to install WSL2 on Windows 10.