You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lsblk -Sp # list all available disks
parted -a optimal -s /dev/sda \
mklabel gpt \
mkpart primary 0% 128MiB \
name 1 boot \
set 1 esp on \
mkpart primary 128MiB 100% \
name 2 root
mkfs.fat -F32 -n BOOT /dev/sda1
# If no encrypted partition is needed
mkfs.btrfs -L root /dev/sda2
# If encrypted partition is needed
cryptsetup luksFormat /dev/sda2 # Type YES the a passphrase
cryptsetup open /dev/sda2 root # Open ecrypted partition.
mkfs.btrfs -L root /dev/mapper/root
Mounting partition
# If partition has been encrypted
mount /dev/mapper/root /mnt
# else
mount /dev/sda2 /mnt
# endif
mkdir -p /mnt/boot
mount /dev/sda1 /mnt/boot
Update mirrorlist and install packages
cd /etc/pacman.d
pacman -Sy pacman-contrib # In order to get rankmirrors command
curl -L archlinux.org/mirrorlist/\?country=FR | sed 's/^#//'> mirrorlist.bak # Get fr mirrorlist
rankmirrors mirrorlist.bak > mirrorlist
pacstrap /mnt base base-devel linux linux-firmware iwd zsh git stow
ip link # List all available network hardwares. What starts with an "e" is for ethernet connection. What starts with a "w" is for wireless connection.# Starting with ethernet connection# systemctl enable iwd systemd-networkd systemd-resolved
iwctl station <wlan> get-networks
iwctl station <wlan> connect <ssid># /etc/systemd/network/20-ethernet.network# [Match] # Only one of the rules because an AND is made between lines# Name=en*# Name=eth*## [Network]# DHCP=yes# IPv6PrivacyExtensions=yes## [DHCP]# RouteMetric=512# /etc/systemd/network/20-wireless.conf# [Match] # Only one of the rules because an AND is made between lines# Name=wlp*# Name=wlan*## [Network]# DHCP=yes# IPv6PrivacyExtensions=yes## [DHCP]# RouteMetric=1024# /etc/resolv.conf# nameserver 127.0.0.53# options edns0 trust-ad
Configure users
passwd # Password for root user
useradd -m -g users -s /bin/zsh flohw # m option to create homedir. g for group. s for shell. Then username
passwd flohw # Password for flohw user
vim /etc/sudoers # Find line starting with root ALL=(ALL) ALL# Add new line : "flohw ALL=(ALL) ALL" to allow flohw user to use sudo command
Install and configure bootloader
pacman -S syslinux efibootmgr
mkdir -p /boot/EFI/
dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/sda
cp -r /usr/lib/syslinux/efi64/* /boot/EFI/.
vim /boot/syslinux/syslinux.cfg
# DEFAULT arch# LABEL arch# LINUX ../vmlinuz-linux# INITRD ../initramfs-linux.img# If partition has been encrypted use this line# APPEND cryptdevice=/dev/sda2:root root=/dev/mapper/root rw# If not use this one# APPEND root=/dev/sda2 rw# If necessary : EFI entry may not exist or outdated in case of reformatting
efibootmgr --create --disk /dev/sda --part 1 \
--loader /EFI/syslinux.efi \
--label "ArchLinux" --verbose
# If partition has been encrypted
vim /etc/mkinitcpio.conf
# Into HOOKS section# Add encrypt between block and filesystems
mkinitcpio -p linux # Rebuild boot loader images with new parameters and right filesystem configuration
Post installation
# For laptop
sudo pacman -S nvidia xf86-video-intel bumblebee mesa # Xorg will be faster
sudo systemctl enable bumblebeed
sudo systemctl start bumblebeed
alsactl init # sound will be operationnal# For chromebook
sudo pacman -S libva-intel-driver mesa
alsactl init
# yay
git clone https://aur.archlinux.org/yay-bin.git &&cd yay-bin
makepkg -si &&cd .. && rm -rf yay-bin
# If vlc stream to chromcast don't work out of the box
pacman -Sy libmicrodns protobuf
vim /boot/loader/loader.conf
# #timeout 3# #console-mode keep# default arch.conf
vim /boot/loader/entries/arch.conf
# title ArchLinux on Chromebook# linux /vmlinuz-linux# initrd /intel-ucode.img# initrd /initramfs-linux.img# # If partition has been encrypted use this line# options cryptdevice=/dev/sda2:root root=/dev/mapper/root rw# # If not use this one# # options root=/dev/sda2 rw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters