Files
wsl-ArchLinux/README.md
2026-03-19 14:14:10 +01:00

1.4 KiB

Setup ArchLinux in WSL

Sources

Prepare wsl arch linux image

wsl --update
wsl --install archlinux
wsl --set-default archlinux
wsl --list --all # check settings

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

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

[user]
default=woelke
EOF

Restart wsl archlinux from a powerhsell

wsl --terminate archlinux

Setup Dotfiles

Setup ssh access to https://gitea.der-seb.space

ssh-keygen ...

tee -a /home/woelke/.ssh/config <<'EOF'
Host gitea.der-seb.space
     User git
     HostName gitea.der-seb.space
     IdentitiesOnly yes
     IdentityFile ~/.ssh/gitea-der-seb-space-access
EOF

Install woelke dotfiles

Knows Problems

  • Installation error: docker, docker-compose

    • When Docker Desktop is installed on the host system, it might try to link its docker and docker-compose setup to the arch linux instance,
      • Disable wsl-integration in Docker Destkop Settings
      • Remove docker, docker-desktop symlinks
  • wsl always starts bash

    • run wsl zsh (might break neovide??)