Windows Subsystem Linux (WSL)βš‘

Setupβš‘

To setup your optimal development environment on Linux its always a good idea to bootstrap your configurations.

I will install the following:

  1. Bash
  2. Node
  3. Git
  4. VSCode
  5. etc

Prerequisitesβš‘

By far the best resources for getting started with Windows Subsystem for Linux (WSL) is the Microsoft Docs.

Install Ubuntuβš‘

Link to install ubuntu

Use Powershell as Adminβš‘

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Check Optional Features are Enabledβš‘

Random Tipsβš‘

Shutdown WSLβš‘

Localhost not working?

wsl --shutdown
Change WSL Versionβš‘

Change between WSL versions

# wsl --set-version <distro> 2
# example
wsl --set-version Debian 2
List installed WSL Distrosβš‘
# wsl --list --verbose
wsl -l -v