Skip to content

Instantly share code, notes, and snippets.

@okeydoke
Last active May 9, 2022 23:07
Show Gist options
  • Save okeydoke/31182c9400bca663a9e3112e544e0ac2 to your computer and use it in GitHub Desktop.
Save okeydoke/31182c9400bca663a9e3112e544e0ac2 to your computer and use it in GitHub Desktop.
WSL setup

Add dns

Prevent overwriting settings

sudo vi /etc/wsl.conf add

[network]
generateResolvConf=false

Shutdown server

In powershell run wsl -l to see *DistroName*

wsl --shutdown *DistroName*

Restart-Service LxssManager might not be necessary

sudo rm /etc/resolve.conf sudo vi /etc/resolv.conf add nameserver 10.103.16.53 <- this can be obtained but running ipconfig /all in windows command prompt and looking for DNS ip address

Latest LTS version of node and NPM

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -

sudo apt-get install -y nodejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment