Skip to content

Instantly share code, notes, and snippets.

@carterjones
Last active October 22, 2017 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carterjones/ed1918e85827969328f707f47dee995d to your computer and use it in GitHub Desktop.
Save carterjones/ed1918e85827969328f707f47dee995d to your computer and use it in GitHub Desktop.
How to install Arch
# These are the commands you need to run in order to
# Boot up from the Arch ISO
# Use cfdisk to make a single primary logical Linux partition.
# Don't create a swap disk since we'll use a swap file later.
# Steps:
# 1. Select "dos"
# 2. Create a primary partition (and others if you want).
# 3. Make sda1 bootable.
# 4. Write the changes.
# 5. Exit.
cfdisk
# Format sda1.
mkfs.ext4 /dev/sda1
# Mount sda1.
mount /dev/sda1 /mnt
# Install the base system.
pacstrap /mnt base
# Make an fstab file.
genfstab -U /mnt >> /mnt/etc/fstab
# Chroot into the system.
arch-chroot /mnt
# Set the timezone.
ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime
# Set the clock.
hwclock --systohc
# Set the locale.
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
# Set the local...again.
echo LANG=en_US.UTF-8 > /etc/locale.conf
# Set the hostname.
echo arch > /etc/hostname
# Set the root password.
passwd
# Install grub.
pacman -S grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
# Exit and reboot.
exit
reboot
# After the reboot, issue these commands to get into KDE.
dhcpcd
pacman -Sy plasma # Answer 1 for everything if unsure what to choose. #YOLO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment