指令 ```shell systemctl status pacman-init ``` ## step 1. use `fdisk` and `lsblk` get the info of disk 2. use `fdisk` partition the disk 3. use `mkfs.vfat,mkswap,mkfs.ext4` 4. use `iwctl` connect the internet 5. use `mount` mount the partitioned-disk 6. use `timedatectl` to set up the `set-ntp true`, `set-timeinfo Asia/Taipei` to ensure the zone and get the better download speed 7. use `pacstrap [-K] /mnt base linux linux-firmware` to download the linux 8. use `genfstab` to generate the `fstab` 9. use `arch-chroot` change into the new root ### root 1. set the [[locale-gen]] 2. set the`hostname` 3. set the `/etc/host` 4. use `passwd` set password 5. get package `grub,efibootmgr,os-prober` 6. use `grub-install -target=x86_64-efi --boot-loader=ARCH_GRUB --efi-directory=/boot/efi` > 7. get of `os-prober` in `/etc/deafult/grub` 8. use `grub-mkconfig` write to `/etc/grub/grub.cfg` 9. use `pacman -S sudo` 10. use `useradd -m name` add user 11. use `passwd name` set password 12. set group ```shell usermod -aG sudo,audio,video,storage name ``` 13. use `visudo` and remove the comment of `%wheel ALL=(ALL) ALL` 14. `pacman -S networkmanager` 15. `systemctl enable echoNetworkManager` > 16. `pacman -S nvidia nvidia-utils` (if having nvidia gpu) 17. exit root 18. `umount -l \mnt` 19. reboot