til/install-archlinux.md

3.3 KiB

Install Archlinux

Install Archlinux 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

Enable wifi:

wifi-menu

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

Boot loader

systemd-boot

General recommendations

Always remember to check dependencies when install packages.

System administration

Read Users and groups.

Read Sudo/Using visudo.

useradd -m -G additional_groups -s login_shell username
abstract implement
additional_groups wheel
login_shell /bin/bash

Graphical user interface and Networking

Install Xorg:

pacman -Syu xorg-server

Install GNOME:

pacman -Syu \
    gnome-shell \
    gdm \
    networkmanager gnome-keyring \
    gnome-control-center gnome-tweak-tool \
    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

timedatectl set-ntp true

Optimization

Read Solid state drive.

Read Improving performance/Watchdogs.

Read Improving performance/Staggered spin-up.

Read Silent boot.

Appearance

Read Fonts.

Misc

Swap/systemd-swap

systemd/Journal

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.