Skip to content

WSL | Cookbook

  •  

Basics

Run specify distribution

 wsl --distribution Ubuntu-22.04
 wsl -d Ubuntu-22.04

Run Distribution and login as root

wsl -d Debian -u root

Change root password

 wsl.exe --user root --distribution Alpine passwd

Running X Apps

https://nickjanetakis.com/blog/using-wsl-and-mobaxterm-to-create-a-linux-dev-environment-on-windows

export DISPLAY="$(/sbin/ip route | awk '/default/ { print $3 }'):0"

Leave a Reply

Your email address will not be published.