- Control Panel > Programs And Features > Turn Windows features on or off > (check) Windows Subsytem For Linux > OK > Reboot - Run Windows Powershell as admin - Enable WSL: ``` dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart ``` - If your Windows Version is less than `1903`, with Build less than `18362`, you have to update Windows - Enable the Virtual Machine Platform feature: ``` dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart ``` - Reboot - [Download](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi) and install the Linux kernel update package - Set WSL 2 as the default version for new Linux images: ``` wsl --set-default-version 2 ``` - Go to the Microsoft Store, and search for a Linux Distribution, like Ubuntu, Fedora, Kali, Debian, or SUSE. - Once finished, run the shell. The first time you need to provide a username and password for a new user, which automatically has sudo power. - Unfortunately, sometimes with WSL2 internet access does not work (I had Ubuntu not working, even after many *fixes*, while Kali worked just fine out of the box). There is no unique resolution, so my suggestion is to convert back to version 1 and hope for a future fix. - To list all the Linux distributions currently installed, with corresponding version of WSL: ``` wsl --list --verbose ``` - To convert a Linux distribution to a particular version of WSL: ``` wsl --set-version ``` - Windows disks are mounted under `/mnt/`. While disks are actually also writable, it's suggested not to mix the two file systems. - The Windows Subsystem for Linux currently only runs on the system drive (usually `C:`), so keep an eye on the storage space. - You can give a go and use the Windows Terminal, found in the MS store.