My archlinux install script
$ git clone https://github.com/ctjhoa/arch-install-script
$ cd arch-install-script
$ ./install.sh
NOTE: You can automate config with cp install.conf.sample install.conf
then edit it
- Touchpad
# /etc/X11/xorg.conf.d/30-touchpad.conf
Section "InputClass"
Identifier "Elantech Touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "DisableWhileTyping" "on"
Option "MiddleEmulation" "on"
Option "Tapping" "on"
Option "TappingButtonMap" "lmr"
EndSection
https://wiki.archlinux.org/title/USB_flash_installation_medium
The following is just a simplified version of arch installation guide for my personal usage.
Full guide is here https://wiki.archlinux.org/title/Installation_guide
Note: Do not create boot partition if Windows is already installed (EFI partition already exists).
Useful pages:
- https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system#LVM_on_LUKS
- https://wiki.archlinux.org/title/Dual_boot_with_Windows
- https://wiki.archlinux.org/title/System_time#Time_standard
- https://wiki.archlinux.org/title/Microcode#systemd-boot
- https://wiki.archlinux.org/title/Systemd-boot#pacman_hook
- https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot#Helper_scripts
- https://wiki.archlinux.org/title/iwd
- https://wiki.archlinux.org/title/systemd-resolved#DNS
PS: https://wiki.archlinux.org/title/archinstall could be an alternative in the future
Global steps:
loadkeys fr
timedatectl set-ntp true
wifi-menu -o
fdisk /dev/sda
- New
512M
EFI System
->mkfs.fat -F32 /dev/sda1
- New
2G
Linux Swap
->mkswap /dev/sda2 && swapon /dev/sda2
- New
Linux filesystem
->mkfs.ext4 /dev/sda3
- New
mount /dev/sda3 /mnt
mount /dev/sda1 /mnt/boot
pacstrap /mnt base base-devel iwd intel-ucode git mesa
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
hwclock --systohc # hardware suppose to be in UTC
passwd
bootctl --path=/boot install
- Configure systemd-boot
# esp/loader/loader.conf
------------------------
default arch
timeout 4
editor no
# esp/loader/entries/arch.conf
------------------------------
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=${blkid -s PARTUUID -o value /dev/sda3} rw
- Set the keyboard layout in console
# /etc/vconsole.conf
-------------------
KEYMAP=fr
umount -R /mnt
andreboot
- Install arch-install-script