Download WSL2 Kernel
run wsl --set-default-version 2
in windows command line, so that all future WSL machine will use WSL2.
Download ArchWSL installer zip, pick a folder (for example, c:\archlinux
) for Arch Linux and run installer .exe in that folder.
Initialize package manager
pacman-key --init
pacman-key --populate
pacman-key --refresh-keys
pacman -Sy archlinux-keyring
Run pacman -Syyu
to update all packages to the latest versions
Install zsh: pacman -S zsh
Add a sudo group: groupadd sudo
Enable sudoers: nano /etc/sudoers
and uncomment lines %wheel ALL=(ALL) NOPASSWD: ALL
and %sudo ALL=(ALL) ALL
Add new admin user: useradd -m -G wheel,sudo -s /bin/zsh <username>
, use -s /bin/bash
if you want bash instead of zsh.
Set password for the new user: passwd <username>
Run Windows command shell, go to the directory with Arch Linux, run Arch.exe config --default-user <username>
. Now you have basic ArchLinux with user.
(OR) On Windows Terminal, append the following to Command Line: -u <username>
yay:
pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si
oh-my-zsh:
sh -c " $( curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) "
wsl-vpntoolkit
Development Tools
sudo pacman -S --noconfirm python neovim lazygit wget zip unzip npm tmux luarocks cmake openssh mcfly wl-clipboard
yay -S micromamba docker docker-compose