Step-by-step Installation guide for Arch Linux⚓︎
This page outlines a basic installation of Arch upon which you can build your system
Info
Having Arch wiki and installation guide open on your mobile or other computer can be useful
Prerequisites⚓︎
- Download the latest Arch ISO from official website. Preferably via Torrent since it doesn't load servers unnecessarily
- Copy ISO to your Ventoy USB
- Lookup your motherboard's BIOS key and boot to Arch Live Environment via Ventoy
Basic setup before chroot⚓︎
Connect to internet⚓︎
Note
| PlaceHolder | Description | Dummy Value |
|---|---|---|
yourWiFiPassphrase | Password for your WiFi | 123456qwerty |
yourDeviceName | Your WiFi device on Computer | wlan0 |
yourWifiSSID | Your WiFi name or SSID | Hudater |
- Get your wireless device name
Most likely wlan0 - Change values according to your setup and execute command
Bash - Command with Dummy Values
Bash
Enable NTP for system clock⚓︎
| Bash | |
|---|---|
- Check if NTP is active
Bash
Disk Setup⚓︎
Partiton Disk⚓︎
Warning
For help, type m and q to quit without writing
++keyName++ means keyName to be pressed. It's not rendered inside code block
- Execute fdisk with destination drive
| Bash | |
|---|---|
- Create new partition table. IT WILL ERASE WHOLE DISK
| Bash | |
|---|---|
- Create two new partitions for
/bootand/
- Write your changes
| Bash | |
|---|---|
Make Filesystem⚓︎
- Run
lsblkto find device names
| Bash | |
|---|---|
lsblk output
- Create filesystem on both partitions
Mount partitions⚓︎
Warning
Mount ROOT partition first
Install base system⚓︎
Note
Change the kernel and kernel-headers if you desire so
Add or remove programs as you like
| Bash | |
|---|---|
Generate FSTab⚓︎
| Bash | |
|---|---|
After Chroot⚓︎
| Chroot into the installation now | |
|---|---|
Symlink localtime⚓︎
| Bash | |
|---|---|
Sync Hardware Clock⚓︎
| Bash | |
|---|---|
Localization and Host⚓︎
Locale.gen⚓︎
- Uncomment desired locale [
en_US.UTF-8 UTF-8]Bash
Tip
Search in vim using :+/ then your locale i.e, en_US and press n to forward and uncomment UTF-8 version between the file
Locale.conf⚓︎
| Bash | |
|---|---|
Generate Locale⚓︎
| Bash | |
|---|---|
Hostname⚓︎
| Bash | |
|---|---|
Hosts⚓︎
| vim /etc/hosts | |
|---|---|
Bootloader⚓︎
Refind⚓︎
-
Install packages
Bash -
Install refind on drive
Use BOOT Partition device name here -
Generate refind config
Bash -
Edit refind config
Warning
Change PARTUUID of root partition using blkid
| vim /boot/refind_linux.conf | |
|---|---|
Pacman⚓︎
-
Edit pacman config
Bash -
Enable Parallel Downloads and Colors
-
Enable Multilib support
-
Fix mirrors with
reflectorInstall reflector first
Users and Sudo⚓︎
-
Set root password
Bash -
Create standard user
Bash -
Password for standard user
Bash -
Edit sudoers file
| EDITOR=vim visudo | |
|---|---|
- Move this line to top for passwordless commands to work
- This CAN BE a security risk. Not suggested to use
Services⚓︎
systemd-timesyncd sshd Network-Manager
Success
Basic Arch installation is complete here. Reboot now to your new installation
Post Installation⚓︎
Warning
Install chaotic-aur after enabling NTP
Wifi⚓︎
sudo nmtui wifi
Package Manager⚓︎
Warning
Visit official website for latest installation steps if out-of-date here
-
Install Primary key, Keyring and Mirrorlist
-
Add Mirrorlist to
pacman.conf
Packages⚓︎
Basic packages⚓︎
Audio Packages⚓︎
| Bash | |
|---|---|
GPU Drivers⚓︎
AMD⚓︎
| Bash | |
|---|---|
Intel⚓︎
| Bash | |
|---|---|
Success
Move onto Basic setup guide now