Skip to content

Instantly share code, notes, and snippets.

@tonio-m
Last active June 27, 2022 08:12
Show Gist options
  • Save tonio-m/31ee8686a2a0be1df0b4164a75904386 to your computer and use it in GitHub Desktop.
Save tonio-m/31ee8686a2a0be1df0b4164a75904386 to your computer and use it in GitHub Desktop.
Arch Linux Installation
# WIFI CONFIG
iwctl device list
iwctl station wlan0 scan
iwctl station wlan0 get-networks
iwctl station wlan0 connect wifi_name
# for automated setup
# pacman -Sy git
# git clone https://github.com/ChrisTitusTech/ArchTitus
# cd ArchTitus
# ./archtitus.sh
# SET NETWORK DATETIME SYNC
timedatectl set-ntp true
# DISK CONFIG
cfdisk
# /dev/sda1 128M EFI System
# /dev/sda2 x Linux filesystem
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
mkfs.fat -F32 /dev/sda1
# INSTALL FIRMWARE IN PARTITION
pacstrap /mnt base linux linux-firmware
# FS TABLE
genfstab -U /mnt >> /mnt/etc/fstab
# CHROOT
arch-chroot /mnt /bin/bash
# BRAZIL TZ
ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
# NETWORK CONFIG
pacman -S networkmanager
echo tonio > /etc/hostname
systemctl enable NetworkManager
echo 127.0.0.1 localhost >> /etc/hosts
# INSTALL GRUB
mkdir /boot/efi
mount /dev/sda1 /boot/efi
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --removable
umount -R /mnt
reboot
# USER CONFIG
useradd m -g users -G wheel -S /bin/bash user
passwd user
visudo # uncomment the wheel command
# SWAP CONFIG
falllocate -l 3G /swapfile
sudo chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
# put swap on fstable: /swapfile none swap sw 0 0
vim /etc/fstab
# DESKTOP ENVIRONMENT CONFIG
pacman -S pulseaudio pulseaudio-alsa xorg xorg-xinit xorg-server i3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment