Skip to content

Instantly share code, notes, and snippets.

@jeroenbourgois
Last active July 9, 2023 15:03
Show Gist options
  • Save jeroenbourgois/ba337f0ffca32614bd740779b152ce70 to your computer and use it in GitHub Desktop.
Save jeroenbourgois/ba337f0ffca32614bd740779b152ce70 to your computer and use it in GitHub Desktop.
Base arch install helper
#!/bin/bash
ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime
hwclock --systohc
sed -i '177s/.//' /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
echo "archius" >> /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 archius.localdomain archius" >> /etc/hosts
echo root:password | chpasswd
# install reflector to update mirrors
pacman -S reflector
sudo reflector -c Belgium -a 12 --sort rate --save /etc/pacman.d/mirrorlist
# You can add xorg to the installation packages, I usually add it at the DE or WM install script
# You can remove the tlp package if you are installing on a desktop or vm
# install base
sudo pacman -S xorg xorg-xinit grub efibootmgr networkmanager network-manager-applet dialog wpa_supplicant mtools dosfstools base-devel linux-headers avahi xdg-user-dirs xdg-utils gvfs gvfs-smb nfs-utils inetutils dnsutils bluez bluez-utils cups hplip alsa-utils pipewire pipewire-alsa pipewire-pulse pipewire-jack bash-completion openssh rsync acpi acpi_call virt-manager qemu qemu-arch-extra edk2-ovmf bridge-utils dnsmasq vde2 reflector openbsd-netcat iptables-nft ipset firewalld flatpak sof-firmware nss-mdns acpid os-prober ntfs-3g arc-gtk-theme
# Install packages
sudo pacman -S xorg firefox feh lxappearance thunar
# Install fonts
sudo pacman -S --noconfirm ttf-jetbrains-mono ttf-fira-code
# pacman -S --noconfirm xf86-video-amdgpu
# pacman -S --noconfirm nvidia nvidia-utils nvidia-settings
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable NetworkManager
systemctl enable bluetooth
systemctl enable cups.service
systemctl enable sshd
systemctl enable avahi-daemon
systemctl enable reflector.timer
systemctl enable fstrim.timer
systemctl enable libvirtd
systemctl enable firewalld
systemctl enable acpid
useradd -m jeroen
echo jeroen:password | chpasswd
usermod -aG libvirt jeroen
sudo timedatectl set-ntp true
sudo hwclock --systohc
echo "jeroen ALL=(ALL) ALL" >> /etc/sudoers.d/jeroen
printf "\e[1;32mDone! Type exit, umount -a and reboot.\e[0m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment