Files
wsl-ArchLinux/README.md

1016 B

Setup ArchLinux in WSL

Sources

Setup User

Set root password

passwd

Install sudo

pacman -Syu
pacman -S sudo nvim vi nano
groupadd sudo
visudo # Uncomment %sudo ...

Create the user

useradd -u 1000 -g 1000 -m -s /bin/bash woelke
usermod -aG sudo woelke

Set a password

passwd woelke

Set wsl default user and restart wsl in powershell via wsl --terminate archlinux

tee -a /etc/wsl.conf <<'EOF'

[user]
default=woelke
EOF

Add Essential Applications

Install and setup yay

sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay -Y --gendb

More essentials

yay -S reflector pacman-contrib

Hardware accelerated rendering, Does this work???

yay -S mesa vulkan-dzn

TODOs

arch linux wsl docs

  • 2.2 Open URLs in the WSL hosts browser
  • 2.3 Run graphical applications with WSLg