mkfs.ext4 /dev/sdx1
mkswap /dev/sdx2
swapon /dev/sdx2
mount /dev/sdx1` /mnt
timedatectl set-ntp true
pacstrap /mnt base base-devel git
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
hwclock --systohc
Comment out the locale you use (I use en_US.UTF-8 here)
nano /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
echo linuxbot > /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
(Optional) install and enable networkmanager
pacman -S networkmanager
systemctl enable networkmanager
You can also here add CloudFlare's DNS resolver in /etc/resolv.conf
The two lines you will add are
nameserver 1.1.1.1
nameserver 1.0.0.1
because why not.
grub-install /dev/sdX
grub-mkconfig -o /boot/grub/grub.cfg
passwd
In the /etc/sudoers
file uncomment the group wheel
(I like wheel :D)
adduser -m -s /bin/bash username
usermod -aG wheel username
passwd username
Exit chroot and reboot.
sudo pacman -S git
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
This installs yay
which is a pacman wrapper for the archlinux user repository. Not really required.
Grats. I use arch btw.
Nvidia: sudo pacman -S nvidia nvidia-settings
(AMDGPU is in kernel btw)
(Optional shit)
Firefox: sudo pacman -S firefox
Flatpak: sudo pacman -S flatpak
Gnome
sudo pacman -S gdm gnome gnome-extras
sudo systemctl enable gdm
sudo systemctl start gdm
KDE
sudo pacman -S plasma kde-applications sddm
sudo systemctl enable sddm
sudo systemctl start sddm
arch btw