品番

#002

3 min read

Install Artix Linux easily: complete guide in English

Table of Contents

Tips / Installation / Artix

👉 Note: Artix / dinit ISO

Language Configuration

🔅 To check available layouts:

Terminal window
ls -R /usr/share/keymaps

🔅 Now type the layout name without the extension. For example, I use the Latin American layout.

Terminal window
loadkeys la-latin1

Partitioning

🔅 Let’s check which disk we’ll install to:

Terminal window
fdisk -l

🔅 Partition the disk:

👉 Note: In my case my disk is NVME, so replace NVME with sda, sdb or whichever you have.

Terminal window
cfdisk /dev/nvme0n1
Start Size
/dev/nvme0n1p1 512M # 512M / 1GB recommended
/dev/nvme0n1p2 60G # 40/60GB
/dev/nvme0n1p3 405.3G # Rest of space

👉 Note: This installation is exclusively for UEFI, and also consider that I’m not using dual boot. Just artix.

🔅 Format the partitions:

Terminal window
mkfs.ext4 -L ROOT /dev/nvme0n1p2 # Root partition
mkfs.ext4 -L HOME /dev/nvme0n1p3 # Home partition (optional)
mkfs.fat -F 32 /dev/nvme0n1p1 # EFI/boot partition
fatlabel /dev/nvme0n1p1 EFI

🔅 Mount the partitions:

Terminal window
mount /dev/disk/by-label/ROOT /mnt
mkdir -p /mnt/boot
mkdir -p /mnt/home
mount /dev/disk/by-lable/HOME /mnt/home
mount /dev/disk/by-label/EFI /mnt/boot

🔅 Connect to the internet:

👉 Note: In my case, I use Cable. So not much configuration is needed.

Terminal window
ping artixlinux.org

Install the base:

🔅 Install the base using basestrap:

Terminal window
# In my case I'll choose DINIT.
basestrap /mnt base base-devel dinit elogind-dinit

🔅 Install the kernel:

Terminal window
basestrap /mnt linux linux-firmware

🔅 Generate /etc/fstab. For this I use -U for UUIDs. And -L for the partitions.

Terminal window
fstabgen -U /mnt >> /mnt/etc/fstab
# Don't forget to verify everything is ok with:
cat /mnt/etc/fstab
# Inside you should have the Root, Home and boot partitions

🔅 Now enter as root with:

Terminal window
artix-chroot /mnt

Configuring the system

🔅 Configure the clock:

Terminal window
ln -sf /usr/share/zoneinfo/America/Argentina/Buenos_aires /etc/localtime # Here we need to put region/city.

👉 Note: With hwclock we generate /etc/adjtime

Terminal window
hwclock --systohc

🔅 Configure Localization:

Terminal window
pacman -s nano
nano /etc/locale.gen

👉 Note: In locale.gen I choose en_US. (If you want the system in Spanish choose es_ES.

Terminal window
# generate locales
locale-gen

🔅 Install the bootloader:

Terminal window
pacman -S grub efibootmgr

👉 Note: My configuration is intended for UEFI systems. Pay attention…

🔅 Install grub:

Terminal window
# If using MBR and not UEFI:
# grub-install --recheck /dev/sda
grub-install --target=x86_64-efi --efi-directory=/boot --recheck
grub-mkconfig -o /boot/grub/grub.cfg

🔅 Set ROOT password:

Terminal window
passwd # when you press enter, type the password.
useradd -m -G wheel -s /bin/bash yourusername # Obviously, type your username here!
passwd yourusername

🔅 Add WHEEL to sudoers file:

Terminal window
EDITOR=nano visudo
# uncomment: (removing the #)
%wheel ALL=(ALL:ALL) ALL

🔅 Configure hostname:

Terminal window
nano /etc/hostname
# hostname is giving a name to the host:
# I like "aesthetic" So it can be like your nickname.

🔅 Add it to hosts:

Terminal window
nano /etc/hosts
Terminal window
127.0.0.1 localhost
::1 localhost
127.0.1.1 yourhostname.localdomain yourhostname
# replace "yourhostname" with the hostname you chose.

🔅 Install DHCPCD (internet client):

Terminal window
pacman -S dhcpcd dhcpcd-dinit

🔅 Unmount and reboot:

Terminal window
exit # To exit su
exit # To exit chroot
umount -R /mnt # To unmount
reboot # To restart

🔅 Enable DHCPCD for internet:

Terminal window
sudo dinitctl enable dhcpcd
sudo dinitctl start dhcpcd

🔅 Enable Archlinux repositories:

Terminal window
sudo pacman -S artix-archlinux-support
# Add repos to /etc/pacman.conf (with nano /etc/pacman.conf)
[extra]
Include = /etc/pacman.d/mirrorlist-arch
[community]
Include = /etc/pacman.d/mirrorlist-arch
[multilib]
Include = /etc/pacman.d/mirrorlist-arch

🔅 Enable repos and regenerate them:

Terminal window
sudo pacman-key --populate archlinux
# Update repos
sudo pacman -Syy

🔅 Install paru: If we don’t have git, we need to install it sudo pacman -S git wget.

Terminal window
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si

🔅 Finally, some packages that will be useful:

Terminal window
# Handle zip, rar files.
sudo pacman -S zip unzip unrar
# Alsa and pipewire for handling audio
sudo pacman -S pipewire pipewire-alsa pipewire-pulse alsa-utils
# To be able to view external disks
sudo pacman -S ntfs-3g dosfstools exfat-utils
# Intel / amd drivers
paru -S xf86-video-amdgpu vulkan-radeon mesa-libgl mesa-vdpau libvdpau-va-gl libva-mesa-driver #AMD
paru -S xf86-video-intel mesa-libgl libvdpau-va-gl #Intel
My avatar

Thanks for reading my blog post! Feel free to check out my other posts or contact me via the social links in the footer.


More Posts

Comments