Usage

# list available distros
wsl --list --online

# list installed distors
wsl --list

# install wsl
wsl --update
wsl --install <distro>

# uninstall wsl
wsl --unregister <distro>

# open wsl
wsl -d <distro>

Arch Setup

wsl --install archlinux

# update arch 
pacman -Syu 

# set root password
passwd

pacman -S vim sudo 

# create default user
useradd -mG wheel <user>
passwd <user>
EDITOR=vim visudo
# find the line saying:
# uncomment to allow members of group wheel to execte any command
# remove the # from the line right below

exit
wsl --manage archlinux --set-default-user <user>
wsl -d archlinux

# font
sudo pacman -Syu fontconfig ttf-dejavu
fc-cache -fv

# enable gui application
ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix

Ubuntu Setup

wsl --install ubuntu

# update ubuntu
sudo apt update
sudo apt upgrade