Skip to main content
Topic: Installation guide from Artix ISO (Read 27031 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Installation guide from Artix ISO

Pre-installation

Download and boot the installation medium. You will have to log in as artix user with password artix, and presented with a Zsh shell prompt. You can access to root user with su command.

To switch to a different console—for example, to view this guide with ELinks alongside the installation—use the Alt+arrow shortcut. To edit configuration files, nano, vi and vim are available.

Set the keyboard layout

The default console keymap is US. To list available layouts, run ls /usr/share/kbd/keymaps/**/*.map.gz. To modify the layout, append a corresponding file name to loadkeys(1), omitting path and file extension. For example, run loadkeys de-latin1 to set a German keyboard layout.

Console fonts are located in /usr/share/kbd/consolefonts/ and can likewise be set with setfont(8).

Verify the boot mode

If UEFI mode is enabled on an UEFI motherboard, Artix ISO will boot Artix Linux accordingly via GRUB. To verify this, list the efivars directory:

Code: [Select]
 # ls /sys/firmware/efi/efivars

If the directory does not exist, the system may be booted in BIOS or CSM mode. Refer to your motherboard's manual for details.

Connect to the Internet

The installation image enables the dhcpcd daemon on boot for wired network devices. The connection may be checked with:

Code: [Select]
 # ping archlinux.org

If no connection is available, stop the dhcpcd service with rc-service dhcpcd stop, and see Network configuration.

For wireless connections, iw(8), wpa_supplicant(8) are available. See Wireless network configuration.

Update the system clock

Use ntpd(1) to ensure the system clock is accurate:

Code: [Select]
 # pacman -S ntp
# ntpd -qg

Partition the disks

When recognized by the live system, disks are assigned to a block device such as /dev/sda. To identify these devices, use lsblk or fdisk — results ending in rom, loop or airoot may be ignored:

Code: [Select]
 # fdisk -l

The following ''partitions'' (shown with a numerical suffix) are required for a chosen device:


Swap space can be set on a separate partition or a swap file.

To modify partition tables, use fdisk or parted. See Partitioning for more information.

If you want to create any stacked block devices for LVM, disk encryption or RAID, do it now.

Format the partitions

Once the partitions have been created, each must be formatted with an appropriate file system. For example, to format the root partition on /dev/sda1 with ext4, run:

Code: [Select]
 # mkfs.ext4 /dev/sda1

See File systems#Create a file system for details.

Mount the file systems

Mount the file system on the root partition to /mnt, for example:

Code: [Select]
 # mount /dev/sda1 /mnt

Create mount points for any remaining partitions and mount them accordingly, for example:

Code: [Select]
 # mkdir /mnt/boot
# mount /dev/sda2 /mnt/boot

fstabgen will later detect mounted file systems and swap space.

Installation

Select the mirrors

Packages to be installed must be downloaded from mirror servers, which are defined in /etc/pacman.d/mirrorlist for Artix repositories and in /etc/pacman.d/mirrorlist-arch for Archlinux repositories. On the live system, all Archlinux mirrors are enabled, and sorted by their synchronization status and speed at the time the installation image was created.

The higher a mirror is placed in the list, the more priority it is given when downloading a package. You may want to edit the file accordingly, and move the geographically closest mirrors to the top of the list, although other criteria should be taken into account.

This file will later be copied to the new system by basestrap, so it is worth getting right.

Install the base packages

First fix an issue on basestrap as following:
Code: [Select]
# sed -e 's/${hostcache} && pacman/${hostcache} || pacman/g' -e 's/${interactive} && pacman/${interactive} || pacman/g' -i /usr/bin/basestrap

Use the basestrap script to install the base package group:

Code: [Select]
 # basestrap -i /mnt base openrc-system openrc-world systemd-dummy libsystemd-dummy

This group does not include all tools from the live installation, such as btrfs-progs or specific wireless firmware; see import.list.d for comparison.

To install packages and other groups such as base-devel, append the names to basestrap (space separated) or to individual pacman commands after the Chroot step.

Configure the system

Fstab

Generate an fstab file (use -U or -L to define by UUID or labels, respectively):

Code: [Select]
 # fstabgen -U /mnt >> /mnt/etc/fstab

Check the resulting file in /mnt/etc/fstab afterwards, and edit it in case of errors.

Chroot

Change root into the new system:

Code: [Select]
 # artools-chroot /mnt

Time zone

Set the time zone:

Code: [Select]
 # ln -sf /usr/share/zoneinfo/Region/City /etc/localtime

Run hwclock(8) to generate /etc/adjtime:

Code: [Select]
 # hwclock --systohc

This command assumes the hardware clock is set to UTC. See Time#Time standard for details.

Locale

Uncomment en_US.UTF-8 UTF-8 and other needed localizations in /etc/locale.gen, and generate them with:

Code: [Select]
 # locale-gen

Set the LANG variable in locale.conf(5) accordingly, for example:

Code: [Select]
#/etc/locale.conf

LANG=en_US.UTF-8

If you set the keyboard layout, make the changes persistent in /etc/conf.d/keymaps:

Code: [Select]
#/etc/conf.d/keymaps

keymap="de-latin1"

Hostname

Add the hostname to /etc/conf.d/hostname:

Code: [Select]
#/etc/conf.d/hostname
hostname="myhostname"

Consider adding a matching entry to hosts(5):

Code: [Select]
#/etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
127.0.1.1 myhostname.localdomain myhostname

See also Network configuration#Set the hostname.

Init scripts

Enable the needed following init scripts:

Code: [Select]
rc-update add udev boot
rc-update add elogind boot
rc-update add dbus default

Network configuration

The newly installed environment has no network connection activated by default. See Network configuration#Network managers.

For Wireless configuration, install the iw and wpa_supplicant packages, as well as needed firmware packages. Optionally install dialog for usage of wifi-menu.

Initramfs

Creating a new initramfs is usually not required, because mkinitcpio was run on installation of the linux-lts package with basestrap.

For special configurations, modify the mkinitcpio.conf(5) file and recreate the initramfs image:

Code: [Select]
# mkinitcpio -p linux-lts

Root password

Set the root password:

Code: [Select]
# passwd

Boot loader

See Category:Boot loaders for available choices and configurations.

If you have an Intel CPU, install the intel-ucode package in addition, and enable microcode updates.

Reboot

Exit the chroot environment by typing exit or pressing Ctrl+D.

Optionally manually unmount all the partitions with umount -R /mnt: this allows noticing any "busy" partitions, and finding the cause with fuser(1).

Finally, restart the machine by typing reboot: any partitions still mounted will be automatically unmounted by eudev. Remember to remove the installation media and then login into the new system with the root account.

Post-installation

See General recommendations for system management directions and post-installation tutorials (like setting up a graphical user interface, sound or a touchpad).

For a list of applications that may be of interest, see List of applications.
I'm using Gentoo Linux because I'm crazy and also because I love choices.
Still compiling…