Installation

Download and Install the Rocky Linux’s Raspberry Pi(aarch64) image on the MicroSD Card, following the Readme file.

Prémiére chose à faire

Enable full utilization of the MicroSD card’s memory

Since the rootfs partition is formatted primarily occupying ~2.8GB of the MicroSD card’s memory, and most of the MicroSD cards provide at least 4GB of memory, it is recommended to grow the partition using all of the memory still available in the MicroSD card:

[root@localhost ~] rootfs-expand

After that, the rootfs filesystem will be expanded and you be able to update the system and install more software.

Installer le dépôt EPEL

[root@localhost ~] dnf install epel-release -y

Mise à jour du systéme

[root@localhost ~] dnf -y upgrade

Clavier azerty

[root@localhost ~] localectl set-keymap fr-azerty

Timezone

[root@localhost ~] timedatectl set-timezone Europe/Paris

Configuration du Wi-Fi

[root@localhost ~] nmtui

SELinux

 [root@localhost ~]# vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
# change the value below
# enforcing  ⇒ enabled
# disabled   ⇒ disabled
# permissive ⇒ enabled but only logging, not deny accesses
SELINUX=permissive
# SELINUXTYPE= can take one of these three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

# restart computer to apply setting

[root@localhost ~]# reboot

Créer les utilisateurs standart

[root@localhost ~]# useradd kato
[root@localhost ~]# passwd kato 
[root@localhost ~]# usermod -aG wheel kato 

Installer podman

[root@localhost ~]# dnf -y install podman 

Supprimer le compte par défaut rocky

# remove a user [rocky] (removed user account and his home directory both)
[root@localhost ~] userdel -r rocky