ls /usr/share/kbd/keymaps//*.map.gz loadkeys de-lai
timedatectl set-ntp true
lsblk fdisk -l
fdisk /dev/sda
g #-> gpt for efi n #-> new partition +550M for efi partition n #-> new partition +2G for swap partitiopn n #-> new partition +default for linux filesystem partitiopn
t #-> change partition 1 type -> efi: 1 t #-> change partition 2 type -> linux swap: 19
w #-> write & quit
mkfs.fat -F32 /dev/sda1 mkswap /dev/sda2 swapon /dev/sda2 mkfs.ext4 /dev/sda3
mount /dev/sda3 /mnt
pacstrap /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
echo -e "en_US.UTF-8 UTF-8\n" >> /etc/locale.gen echo -e "zh_CN.UTF-8 UTF-8\n" >> /etc/locale.gen locale-gen echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo archvbox > /etc/hostname
echo -e "127.0.0.1 localhost\n" >> /etc/hosts echo -e "::1 localhost\n" >> /etc/hosts echo -e "127.0.0.1 archvbox.localdomain archvbox\n" >> /etc/hosts
passwd useradd -m aka passwd aka
usermod -aG wheel.audio.video.optical.storage aka
pacman -S sudo EDITER=vim visudo # uncomment wheel group
pacman -S grub efibootmgr dosfstools os-prober mtools
mkdir /boot/EFI
mount /dev/sda1 /boot/EFI
grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
grub-mkconfig -o /boot/grub/grub.cfg
pacman -S networkmanager vim git
systemctl enable NetworkManager
exit
umount -l /mnt
showdown now