Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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


  1. Install Hyper-V

  2. How to install Arch Linux for WSL

  3. WSL --update fails with unknown error code (0x80240066)

  4. How to remove the Win10's PATH from WSL

  5. [Question] How to remove Windows pathes from WSL PATH?

  6. GUI Applications will no longer launch in Wayland after updating

  7. Disable WSLg permanently