品番
#002
Table of Contents
Tips / Installation / Artix
👉 Note: Artix / dinit ISO
Language Configuration
🔅 To check available layouts:
ls -R /usr/share/keymaps🔅 Now type the layout name without the extension. For example, I use the Latin American layout.
loadkeys la-latin1Partitioning
🔅 Let’s check which disk we’ll install to:
fdisk -l🔅 Partition the disk:
👉 Note: In my case my disk is NVME, so replace NVME with sda, sdb or whichever you have.
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:
mkfs.ext4 -L ROOT /dev/nvme0n1p2 # Root partitionmkfs.ext4 -L HOME /dev/nvme0n1p3 # Home partition (optional)mkfs.fat -F 32 /dev/nvme0n1p1 # EFI/boot partitionfatlabel /dev/nvme0n1p1 EFI🔅 Mount the partitions:
mount /dev/disk/by-label/ROOT /mntmkdir -p /mnt/bootmkdir -p /mnt/homemount /dev/disk/by-lable/HOME /mnt/homemount /dev/disk/by-label/EFI /mnt/boot🔅 Connect to the internet:
👉 Note: In my case, I use Cable. So not much configuration is needed.
ping artixlinux.orgInstall the base:
🔅 Install the base using basestrap:
# In my case I'll choose DINIT.basestrap /mnt base base-devel dinit elogind-dinit🔅 Install the kernel:
basestrap /mnt linux linux-firmware🔅 Generate /etc/fstab. For this I use -U for UUIDs. And -L for
the partitions.
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:
artix-chroot /mntConfiguring the system
🔅 Configure the clock:
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
hwclock --systohc🔅 Configure Localization:
pacman -s nanonano /etc/locale.gen👉 Note: In locale.gen I choose en_US. (If you want the system in Spanish choose es_ES.
# generate localeslocale-gen🔅 Install the bootloader:
pacman -S grub efibootmgr👉 Note: My configuration is intended for UEFI systems. Pay attention…
🔅 Install grub:
# If using MBR and not UEFI:# grub-install --recheck /dev/sdagrub-install --target=x86_64-efi --efi-directory=/boot --recheck
grub-mkconfig -o /boot/grub/grub.cfg🔅 Set ROOT password:
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:
EDITOR=nano visudo# uncomment: (removing the #)%wheel ALL=(ALL:ALL) ALL🔅 Configure hostname:
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:
nano /etc/hosts127.0.0.1 localhost::1 localhost127.0.1.1 yourhostname.localdomain yourhostname
# replace "yourhostname" with the hostname you chose.🔅 Install DHCPCD (internet client):
pacman -S dhcpcd dhcpcd-dinit🔅 Unmount and reboot:
exit # To exit suexit # To exit chrootumount -R /mnt # To unmountreboot # To restart🔅 Enable DHCPCD for internet:
sudo dinitctl enable dhcpcdsudo dinitctl start dhcpcd🔅 Enable Archlinux repositories:
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:
sudo pacman-key --populate archlinux
# Update repossudo pacman -Syy🔅 Install paru: If we don’t have git, we need to install it
sudo pacman -S git wget.
git clone https://aur.archlinux.org/paru.gitcd parumakepkg -si🔅 Finally, some packages that will be useful:
# Handle zip, rar files.sudo pacman -S zip unzip unrar
# Alsa and pipewire for handling audiosudo pacman -S pipewire pipewire-alsa pipewire-pulse alsa-utils
# To be able to view external diskssudo pacman -S ntfs-3g dosfstools exfat-utils
# Intel / amd driversparu -S xf86-video-amdgpu vulkan-radeon mesa-libgl mesa-vdpau libvdpau-va-gl libva-mesa-driver #AMDparu -S xf86-video-intel mesa-libgl libvdpau-va-gl #Intel