Skip to content

Instantly share code, notes, and snippets.

@RafalSladek
Created May 10, 2016 19:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save RafalSladek/3e12aeabf51231823d49df7b51a13fcb to your computer and use it in GitHub Desktop.
Save RafalSladek/3e12aeabf51231823d49df7b51a13fcb to your computer and use it in GitHub Desktop.
Arch Linux Laptop Install - E6430

Arch Install

Boot from Archlinux ISO on USB

  1. IF Wireless # wifi-menu
  2. timedatectl set-ntp true
  3. parted /dev/sda
  4. mklabel gpt - YES
  5. mkpart efi fat32 1MiB 1025MiB
  6. mkpart root ext4 1025MiB 31GiB
  7. mkpart home ext4 31GiB 100%
  8. Format partitions
  9. mkfs.vfat -F32 /dev/sda1
  10. mkfs.ext4 /dev/sda2
  11. mkfs.ext4 /dev/sda3
  12. Mount partitions
  13. mount /dev/sda2 /mnt
  14. cd /mnt; mkdir boot home
  15. mount /dev/sda1 /mnt/boot
  16. mount /dev/sda3 /mnt/home
  17. vim /etc/pacman.d/mirrorlist # I normally use the Berkley mirror, most of the other mirrors are dog slow in the US.
  18. pacstrap /mnt base base-devel vim zsh dialog efibootmgr wpa_supplicant iw
  19. genfstab -pU /mnt >> /mnt/etc/fstab
  20. cat /mnt/etc/fstab # Make sure it's actually not broken.
  21. arch-chroot /mnt /bin/bash
  22. echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
  23. locale-gen
  24. echo LANG=en_US.UTF-8 > /etc/locale.conf
  25. echo KEYMAP=us >> /etc/vconsole.conf
  26. ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
  27. hwclock --systohc --utc
  28. echo "oire.home.local" > /etc/hostname
  29. vim /etc/hosts
  30. passwd
  31. bootctl --path=/boot install
  32. ``pacman -S intel-ucode
  33. vim /boot/loader/entries/arch.conf - Fix UUID from fstab
title Archlinux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=UUID=XXXXDRFSDFDFSDFSDFXXXX rw
  1. systemctl enable systemd-networkd.service; systemctl enable systemd-resolved.service; systemctl enable systemd-timesyncd.service; systemctl enable gpm
  2. vim /etc/systemd/network/mydhcp.network
[Match]
Name=en*

[Network]
DHCP=v4
  1. nano /etc/systemd/timesyncd.conf
[Time]
NTP=tick.greyware.com tock.greyware.com
  1. nano /etc/systemd/resolved.conf
[Resolve]
DNS=205.171.2.65 68.238.96.12 206.124.64.253
  1. ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment