Skip to content

Instantly share code, notes, and snippets.

@iamcaleberic
Last active November 3, 2017 18:53
Show Gist options
  • Save iamcaleberic/9f2249b048122da875c5a0cfe61cfb13 to your computer and use it in GitHub Desktop.
Save iamcaleberic/9f2249b048122da875c5a0cfe61cfb13 to your computer and use it in GitHub Desktop.
Installing Arch Linux with UEFI support

Requirements

  • Not recommended for absolute beginners
  • Sufficient disk space
  • RAM atleast 500 MB
  • Arch linux bootbale media

Pre-Install

  • create bootable usb or cd

Post Boot

  • run ping google.com to check for internet connection
  • run fdisk -l to list your disk partitions
  • run cfdisk to create partitions you will need for your system installation

we will create four partitions

    - /dev/sda1  
    - /dev/sda2
    - /dev/sda3
    - /dev/sda4 (esp)
/dev/sda1 /root
    - select type dos 
    - select new 
    - select primary
    - add size with G for GB and M for MB
    - select write
/dev/sda2 - swap
    - select type dos
    - select new 
    - select primary
    - add size with G for GB and M for MB (two times your ram size)
/dev/sda3 - Home partition mount point for /home
    - select type dos
    - select new
    - select primary
    - add size 
    - select write
/dev/sda4 - boot partition esp for /boot
    - select type dos
    - select new
    - select primary
    - add size 
    - select write

Formatting

  • mkfs.ext4 /dev/sda1
  • mkfs.ext4 /dev/sda3
  • mkfs.vfat /dev/sda4
  • mkswap /dev/sda2
  • swapon /dev/sda2

Mounting

  • mount /dev/sda1 /mnt
  • mkdir /mnt/home
  • mount /dev/sda3 /mnt/home
  • mkdir /mnt/boot
  • mount /dev/sda4 /mnt/boot

Installing base arch - needs fast internet connection

  • pacstrap /mnt base base-devel

Generate fstab

  • genfstab -U /mnt >> /mnt/etc/fstab

Arch Base Configuration

  • arch-chroot /mnt /bin/bash
  • edit /etc/locale.gen using your favorite text editor
  • uncomment locale you need eg en_GB UTF-8
  • run locale-gen

Network config & Hostname

  • edit /etc/hostname to set your system name
  • run systemctl enable dhcpcd
  • run pacman -S iw wpa_supplicant broadcom-wl

Grub ** be cafeful

  • run pacman -S grub os-prober efibootmgr grub
  • run 'grub install --target=x86_64 --efi-directory=esp --bootloader-id= Arch`
  • run os-prober to map existing systems
  • run grub-mkconfig -o esp/grub/grub.cfg

optional

  • run pacman -S intel-ucode nvidia nvidia-lts linux-headers dkms ntfs-3g wpa_supplicant broadcom-wl openssh git qt4 vlc gnome chromium atom wireless_tools networkmanager network-manager-applet
  • run systemctl gdm enable
  • run systemctl enable NetworkManager.service
  • run systemctl enable wpa_supplicant.service

Finally

  • run exit to exit bash
  • umount /mnt
  • umount /mnt/home
  • reboot

** if windows ever overwrites the boot partition just reinstall grub on the boot partition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment