Artix Linux

This is a relative small and new distribution that comes from Arch Linux and is influenced by Gentoo. Since things are continuously changing, the info below might become obsolete.

Installing

According to https://forum.artixlinux.org/index.php/topic,41.0.html :

  1. You boot the iso, then check that you have a working internet connection(ping google.com or something).
  2. You use fdisk to partition you hdd. I created only one partition
  3. You format it using mkfs.ext4
  4. And mount it to /mnt
  5. I’ve commented all servers in /etc/pacman.d/mirrorlist and added: https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch.
  6. [bash]
    # Then synchronized package databases with that server using:
    pacman -Syy

    # Then you fix a bug in their script:
    sed -e ‘s/${hostcache} && pacman/${hostcache} || pacman/g’ -e ‘s/${interactive} && pacman/${interactive} || pacman/g’ -i /usr/bin/basestrap

    #Install base stuff on you new disk:
    basestrap -i /mnt base openrc-system openrc-world systemd-dummy libsystemd-dummy # Accept defaults (ENTER)

    # Generate your fstab:
    fstabgen -U /mnt >> /mnt/etc/fstab

    # Chroot to the new system:
    artools-chroot /mnt

    # Set timezone:
    ln -sf /usr/share/zoneinfo/Europe/Bucharest /etc/localtime
    hwclock –systohc

    # Set locale
    echo "LANG=en_US.UTF-8" > /etc/locale.conf

    # Set hostname
    echo "hostname=\"myhostname\"" > /etc/conf.d/hostname
    echo "127.0.0.1 localhost.localdomain localhost" >> /etc/hosts
    echo "::1 localhost.localdomain localhost" >> /etc/hosts
    echo "127.0.1.1 myhostname.localdomain myhostname" >> /etc/hosts

    # Init.d scripts:
    rc-update add udev boot
    rc-update add elogind boot
    rc-update add dbus default

    # Set root password
    passwd

    # Install grub bootloader:
    pacman -S grub
    grub-mkconfig -o /boot/grub/grub.cfg
    # Exit chroot and install grub on vda
    grub-install –root-directory=/mnt /dev/vda
    [/bash]

Other stuff

  1. You might want to have sshd running after boot:
    [bash]
    useradd nobody -d / -s /usr/bin/nologin -g nobody
    rc-update add sshd default
    [/bash]
  2. You might want to install docker:
    [bash]
    pacman -S docker docker-openrc
    rc-service docker start
    rc-update add docker default
    [/bash]
  3. You might want to create a base docker image containing an Artix system:
    [bash]
    # Install artools-base to be able to call basestrap:
    pacman -S artools-base

    # Create a folder for the root filesystem of the new base image:
    mkdir ./rootfs

    # Install basic stuff on system:
    basestrap -i ./rootfs artix-sysvcompat bash bzip2 coreutils diffutils e2fsprogs file filesystem findutils gawk gcc-libs gettext glibc grep gzip inetutils iputils less licenses logrotate pacman perl procps-ng psmisc sed shadow sysfsutils tar texinfo util-linux which

    # Create docker image from rootfs:
    tar –numeric-owner –xattrs –acls -C ./rootfs -c . | docker import – artix-base

    # Test the newly created image:
    docker run –rm=true -t artix-base echo Success.

    # Remove rootfs contents:
    rm -Rf ./rootfs/*

    # Then simply save the image to a file:
    docker image save -o artix-base.tar artix-base

    # Load the image on another computer:
    docker image load -i artix-base.tar
    [/bash]