WSL

install

1 2 3

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
wsl --set-default-version 2
wsl --update --web-download
wsl --list --online
wsl --install <distro>

optional

Remove Windows 10's PATH

4 5

sudo vim /etc/wsl.config
[interop]
appendWindowsPath = false

WSLg

Turn on6:

ln -s /mnt/wslg/runtime-dir/wayland-0* /run/user/1000/

Turn off7:

subl %UserProfile%\.wslconfig
[wsl2]
guiApplications=false

cross-reference