# Switch into a new system as a root:
You can use archiso later as a recovery tool!
You may also exit chroot with
Chroot into the system
And generate them:
echo "LANG=en_US.UTF-8" > /etc/locale.conf
This example will show you how to make dvorak layout persistent:
echo "KEYMAP=dvorak" > /etc/vconsole.conf
Do nothing if you have QWERTY.
If you have AZERTY, colmark etc, just change
dvorak with your favorite layout.
Set time zone
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime hwclock --systohc
# Update the system clock
timedatectrl set-ntp true
Check the status:
# Network configuration
Hostname - is a unique name created to identify a machine on a network.
echo uniquename > /etc/hostname
The result of this manipulations will be something like:
You will be able to generate new hostname with
hostnamectl later. Be aware that this method is NOT WORKING in arch-chroot.
hostnamectl set-hostname myhostname
Add matching entries to the hosts, edit
127.0.0.1 localhost ::1 localhost 127.0.1.1 uniquename.localdomain uniquename
Use a permanent IP address instead of
127.0.1.1 if you have one.
See more in the network configuration wiki.
Because our root is the part of LVM, we should add it to mkinitcpio or it could fail to boot
filesystems like so
HOOKS=(base udev ... block lvm2 filesystems ...)
And run mkinitcpio after editing
# Community repositories
multilib is for 64bit system.
To do this open the
#[multilib] #Include = /etc/pacman.d/mirrorlist
You also may add unofficial repositories But do it with caution.
- To have pacman animation while installing packages add this under the 'Misc options':
- You may need Color option for
After editing update the system. We should let system know about the changes with this command:
# User and password
- Root password:
- User password:
You should add at least one user. Replace
usernamewith preferred one:
useradd -m -g users -G wheel,storage,power -s /bin/bash username
And set password for a new user:
Read about visudo before editing! Any errors makes sudo unusable.
/etc/sudoers file with
visudo to prevent errors.
Since you added user to the
wheel group, user will gain full root privileges, you need to uncomment this line:
%wheel ALL=(ALL) ALL
If you are using a server or someone else has access to the wheel group, you may want to require sudoers to type root password.
In this case add this line:
Read more about root password.
Also microcode updates should be installed.
amd-ucode if you have AMD CPU.
pacman -S intel-ucode
You can then check this file inside your