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