til/install-archlinux.md

3.0 KiB

Install Arch Linux

Install Arch Linux is thing I always want to do for my laptop/PC since I had my laptop in ninth grade.

This is not a guide for everyone, this is just save for myself in a future and for anyone who want to taste a bit.

Assume your laptop/PC is UEFI-capable.

Installation guide

Check disks carefully:

lsblk

Create USB flash installation media:

dd bs=4M if=path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync

Connect to the internet

Read iwd/iwctl:

iwctl

Inside iwctl:

device list

# Change device to real device
station device scan

station device get-networks

# Change SSID to real SSID
station device connect SSID

Partition the disks

Partition:

cfdisk
Mount point Partition type Suggested size
/mnt/boot EFI system partition 512 MiB
/mnt Linux
/mnt/home Linux

Format:

# /boot
mkfs.fat -F32 /dev/xxxY

# / and /home
mkfs.ext4 /dev/xxxY

Mount:

mount /dev/xxxY /mnt

mkdir -p /mnt/boot
mount /dev/xxxY /mnt/boot

mkdir -p /mnt/home
mount /dev/xxxY /mnt/home

Installation

pacstrap /mnt base linux linux-firmware base-devel neovim intel-ucode

Boot loader

systemd-boot

General recommendations

Always remember to check dependencies when install packages.

System administration

Add user:

useradd -m -G additional_groups -s login_shell username

Set password:

passwd username

Enable sudo:

EDITOR=nvim visudo

# Uncomment group wheel
Pseudo Real
additional_groups wheel
login_shell /bin/bash
username joker

Desktop Environment

Install Xorg:

pacman -Syu xorg-server

Install GNOME:

pacman -Syu gnome-shell gdm gnome-control-center gnome-tweak-tool
    networkmanager gnome-keyring \
    nautilus xdg-user-dirs-gtk \
    file-roller p7zip unrar \
    gnome-terminal gnome-backgrounds gnome-screenshot

Enable services:

systemctl enable gdm.service

systemctl enable NetworkManager.service

systemctl enable bluetooth.service

timedatectl set-ntp true

List of applications

pacman

Uncomment or add if not exist options in /etc/pacman.conf:

# Misc options
Color
ILoveCandy

AUR

Install AUR package:

makepkg -sric

In the end

This guide is updated regularly I promise.