It is possible to use runit iso to install OpenRC-based system, and vice-versa.
Artix can either be installed through the console or the GUI installer. The GUI install is quite straightforward, we'll focus on the console installation procedure here. The installation media is confirmed to work on both BIOS and UEFI systems.
Partition your hard drive (
/dev/sda will be used in this guide) with fdisk or cfdisk, the partition numbers and order are at your discretion:
If you want to install side-by-side with other operating systems, you must make some space on the disk by resizing the existing partitions. You may use gparted for this, however detailed instructions are out of the scope of this guide.
Next, format the new partitions, for example as ext4:
mkfs.ext4 -L ROOT /dev/sda2 <- root partition mkfs.ext4 -L HOME /dev/sda3 <- home partition, optional mkfs.ext4 -L BOOT /dev/sda4 <- boot partition, optional mkswap -L SWAP /dev/sda1 <- swap partition
The -L switch assigns labels to the partitions, which helps referring to them later through
/dev/disk/by-label without having to remember their numbers
mkdir /mnt/boot mkdir /mnt/home
Now, mount your partitions:
swapon /dev/sda1 (if created) mount /dev/sda2 /mnt mount /dev/sda3 /mnt/home (if created) mount /dev/sda4 /mnt/boot (if created)
A working internet connection is required and assumed. A wired connection is setup automatically, if found. Wireless ones must be configured by the user. Verify your connection and update the repositories:
ping artixlinux.org pacman -Syy
Use basestrap to install the base and optionally the base-devel package groups and your preferred init (currently available:
basestrap /mnt base base-devel openrc
basestrap /mnt base base-devel runit
Use fstabgen to generate
/etc/fstab, use -U for UUIDs and -L for partition labels:
fstabgen -L /mnt >>/mnt/etc/fstab <- edit and verify, also set root, swap, home and etc..
Check the resulting fstab for errors before rebooting. Now, you can chroot into your new Artix system with:
Set CLOCK to "UTC" if your Hardware Clock is set to UTC (also known as Greenwich Mean Time). If that clock is set to the local time, then set CLOCK to "local". Note that if you dual boot with Windows, then you should set it to "local".
edit this file:
Generate languages, uncomment
#de_DE.UTF-8 UTF-8 #en_US.UTF-8 UTF-8 #es_ES.UTF-8 UTF-8 #fr_FR.UTF-8 UTF-8 #it_IT.UTF-8 UTF-8
To set the locale systemwide, create or edit
/etc/locale.conf (which is sourced by
/etc/bash/bashrc.d/local.bashrc; user-specific changes may be made to their respective
~/.bashrc, for example:
export LANG="en_US.UTF-8" <-- localize in your languages export LC_COLLATE="C"
First, install grub and os-prober (for detecting other installed operating systems):
pacman -S grub os-prober grub-install --recheck /dev/sda grub-mkconfig -o /boot/grub/grub.cfg
First! Set root passwd
Second! Create a user and password:
useradd -m user passwd user
Create the hostname file:
nano /etc/hostname my_hostname
pacman -S networkmanager networkmanager-openrc network-manager-applet rc-update add NetworkManager default
Alternatively Gentoo's netifrc modules can be used, these are located in /etc/init.d/ and work on a script-per-interface basis.
ip -s link <- Get the exact name of your interface nano /etc/conf.d/net <- Add
Now the parent script
/etc/init.d/net.lo should be symlinked to create additional scripts for each network interface and then loaded into an openrc runlevel.
ln -s /etc/init.d/net.lo /etc/init.d/net.<interface> rc-update add net.<interface> default
Now, you can reboot and enter into your new installation:
exit <- exit chroot environment umount -R /mnt reboot
Once shutdown is complete, remove your installation media. If all went well, you should boot into your new system. Log in as your root to complete the post-installation configuration. To get a graphical environment you need to install the xorg group:
pacman -S xorg
Choose your packages, or just install all of them. For the closed-source nvidia drivers you can use the nvidia-lts package, as our default kernel is linux-lts:
pacman -S nvidia-lts
Older nvidia cards work with the legacy series, nvidia-340xx-lts and nvidia-304xx-lts. If you want to run a custom kernel, you can install the respective nvidia dkms package which ensures all installed kernels get their nvidia modules. AMD and Intel cards enjoy excellent (or near-excellent) 3D support with open-source drivers. Read the Arch wiki, for information on how Xorg chooses the best available video driver and which one is optimal for your hardware.
Install a desktop environment, for example MATE, XFCE4 or LXQt:
pacman -S mate mate-extra system-config-printer blueman network-manager-applet pacman -S xfce4 xfce4-goodies pacman -S lxqt
And optionally a display manager, like LXDM or SDDM. If use a openrc:
pacman -S displaymanager-openrc
pacman -S lxdm
pacman -S sddm
rc-update add xdm default nano /etc/conf.d/xdm <- edit and set DISPLAYMANAGER="lxdm"
Or you can use .xinitrc to launch your DE manually; edit (or create)
~/.xinitrc and add exec mate-session.
Notice: mate-session and quite a few other packages from the Arch repositories are compiled against systemd even if they don't actually use it, at least not as PID1; to satisfy the library link you may install elogind and its services files elogind-openrc or elogind-runit.
pacman -S elogind