Introduction
This is an installation guide for Arch Linux. This is NOT a generic guide on installing Arch Linux, it is customized towards my preferences.
The Arch Linux installation guide can be found on the Arch Linux website here
Dependencies
Arch can be installed in a Virtual Machine or bare metal, installations on bare metal devices may include extra steps. Here are the dependencies
- Arch Linux ISO
- USB Thumbdrive (8GB) - Bare Metal Installations
- Separate Workstation to create USB Bootable Devices
Software to create USB Bootable Devices
Linux
dd
|
|
Read more about dd:
$ man dd
Windows
balenaEtcher
Rufus
win32DiskImager
Virtual Machine managers
Any Virtual Machine managers can be used. Here are some popular ones:
VirtualBox
VMWare Workstation/Player
Installation
Hardware Configurations
Here are the hardware configurations I will be using for the virtual machine
- 2GB Ram (2048MB)
- 2 Processors
Arch Installation
Boot Selection
Power on the Virtual/Physical machine. Select the first option
Internet Conectivity
Ethernet connection is recommended. If on WI-FI use iwctl
NTP
Sync the system time to NTP with timedatectl
|
|
Partitioning Drives
Use lsblk
to find out your device name
Use this command to create a new partition table on your device
|
|
Select dos
label type
Using the arrow keys
and Enter
, navigate and create these partitions
Single Drive
Partition | Space | Remarks |
---|---|---|
/dev/sda1 | 512MB | boot |
/dev/sda2 | >=10GB | root(/) |
/dev/sda3 | Leftover | home |
>1 Drive
Partition | Space | Remarks |
---|---|---|
/dev/sda1 | 512MB | boot |
/dev/sda2 | Leftover | root(/) |
/dev/sdb1 | All | home |
Write
the changes and Quit
Formatting Partitions
Do a lsblk
again, /dev/sda should have 3 partitions
/dev/sda1
This is the boot partition, formatted to fat32
|
|
/dev/sda2 and others
Other partitions are formatted to ext4
|
|
Mount partitions
Mount the root partition
|
|
Create a folder and mount the home partition
|
|
Check the mount points with lsblk
Pacstrap
Start the installation of arch with the Pacstrap script
|
|
Select all
and yes
and wait for the installation to complete.
Fstab
Generate the fstab file
|
|
Chroot
Chroot into the system with BASH
shell
|
|
Locale
|
|
Find the languages you are going to use
I am going to install
- en_us both UTF and ISO
- zh_SG.UTF-8
- ko_KR.UTF-8
Save and exit the editor and generate locale
|
|
Create locale.conf
with the corrosponding languages
|
|
Timezone
|
|
Set local time
|
|
Check the date with
|
|
Hostname
Set the Hostname of your system
|
|
Edit your /etc/hosts
file with vim /etc/hosts
Enter the following line
|
|
Save and exit the editor
Network
Install and enable NetworkManager
|
|
Bootloader
Install grub and efibootmanager
|
|
Install the Bootmanager into the system
|
|
Root Password
Change the root password with passwd
Reboot
Exit and reboot your system
|
|
You should see GRUB screen on boot, with Arch installed
Login with root
and the password previously set
Post-Installation
Arch is now installed, these are post installation processes like creating swap, user and installing a GUI
Swap
Create a swapfile with the same size as your RAM
|
|
2048
to the size of your RAM in MBCheck that your swapfile is working with free -h
User
Create a user and group
|
|
username
to your desired usernameEdit sudoers file
|
|
Uncomment the line and add a line
|
|
sudo
group to run commands without sudo prefixChange the password of the user with passwd username
Reboot/Logout and login as user
DotFiles
Clone and ‘install’ Dotfiles from GitLab
|
|
Install yay
|
|
Install and change shell utilities
|
|
Display
Xorg must be installed to be able to display a WM/DE
|
|
Install i3 (Optional) - More Stable
|
|
Install Xmonad & Xmobar (Optional)
|
|
Read more about my xmonad configurations here
Summary
Arch is installed successfully!
Here are some programs I would install
Program | Function |
---|---|
Firefox | Web Browser |
Dmenu & Utilities | Application Launcher |
Neovim | Editor |
VSCodium | Editor |
Pywal | Themeing |
Flameshot | Screenshot Utility |
Fcitx | Multi-language Keyboard |
Trayer | Tray Application Support |
Dunst | Notification Manager |
Mpd & Ncmpcpp | Music Player |
Mpv | Video Player |
Zathura | PDF Reader |
Have fun with your arch installation!
i use arch btw