2019-03-10    2022-07-24    175 å­—  1 分钟

Initialize Keyring before using pacman and install core package

1
2
3
4
pacman-key --init
pacman-key --populate
pacman -Syyu base base-devel
pacman -S git zsh vim

Create a new users and set a password

1
2
3
read -r -p "Please input a new username: " username
echo "--> $username is you create a new user!"
useradd -m -G wheel -s /bin/zsh "$username"

Set a password for root

1
2
3
4
5
echo "Please enter same password twice!"
echo "Set a Password for root: "
passwd
echo "Set a password for $username :"
passwd "$username"

Set `wheel` group to ues sudo !

1
2
echo "Set wheel group to use sudo"
echo "%wheel ALL=(ALL) ALL" >>/etc/sudoers

Nest Step

1
2
3
4
5
echo "You should exit the terminal, open Powershell "
echo "Goto the folder containing Arch.exe,"
echo "Run the downlink command:"
echo "./Arch.exe config --default-user  $username "
echo "The next step is Restart computer and running arch_init.sh"

If you want to uninstall ArchWSL, Please run `./Arch.exe clean` in powershell

1
./Arch.exe clean