Windows Subsystem For Linux
Windows Subsystem for Linux
A feature of Windows that runs a Linux environment on a Windows machine, without the need for a separate virtual machine or dual booting.
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>
Install
Follow any instruction below, then continue with Computer Setup.
Arch
wsl --install archlinux
# update arch
pacman -Syu
# set root password
passwd
pacman -S helix sudo
# create default user
useradd -mG wheel <user>
passwd <user>
EDITOR=helix 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
wsl --install ubuntu
# update ubuntu
sudo apt update
sudo apt upgrade