• Home

    • Information
    • Webpage styling
  • Installation

    • Pre-installation
    • Installation
    • Configuration
      • Generate fstab file
      • Chroot
      • Set the time zone
      • Localization
      • Network Configuration
      • Generate initramfs
      • Root password
      • Boot loader
  • Post-installation

    • General recommendations
    • Performance
    • Gaming
    • Security

Installation Guide


Configuration

Generate fstab file

Generate a filesystem table (aka fstab) using the following command.


genfstab -U /mnt >> /mnt/etc/fstab

Warning

You should check the resulting /mnt/etc/fstab file and correct it in case of errors.

Chroot

Chrooting means changing root. Chroot into the new system using:


arch-chroot /mnt

Tip

It's good to memorize the arch-chroot command. It may come in handy to repair the system in the future.

Set the time zone

You can view all possible time zones using:


ls -R /usr/share/zoneinfo/

Set the time zone:


ln -sf /usr/share/zoneinfo/Region/City /etc/localtime

Run hwclock to generate /etc/adjtime:


hwclock --systohc

This command assumes the hardware clock is set to UTC.

Localization

Edit /etc/locale.gen and uncomment en_US.UTF-8 UTF-8 and other needed locales. Generate the locales by running:


locale-gen

Create the locale.conf file, and set the LANG variable accordingly:




LANG=en_US.UTF-8

If you set the keyboard layout, make the changes persistent in vconsole.conf:




KEYMAP=pl

Network configuration

Create the hostname file:




myhostname

Add matching entries to /etc/hosts:




127.0.0.1 localhost ::1 localhost 127.0.1.1 myhostname.localdomain myhostname

If the system has a permanent static IP address, it should be used instead of 127.0.1.1.

Generate initramfs

Creating a new initramfs is usually not required, because mkinitcpio was run on installation of the kernel package with pacstrap.


mkinitcpio -P

Root password

Set the root password:


passwd

Boot loader

Choose and install a Linux-capable boot loader. If you have an Intel or AMD CPU, enable microcode updates in addition.


Axis Linux Documentation is distributed under GNU Free Documentation License 1.3 or later unless otherwise noted.

Copyright © 2021 - Axis Linux