wifi-menu
ping
timedatectl set-ntp true
vim /etc/pacman.d/mirrorlist
sed -i '/China/!{n;/Server/s/^/#/};t;n' /etc/pacman.d/mirrorlist
分区
cfdisk
lsblk
mkfs.ext4 /dev/sd??
mount /dev/sd?? /mnt
mkdir /mnt/home
mkdir -p /mnt/boot/EFI
mount /dev/sd?? /mnt/home
mount /dev/sd?? /mnt/boot/EFI
pacstrap /mnt base base-devel linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/$(tzselect) /etc/localtime
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
pacman -S vim
vim /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
systemctl enable dhcpcd
pacman -S iw wpa_supplicant dialog
or
pacman -S networkmanager
systemctl enable NetworkManager
systemctl start NetworkManager
passwd
pacman -S intel-ucode ntfs-3g
pacman -S dosfstools grub efibootmgr os-prober
grub-install /dev/sd??
# or
grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=ArchLinux
grub-mkconfig -o /boot/grub/grub.cfg
exit
# or
CTRL+D
umount -R /mnt
reboot