Skip to content

Instantly share code, notes, and snippets.

@chrisnharvey
Created October 7, 2015 23:08
Show Gist options
  • Save chrisnharvey/22e0d238b2983d5b6de1 to your computer and use it in GitHub Desktop.
Save chrisnharvey/22e0d238b2983d5b6de1 to your computer and use it in GitHub Desktop.
Arch Linux Install Script
#!/bin/bash
locale-gen
ln -s /usr/share/zoneinfo/Europe/London /etc/localtime
pacman -S --noconfirm grub-bios
grub-install /dev/sda
grub-mkconfig > /boot/grub/grub.cfg
exit
#!/bin/bash
cfdisk
mkfs.ext4 -F /dev/sda1
mount /dev/sda1 /mnt
pacstrap /mnt base base-devel
echo "arch" > /mnt/etc/hostname
echo "en_GB.UTF-8 UTF-8" > /mnt/etc/locale.gen
cp ./chroot.sh /mnt/chroot.sh
chmod +x /mnt/chroot.sh
arch-chroot /mnt /chroot.sh
genfstab /mnt > /mnt/etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment