Files
TerminalPolyjuice/wsl/config_new_archlinux_in_wsl.md
T

958 B
Executable File

Configure New Archlinux in WSL

Add user <username>

cd
pacman -Syu
useradd -m <username>

run

passwd

to set a password for root

run

passwd <username>

to set a password for user <username>

Add user <username> into group sudo

pacman -S sudo
pacman -S vim

edit /etc/sudoers uncomment %wheel ALL=(ALL:ALL) ALL

usermod -aG wheel <username>

Install and configure ZSH

pacman -S zsh
pacman -S git
pacman -S fzf
pacman -S zoxide
pacman -S starship
pacman -S python
su <username>
cd
git clone <repository-url> $HOME/.TerminalPolyjuice
chsh -s /bin/zsh
exit
su <username>
cd
mkdir .config
cd $HOME/.TerminalPolyjuice/zsh
zsh polyjuice.sh install_ohmyzsh config_starship check

add the contents in $HOME/.TerminalPolyjuice/zsh/zshenv into $HOME/.zshenv

Set <username> as default user

wsl --manage archlinux --set-default-user <username>