xxxxxxxxxx
Step 1: Enable Windows Subsystem for Linux
Open PowerShell as Administrator and run the following command:
wsl --set-default-version 2
Step 2: Install Ubuntu from Microsoft Store
Open Microsoft Store and search for "Ubuntu". Select "Ubuntu" from the search results, click on "Install", and wait for the installation to complete.
Step 3: Launch Ubuntu and Set Up
Open the Start menu, scroll down to the "Ubuntu" folder, and click on "Ubuntu". The first time you launch Ubuntu, it will initialize and ask you to create a new username and password.
That's it! You have successfully installed Ubuntu on WSL.
xxxxxxxxxx
# WSL Installation
1. Use simultaneously win + X keys and then click on "admin powershell".
```powershell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
```
This command activate WSL functionalities.
```powershell
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
```
This one allows virtual machines developed by Microsoft.
2. Restart your computer.
3. Download [this file](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi) and follow instructions.
4. Now open powershell admin like before and type:
```powershell
wsl --set-default-version 2
```
5. Download [Ubuntu](https://www.microsoft.com/store/apps/9n6svws3rx71) from Microsoft store.
WSL with Ubuntu is now installed.