Last active
October 12, 2018 14:34
-
-
Save dbathgate/e161be7dfae3e2d4a90c71112adeacd6 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
# Setup Swap space | |
mkswap /dev/sda1 | |
swapon /dev/sda1 | |
# Format and mount root volume | |
mkfs.ext4 /dev/sda2 | |
mount /dev/sda2 /mnt | |
# Install arch packages (base and base-devel) | |
pacstrap /mnt base base-devel | |
# Generate fstab file | |
genfstab /mnt >> /mnt/etc/fstab | |
# chroot into root volume | |
arch-chroot /mnt | |
# Setup timezone (I'm on the east coast) | |
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime | |
hwclock --systohc | |
# Install vim because I realized I'm terrible at classic vi | |
pacman -S vim | |
# Setup UTF-8 locale | |
vim /etc/locale.gen | |
# Uncomment en_US.UTF-8 UTF-8 | |
echo "LANG=en_US.UTF-8" > /etc/locale.conf | |
locale-gen | |
# Hostname and hosts | |
echo "dbathgate" > /etc/hostname | |
echo "127.0.0.1 localhost" >> /etc/hosts | |
echo "::1 localhost" >> /etc/hosts | |
echo "127.0.1.1 dbathgate" >> /etc/hosts | |
# Set root password | |
passwd | |
# Enable network (otherwise no internet) | |
systemctl enable dhcpcd | |
# Last step, setup grub | |
pacman -S grub | |
grub-install /dev/sda | |
grub-mkconfig -o /boot/grub/grub.cfg | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment