Skip to content

Instantly share code, notes, and snippets.

@futuretea
Created June 11, 2022 14:29
Show Gist options
  • Save futuretea/7c672ae4c0005bd874271b46d5b20cca to your computer and use it in GitHub Desktop.
Save futuretea/7c672ae4c0005bd874271b46d5b20cca to your computer and use it in GitHub Desktop.
timedatectl set-ntp true
fdisk /dev/sda
mkfs.ext4 /dev/sda1
mount /dev/sda1 /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
locale-gen
hostname="arch-pc"
echo "${hostname}" > /etc/hostname
echo "127.0.0.1 ${hostname}" >> /etc/hosts
passwd
exit
umount -R /mnt
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment