From 4328f69cbe2fd3bbff6545ec03c79d94717cb935 Mon Sep 17 00:00:00 2001 From: Sebastian Woelke Date: Wed, 25 Feb 2026 01:56:21 +0100 Subject: [PATCH] Add basic setup description --- README.md | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/README.md b/README.md index e69de29..c8aa55d 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,76 @@ +# Setup ArchLinux in WSL + +## Sources + +- [arch linux wsl docs](https://wiki.archlinux.org/title/Install_Arch_Linux_on_WSL) + +## Setup User + +Set root password + +```sh +passwd +``` + +Install sudo + +```sh +pacman -Syu +pacman -S sudo nvim vi nano +groupadd sudo +visudo # Uncomment %sudo ... +``` + +Create the user + +```sh +useradd -u 1000 -g 1000 -m -s /bin/bash woelke +usermod -aG sudo woelke +``` + +Set a password + +```sh +passwd woelke +``` + +Set wsl default user and restart wsl in powershell via `wsl --terminate archlinux` + +```sh +tee -a /etc/wsl.conf <<'EOF' + +[user] +default=woelke +EOF +``` + +## Add Essential Applications + +Install and setup yay + +```sh +sudo pacman -S --needed git base-devel +git clone https://aur.archlinux.org/yay.git +cd yay +makepkg -si +yay -Y --gendb +``` + +More essentials + +```sh +yay -S reflector pacman-contrib +``` + +Hardware accelerated rendering, Does this work??? + +```sh +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