artix
Artix instalation with UEFI, grub, Runit, xorg, awesomewm, Guide inspierd by kyoz
Make installer USB
Download Artix base ISO here
Find usb by using lsblk then:
# Assume usb disk is /dev/diskX
umount /dev/diskX
dd if=path/to/arch.iso of=/dev/diskX bs==1m
Boot it up
Access UEFI when system bootup, then choose boot from USB.
Login
Chose:
[From CD/DVD/ISO: artix.x86_64]
Then login with:
Username: root
Password: artix
Set the keyboard
loadkeys pt-latin9
Connect Wifi
Connect with connman:
connmanctl # Open connman
enable wifi # Enable wifi
scan wifi # Scan wifi
agent on # Enable wireless agent
services # List all scanned wifi
connect wifi_XXX # Connect with wifi_XXX goes after your wifi name
Then check connection with:
ping gnu.org
Partition
View all your partitions to choose correct one with:
lsblk
Then open fdisk to partition own disk
# Assuming disk is /dev/sda
fdisk /dev/sda
Then create these new partitions:
| Size | Type | Description |
|---|---|---|
| 512MB | FAT32 | In here it will be the EFI file system so you can boot |
| xMB | Linux Swap | If you have space, try to make it double size of your ram size |
| xGB | Linux filesystem | This is our home |
Format and Mount
mkfs.fat -F 32 /dev/sda1
mkswap /dev/sda2
mkfs.xfs /dev/sda3 # xfs, ext4, btrfs, whatever
Then mount & turn on swap:
mount /dev/sda3 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
swapon /dev/sda2
Install Base System, Kernel and Vim
I'm using runit so:
basestrap /mnt base base-devel runit elogind-runit linux linux-firmware vim
Generate fstab
Run this command:
fstabgen -U /mnt >> /mnt/etc/fstab
Optimize fstab: (do not do this part for now)
vim /mnt/etc/fstab
/dev/sda1
UUID=x /boot vfat noatime 0 0
/dev/sda2
UUID=x swap swap sw 0 0
/dev/sda3
UUID=x / ext4 noatime 0 0
Configure the Base System
Let chroot into own new Artix system:
artix-chroot /mnt
Set system clock:
ln -sf /usr/share/zoneinfo/Portugal /etc/localtime
hwclock --systohc
Localization:
vim /etc/locale.gen
# Uncomment `en_US.UTF-8 UTF-8`
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
Keyboard:
echo KEYMAP=pt-latin9 > /etc/vconsole.conf
Users:
# change your sudo password with:
passwd
# add user with
useradd -m -G wheel your_username
passwd your_username
Add sudo rights for our user:
vim /etc/sudoers
# Uncomment `%wheel ALL=(ALL) ALL`
Configure Network
Set hostname:
echo artix > /etc/hostname #Change artix with your hostname
Set hosts:
vim /etc/hosts
# and write
127.0.0.1 localhost
::1 localhost
127.0.1.1 artix.localdomain artix #Change artix with your hostname
Install the packages:
pacman -S networkmanager networkmanager-runit dhcpcd wpa_supplicant
If you only have wireless connection, be sure to install wpa_supplicant and make sure it install successfully
Enable connmand service:
ln -s /etc/runit/sv/NetworkManager /etc/runit/runsvdir/default
Install the Bootloader
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=grub
grub-mkconfig -o /boot/grub/grub.cfg
Make shure it has found the linux image and the initramfs image
If you have an XFS file system
pacman -S xfsprogs
Reboot the System
exit
umount -R /mnt
poweroff