til/install-archlinux.md

3.8 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

USB flash installation medium

Connect to the internet

Read iwd/iwctl.

Partition the disks

Partition:

cfdisk
Mount point Partition type Suggested size
/mnt/efi EFI system partition 512 MiB
/mnt/boot Linux extended boot 1 GiB
/mnt Linux 24 GiB
/mnt/var Linux 24 GiB
/mnt/home Linux

Format:

# /efi, /boot
mkfs.fat -F32 /dev/sdxY

# /, /var, /home
mkfs.ext4 /dev/sdxY

Mount:

# /
mount /dev/sdxY /mnt

# /efi
mkdir -p /mnt/efi
mount /dev/sdxY /mnt/efi

# /boot
mkdir -p /mnt/boot
mount /dev/sdxY /mnt/boot

# /var
mkdir -p /mnt/var
mount /dev/sdxY /mnt/var

# /home
mkdir -p /mnt/home
mount /dev/sdxY /mnt/home

Installation

pacstrap /mnt base base-devel linux linux-lts linux-zen linux-firmware neovim

Using Intel:

pacstrap /mnt intel-ucode

Using AMD:

pacstrap /mnt amd-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

Install MATE

pacman -Syu mate mate-extra

Install Xfce

pacman -Syu xfce4 xfce4-goodies

Install and enable GDM for GNOME:

pacman -Syu gdm

systemctl enable gdm.service

Install and enable LightDM for MATE, Xfce:

pacman -Syu lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings

systemctl enable lightdm.service

Install and enable NetworkManager:

pacman -Syu networkmanager

# Support OpenVPN
pacman -Syu networkmanager-openvpn

# Support MATE, Xfce
pacman -Suy network-manager-applet

systemctl enable NetworkManager.service

Install and enable Bluetooth:

pacman -Syu bluez bluez-utils

systemctl enable bluetooth.service

Enable systemd-timesyncd

timedatectl set-ntp true

List of applications

pacman

Uncomment in /etc/pacman.conf:

# Misc options
Color

AUR

Install AUR package:

makepkg -sric

In the end

This guide is updated regularly I promise.