Open a PowerShell window with administrative privileges and run the following commands to enable WSL
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartand enable Virtual Machine Platform features
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestartthen restart to apply changes
Restart-ComputerAfter restart, open PowerShell and run the following command to update the WSL
wsl --updateand set WSL2 default version to 2
wsl --set-default-version 2Arch Linux is fast, installs minimal packages far fewer than other distributions, has the fastest package manager and provides a clean, lightweight system perfect for development work.
wsl --install archlinuxcd ~ && pacman -Syu --noconfirm && pacman -S --noconfirm wget nano lesswget https://raw.githubusercontent.com/czirok/apps/main/docs/archlinux.sh -O archlinux.shchmod +x archlinux.shOpen the archlinux.sh file in a text editor nano archlinux.sh, and modify the following variables to suit your preferences:
TIMEZONE="Europe/Budapest"
LOCALE_PRIMARY="hu_HU.UTF-8"
USERNAME="username"TIMEZONE is a directory under /usr/share/zoneinfo/, you can find your timezone by running:
ls /usr/share/zoneinfo/
LOCALE_PRIMARY is the locale you want to set as default, it should be available in /etc/locale.gen. You can check available locales by running:
cat /etc/locale.gen | less
Set password for the user when prompted.
./archlinux.sh
exitwsl --terminate archlinux
wsl --shutdown
wsl -d archlinuxYou can change the theme, dark or light mode, and other settings using the GNOME Control Center. Run the following command to open it:
XDG_CURRENT_DESKTOP=GNOME gnome-control-centersudo pacman -S --noconfirm git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirmsudo pacman -Syupacman -Qpacman -Ss packagepacman -Qs packagesudo pacman -S packagesudo pacman -R packagesudo pacman -Rns $(pacman -Qdtq)