Skip to content

Instantly share code, notes, and snippets.

@0x00009b
Last active March 11, 2021 16:45
Show Gist options
  • Save 0x00009b/c2042830e52d7f9887683bbfa9a0bf0e to your computer and use it in GitHub Desktop.
Save 0x00009b/c2042830e52d7f9887683bbfa9a0bf0e to your computer and use it in GitHub Desktop.
#!/bin/bash
systemctl enable sshd #make shure
mkfs.ext4 /dev/vda2
mount /dev/vda2 /mnt
pacstrap /mnt base linux-hardened linux-hardened-headers arch-install-scripts
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt <<"EOT"
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
pacman -S grub efibootmgr
mkinitcpio -p linux
pacman -S grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment