Windows Subsystem for Linux (WSL) allows the installation of a complete Ubuntu terminal environment on a Windows machine and provides for the development of cross-platform applications without leaving windows.
At first, you need to go to your search menu in windows and type Powershell. After done, right-click on Powershell and select Run as administrator. Then a popup window will show, and click on yes. Now you need to put two commands.
To enable Windows Subsystem for Linux:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
To enable Virtual Machine Platform:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
After that, you must restart your computer, and again you need to go to Powershell as administrator and put one command.
To set WSL2 as the default environment:
wsl.exe --set-default-version 2
Now, you have to download Ubuntu from Microsoft Store and open it. It will take time to set up the process thoroughly, and you will need your credentials.
Now, you have completed your all process. Thank you!
Top comments (0)