Archbox Quick
# assume 40G disksize
parted -s /dev/vda -- mklabel msdos mkpart primary ext4 2048s 39G mkpart primary linux-swap 39G -1s set 1 boot on
mkfs.ext4 /dev/vda1 && mkswap /dev/vda2 && mount /dev/vda1 /mnt && swapon /dev/vda2
pacstrap /mnt base{,-devel} linux{,-firmware} openssh vim grub
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen && locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
hostname=arch-202011-00
echo $hostname > /etc/hostname
echo -e "127.0.0.1\tlocalhost\n::1\t\tlocalhost\n127.0.1.1\t$hostname.localdomain $hostname" >> /etc/hosts
echo -e "[Match]\nName=enp1s0\n\n[Network]\nDHCP=yes" > /etc/systemd/network/20-wired.network
grub-install --target=i386-pc /dev/vda
sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=1/' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
echo "root:root" | chpasswd
systemctl enable sshd
exit
reboot
Read other posts