Skip to content

Instantly share code, notes, and snippets.

@nomsi
Last active April 15, 2019 01:25
Show Gist options
  • Save nomsi/76f6118fe892bd955ac81cf7b1a9b185 to your computer and use it in GitHub Desktop.
Save nomsi/76f6118fe892bd955ac81cf7b1a9b185 to your computer and use it in GitHub Desktop.
gg ez guide for arch

Format disks (see Installation Guide for UEFI support and fdisk help)

mkfs.ext4 /dev/sdx1
mkswap /dev/sdx2
swapon /dev/sdx2
mount /dev/sdx1` /mnt

Sync time (not required, nice to have)

timedatectl set-ntp true

Install from arch linux base (latest kernel) for LTS add linux-lts

pacstrap /mnt base base-devel git

Generate the fstab

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

Chroot into the system

arch-chroot /mnt

Setup timezone

ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
hwclock --systohc

Setup locale

Comment out the locale you use (I use en_US.UTF-8 here)

nano /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8

Housekeeping (Hostname, hosts)

echo linuxbot > /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts

(Optional) install and enable networkmanager

pacman -S networkmanager
systemctl enable networkmanager

Misc

You can also here add CloudFlare's DNS resolver in /etc/resolv.conf The two lines you will add are

nameserver 1.1.1.1
nameserver 1.0.0.1

because why not.

Set up grub (bootloader)

grub-install /dev/sdX
grub-mkconfig -o /boot/grub/grub.cfg

Setup password (and user if you want) here

passwd

In the /etc/sudoers file uncomment the group wheel (I like wheel :D)

adduser -m -s /bin/bash username
usermod -aG wheel username
passwd username

Exit chroot and reboot.

Now you can reboot and setup your stuff here. Some fun tools here

sudo pacman -S git
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

This installs yay which is a pacman wrapper for the archlinux user repository. Not really required.

Grats. I use arch btw.

Post-installation shit

Nvidia: sudo pacman -S nvidia nvidia-settings (AMDGPU is in kernel btw)

(Optional shit)

Firefox: sudo pacman -S firefox

Flatpak: sudo pacman -S flatpak

Gnome

sudo pacman -S gdm gnome gnome-extras
sudo systemctl enable gdm
sudo systemctl start gdm

KDE

sudo pacman -S plasma kde-applications sddm
sudo systemctl enable sddm
sudo systemctl start sddm
@RuyiLi
Copy link

RuyiLi commented Apr 15, 2019

arch btw

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