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-132bfor 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-bootif you have 32-bit UEFI. - Connect to internet using
ipcommand. You already know how to do it. - Setup system time using
timedatectland setup clocksource. You already know how to do it.timedatectl set-ntp true- setup ntp server at/etc/ntp.conf- (if you dual boot windows, and you non-UTC on System clock)
timedatectl set-local-rtc 1 --adjust-system-clock
- Prepare the disk partition and setup filesystem or swap using
fdiskor something. For example:- EFI Partition (if UEFI) - use FAT
- root filesystem partition
- SWAP Partition (if you want)
- Mount root filesystem
- Mount EFI Partition to
/bootof root filesystem if you are using UEFI.
Now you have prepared your disk and time data to install arch.
- use
pacstrapto installbase linux linux-firmwarepackages.pacstrap -K /root_mountpoint base linux linux-firmware - install your favorite text editor. For my case:
emacs
pacstrap -K /root_mountpoint emacs - Create
/etc/fstabfile 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
GRUBsince I likeGNU/Bloat(tm).pacman -Sy grub efibootmgrgrub-install --target={arch} --efi-directory=/boot --bootloader-id=GRUBgrub-mkconfig -o /boot/grub/grub.cfg
- Install
microcode- Intel: Install
intel-ucodepackage - AMD: Install
amd-ucodepackage
- Intel: Install
- setup timezone via symlinking current timezone at
/usr/share/zoneinfo/Your/Timezoneinto/etc/localtime. - generate
/etc/adjtimeand set hardware clock withhwclock --systohc. - edit
/etc/locale.genand apply it withlocale-gen. - edit
/etc/locale.confto set locale and update/etc/vconsole.confif you need to set console keyboard layout - set hostname via
/etc/hostname. - (If you need initramfs update) edit
/etc/mkinitcpio.confand buildinitramfswithmkinitcpio -P. - Set root password with
passwd. - Reboot.
- Now you can proudly say "btw, I use arch."