Created
June 11, 2022 14:29
-
-
Save futuretea/7c672ae4c0005bd874271b46d5b20cca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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