Set up a secure, stable and efficient personal digital environment.
Why choose Arch Linux?
- Free and open source: Like most Linux distributions, Arch Linux is totally free. There are no license fees, making it an excellent choice for students, freelancers or enthusiasts.
- KISS philosophy: Arch is designed to be simple, light and efficient. It provides only the essentials, allowing you to build your environment à la carte.
- Pacman package manager: Pacman is a fast, reliable and well-designed package manager. It enables efficient installation and updating of software, and manages dependencies with precision.
- Comprehensive documentation and an active community: the Arch Wiki is probably one of the best technical documentations in the Linux world. It's a gold mine for understanding what you're doing. The community, mostly made up of experienced profiles, is very active and can help you if you get stuck, provided you've done a bit of research beforehand.
Installation and configuration
Prerequisites
- A USB key of at least 8 GB
- 2 GB RAM minimum
- A computer with at least 20 GB of free disk space
Download
- Visit the official website to download the latest official version of the ISO image.
Create a bootable key
- Download Balena Etcher from the official website.
- Launch the software, select the Arch Linux ISO image.
- Choose your USB key as target device.
- Click on Flash to start creating the bootable key.
Installing Arch Linux
Booting on USB key
- Switch off your computer completely
- Plug in the bootable USB key
- Reboot and enter BIOS/UEFI by pressing F1, Escape, F9, etc. (depending on your model)
- In the boot menu, choose the USB key as the boot device. If everything is set up correctly, you'll be taken to the Arch Linux Interface boot screen.
Launching the installation
Keyboard configuration
localectl list-keymaps
loadkeys nom-disposition
azerty with loadkeys fr.Setting date and time
timedatectl tool to manage the system clock.- Set your time zone with:
timedatectl set-timezone Europe/Paris
- Check that automatic synchronization is enabled with:
timedatectl status
- Activate it if necessary:
timedatectl set-ntp true
Disk partitioning
- Check if your system boots in UEFI or BIOS with:
ls /sys/firmware/efi
- List the available disks:
lsblk
- Start Partition Manager:
cfdisk /dev/nom-du-disque
Scores to create
- In UEFI mode
| Mount point on the installed system | Partition | Partition type | Suggested size |
| /boot1 | /dev/efi_system_partition | EFI System Partition | 1 GB |
| [SWAP] | /dev/swap_partition | Swap space (swap) | At least 4 GB |
| / | /dev/root_partition | Linux x86-64 root (/) | Remainder of disk |
- In BIOS
| Mount point on the installed system | Partition | Partition type | Suggested size |
| [SWAP] | /dev/swap_partition | Swap space (swap) | At least 4 GB |
| / | /dev/root_partition | Linux | Remainder of disk |
Formatting partitions
- UEFI:
mkfs.fat -F32 /dev/sda1 mkswap /dev/sda2 swapon /dev/sda2 mkfs.ext4 /dev/sda3
- BIOS:
mkswap /dev/sda1 swapon /dev/sda1 mkfs.ext4 /dev/sda2
Basic system installation
- On the BIOS:
mount /dev/sda2 /mnt
- on UEFI:
mount /dev/sda3 /mnt
pacstrap -K /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
System configuration
- Install a text editor to edit:
pacman -S vim
- Set the language:
/etc/locale.gen then uncomment the line en_US.UTF-8 UTF-8- Set the machine name:
echo nom_machine > /etc/hostname
- Set root password:
passwd
Installing GRUB
pacman -S grub
- For BIOS:
grub-install --target=i386-pc /dev/sda grub-mkconfig -o /boot/grub/grub.cfg
- For UEFI:
pacman -S efibootmgr mkdir /boot/efi mount /dev/sda1 /boot/efi grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg
Finalization
- Exit the chroot environment:
exit
- Remove the partitions:
umount -R /mnt
- Restart:
reboot
Network connection after reboot
ip link
cat <<EOF > /etc/systemd/network/20-wired.network [Match] Name=nom_de_l_interface [Network] DHCP=yes EOF
Interface graphics (GNOME)
pacman -Syu
pacman -S xorg
pacman -S gnome gnome-extra
systemctl enable gdm systemctl start gdm
Creating a user
- Add a user:
useradd -m -G wheel -s /bin/bash nom_utilisateur passwd nom_utilisateur
- Install sudo:
pacman -S sudo
- Activate sudo rights:
EDITOR=nano visudo
- Then uncomment the line:
%wheel ALL=(ALL:ALL) ALL
- Restart the system and log in with your user name.
Installing software
pacman -S nom_du_paquet_a_installe
pacman -S nano
firefox, use:pacman -S firefox
net-tools, the command would be:pacman -S net-tools
pacman -S vim firefox net-tools
Author
This tutorial has been written by Olaniran
You can say thanks by tipping the professor.
Web application developer, I write and share my understanding of how systems work.
Credits
This tutorial has not been proofread yet
The original content has been translated by AI, but human review is necessary to ensure its accuracy.
2 581 sats1 291 sats646 satsEvery content on the platform is the result of a collaborative effort: each lesson, translation, and revision is made possible by the work of contributors. For this reason, we are always looking for proofreaders who can review our content in many languages. If you want to participate in the proofreading process, please reach out in our Telegram group and read our tutorial. We remind you that this content is open-source - licensed under CC BY-SA - so it can be freely shared and used, as long as the original source is credited.


