nvim /etc/locale.gen
# uncomment : en_US.UTF-8 UTF-8. write and quit vim
locale-gen
nvim /etc/locale.conf
# add the line : LANG = en_US.UTF-8
Step 11: Hostname
nvim /etc/hostname
# Write down whatever hostname you want to choose
Step 12: Setting up hosts
nvim /etc/hosts
# add the following line:
127.0.0.1 localhost
::1 localhost
127.0.1.1 <host name>.localdomain <host name>
Step 13: Root Password
passwd
Step 14: SystemD boot as bootloader
bootctl --path=/boot install
cd /boot/loader
nvim loader.conf
# add the following line if not there
timeout 3
#console-mode keep
default <host name>-* # save and quit out of vim
Step 15 : Entries Directory
in the /boot/loader there should be a entries directory.
Go there and add the following line :
cd entries/ # this is where the entries will be strored of the installed distro
# add :
title Arch Linux
linux vmlinuz-linux
initrd /initramfs-linux.img
options root=<root directory> # eg. in our case: /dev/nvme0n1p2 rw
Step 16: User Creation
useradd -mG wheel habib350
passwd habib350
EDITOR=nvim visudo
# uncomment the following line
%wheel All=(All) All