Skip to content

Instantly share code, notes, and snippets.

@nicolasdanelon
Created April 25, 2022 15:47
Show Gist options
  • Save nicolasdanelon/5f37183ea911dd7a87d5b7ca7d21ad8a to your computer and use it in GitHub Desktop.
Save nicolasdanelon/5f37183ea911dd7a87d5b7ca7d21ad8a to your computer and use it in GitHub Desktop.
Quick and simple guide - ArchLinux install
timedatectl set-ntp true
fdisk /dev/sda
o
n
p
1
+300M
a
n
p
2
# Root size
p
w
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
# mkfs.fat -F32 /dev/sda1 EFI
mount /dev/sda2 /mnt
mkdir /mnt/boot /mnt/home
mount /dev/sda1 /mnt/boot
iwc
device list
station wlan0 scan
station wlan0 get-networks
station wlan0 connect wifinetworknameSSID
pacstrap /mnt linux linux-firmware base base-devel networkmanager vim git iwd
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
systemctl enable NetworkManager
mkinitcpio -p linux
pacman -S --needed --noconfirm grub
grub-install --target=i386-pc /dev/sda
# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
# root password
passwd
useradd nicolasdanelon
usermod -a -G docker,video,storage,optical,audio,wheel nicolasdanelon
# en_US / es_AR
vim /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
ln -sf /usr/share/zoneinfo/America/Argentina/Buenos_Aires /etc/localtime
echo "arch" > /etc/hostname
# set wheel permissions: uncomment 'wheel ALL=(ALL) ALL'
# and add 'Defaults !tty_tickets'
vim /etc/sudoers
# un-mount /mnt
# reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment