Using iwctl to connect to wifi:
Let's check Connection:
ping www.google.com
Let's use iwctl:
iwctl
device list
adapter ADAPTER-NAME set-property Powered on
station wlan0 scan
station wlan0 get-networks
station wlan0 connect WIFI-NAME
station wlan0 show
ping www.google.com
-> Boot on a fresh Arch Linux ISO <-
If you're using a French Keyboard: loadkeys fr
cfdisk /dev/nvme0n1
- 1G (EFI System)
- 70G+ (Linux File System)
- 8G+ (Linux Swap)
Let's check the disks: lsblk
mkfs.fat -F 32 /dev/nvme0n1p1
mkfs.ext4 /dev/nvme0n1p2
mkswap /dev/nvme0n1p3
swapon /dev/nvme0n1p3
mount /dev/nvme0n1p2 /mnt
mount --mkdir /dev/nvme0n1p1 /mnt/boot
Let's check the disks once more: lsblk
pacstrap /mnt base linux linux-headers linux-firmware base-devel nano
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
View all timezone within this directory: /usr/share/zoneinfo/
hwclock --systohc
nano /etc/locale.gen
Then uncomment your locale (Example: fr_FR.UTF-8 UTF-8)
locale-gen
nano /etc/hostname
Write a hostname, example: archlinux
pacman -S networkmanager wpa_supplicant wireless_tools
systemctl enable NetworkManager
pacman -S amd-ucode (or pacman -S intel-ucode)
pacman -S htop neofetch
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
passwd
(Replace 'Blaka Div' with full username and Div with name)
useradd -m -g wheel -c 'Blaka Div' -s /bin/bash Div
passwd Div
export EDITOR=nano
visudo
Uncomment the line under: #Uncomment to allow members of group wheel to execute any command
pacman -S gnome gnome-extra
sudo systemctl enable gdm
exit
umount -R /mnt
reboot
Once you reboot you can do theses optional steps:
localectl set-x11-keymap fr
gsettings set org.gnome.desktop.peripherals.touchpad click-method areas
THE END. Now it is time to enjoy Arch Linux ;)