wsl2 setup - windows subsystem for linux - setup on windows 10 pro

Опубликовано: 02 Октябрь 2024
на канале: Dan Sheffner
395
10

wsl2 (Windows Subsystem for Linux) setup for windows 10 pro
https://docs.microsoft.com/en-us/wind...
https://www.omgubuntu.co.uk/how-to-in...

notes from video:
https://www.omgubuntu.co.uk/how-to-in...

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

latest version of windows
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart

reboot computer

after reboot
wsl --set-default-version 2

get latest kernel for 64 bit machines
https://aka.ms/wsl2kernel

set default again. Make sure no kernel error shows up
wsl --set-default-version 2

get ubuntu from store. Doesn't require login
https://www.microsoft.com/en-gb/p/ubu...

icon will appear in start menu
pick a unix username/password. Don't forget this password
this password is also used for sudo

run ubuntu updates
sudo apt-get update && sudo apt-get upgrade -y