Skip to content

Instantly share code, notes, and snippets.

@rkennesson
Created December 28, 2019 20:38
Show Gist options
  • Save rkennesson/775abfa2b8098c63c89e5c0c48c0fbae to your computer and use it in GitHub Desktop.
Save rkennesson/775abfa2b8098c63c89e5c0c48c0fbae to your computer and use it in GitHub Desktop.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
# Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
wsl --set-default-version 2
wsl --list --verbose
# $userenv = [System.Environment]::GetEnvironmentVariable("Path", "User")
# [System.Environment]::SetEnvironmentVariable("PATH", $userenv + ";C:\Users\Administrator\Ubuntu", "User")
curl.exe -L -o ubuntu-1804.zip https://aka.ms/wsl-ubuntu-1804
ubuntu.exe
sudo apt update && sudo apt upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment