The installation guide for ArchLinux is designed for first-time Arch Linux user that can't proceed installing ArchLinux. But have thorough understanding of how Linux OS bootstraps.
Therefore This documentation skips all of the "bloat" that is basically "Linux for dummies".
This documentation will explain how to install ArchLinux for some-how experienced Linux users who installed using TUI Installer since forever.
- Boot to LiveCD
- Set the console keyboard layout with comand if you are using keyboard layout non-ANSI (e.g.
loadkeys no-latin1
).
For other available keyboard layout:ls /usr/share/kbd/keymaps/**/*.map.gz
. - Set the console font with command (e.g.
setfont ter-132b
for high-DPI screens).
For other available font layout:ls /usr/share/kbd/consolefonts/
- (UEFI only) Check if you have booted which version of UEFI using
cat /sys/firmware/efi/fw_platform_size
.
Note: usesystemd-boot
if you have 32-bit UEFI. - Connect to internet using
ip
command. You already know how to do it. - Setup system time using
timedatectl
and setup clocksource. You already know how to do it. - Prepare the disk partition and setup filesystem or swap using
fdisk
or something. For example:- EFI Partition (if UEFI) - use FAT
- root filesystem partition
- SWAP Partition (if you want)
- Mount root filesystem
- Mount EFI Partition to
/boot
of root filesystem if you are using UEFI.
Now you have prepared your disk and time data to install arch.
- use
pacstrap
to installbase linux linux-firmware
packages.pacstrap -K /root_mountpoint base linux linux-firmware
- install your favorite text editor. For my case:
emacs
pacstrap -K /root_mountpoint emacs
- Create
/etc/fstab
file on root filesystem. You can automate this via usinggenfstab -U /root_mountpoint >> /mnt/etc/fstab
. - chroot into your root mountpoint using
arch-chroot
. - Install your bootloader, Using
GRUB
since I likeGNU/Bloat(tm)
.pacman -Sy grub efibootmgr
grub-install --target={arch} --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
- Install
microcode
- Intel: Install
intel-ucode
package - AMD: Install
amd-ucode
package
- Intel: Install
- setup timezone via symlinking current timezone at
/usr/share/zoneinfo/Your/Timezone
into/etc/localtime
. - generate
/etc/adjtime
and set hardware clock withhwclock --systohc
. - edit
/etc/locale.gen
and apply it withlocale-gen
. - edit
/etc/locale.conf
to set locale and update/etc/vconsole.conf
if you need to set console keyboard layout - set hostname via
/etc/hostname
. - (If you need initramfs update) edit
/etc/mkinitcpio.conf
and buildinitramfs
withmkinitcpio -P
. - Set root password with
passwd
. - Reboot.
- Now you can proudly say "btw, I use arch."