Scott Spence

Loading...

Windows Subsystem Linux 2 (WSL) - Up and Running

1 min read
learning guide wsl n node react

Now that Windows Subsystem Linux has finally arrived I think it’s time to refresh my notes on it from the last post I did back at the end of 2018.

https://docs.microsoft.com/en-gb/windows/wsl/install-win10

https://docs.microsoft.com/en-gb/windows/wsl/wsl2-kernel

Install terminal

Run terminal as admin

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

Then

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Restart

Set WSL 2 as default

wsl --set-default-version 2

Install Ubuntu

# see what version of WSL is running
wsl -l -v

Set the version of WSL

wsl --set-version Ubuntu 2
# set it to default with
wsl --set-default-version 2