Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# loadkeys it
# ls /sys/firmware/efi/efivars
# timedatectl set-ntp true
| /dev/sda1 | EFI | At least 260 MiB |
|-----------|-----------------|-------------------------|
| /dev/sda2 | Swap | More than 512 MiB |
|-----------|-----------------|-------------------------|
| /dev/sda3 | x86-64 root (/) | Remainder of the device |
# fdisk -l
# mkfs.ext4 /dev/root_partition
# mkswap /dev/swap_partition
# mkfs.fat -F32 /dev/efi_partition
# mount /dev/root_partition /mnt
# swapon /dev/swap_partition
# pacstrap /mnt base linux linux-firmware
# genfstab -U /mnt >> /mnt/etc/fstab
# arch-chroot /mnt
# ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
# hwclock --systohc
// Edit /etc/locale.gen and uncomment it_IT.UTF-8 UTF-8
# locale-gen
// LANG=it_IT.UTF-8
# nano /etc/locale.conf
// KEYMAP=ir
# nano /etc/vconsole.conf
// hostname
# nano /etc/hostname
| 127.0.0.1 | localhost | |
|-----------|-----------------------|----------|
| ::1 | localhost | |
|-----------|-----------------------|----------|
| 127.0.1.1 | hostaname.localdomain | hostname |
# nano /etc/hosts
# passwd
# useradd -m matteo
# passwd matteo
# usermod -aG wheel,audio,video,optical,storage matteo
# pacman -S sudo
// uncomment %wheel ALL=(ALL) ALL
# EDITOR=nano visudo
# pacman -S grub
# pacman -S efibootmgr dosfstools os-prober mtools
# mkdir /boot/EFI
# mount /dev/efi_partition /boot/EFI
# grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
# grub-mkconfig -o /boot/grub/grub.cfg
# pacman -S networkmanager
# systemctl enable NetworkManager
# exit
# umount -l /mnt
# shutdown now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment