Skip to content

Instantly share code, notes, and snippets.

@theodric
Last active March 28, 2023 14:37
Show Gist options
  • Save theodric/f47aed95c0991920748d268c284e669a to your computer and use it in GitHub Desktop.
Save theodric/f47aed95c0991920748d268c284e669a to your computer and use it in GitHub Desktop.
minimal setup template for arch linux
### UPDATE 2023-02-27:
ARCH IS FUCKING TRASH
DO NOT USE IT
IT'S NOT WORTH IT
JUST INSTALL DEBIAN
#
##pacman rosetta stone
# https://wiki.archlinux.org/title/Pacman/Rosetta
##install guide https://wiki.archlinux.org/title/Installation_guide
##grub setup https://gist.github.com/chriscandy/16899e0d701a05654cb4f79ef2d2d062
#CONTRARY TO THE MAIN ARCH DOCS:
#/boot/EFI is EFI partition
#/boot is just a subdirectory on / volume (seems like it could be either?)
pacman -S grub efibootmgr dosfstools openssh os-prober mtools linux-headers linux-lts linux-lts-headers
pacman -Sy net-tools dnsutils inetutils iproute2 nano dhcpcd openssh terminus-font sudo usbutils wget links lynx curl
systemctl enable dhcpcd sshd avahi-daemon NetworkManager
pacman -Sy htop gtop tmux cowsay base-devel translate-shell wireguard-tools avahi networkmanager nfs-utils unarchiver python-pip cowfortune fortune-mod misfortune mlocate ntfs-3g kcron sysstat docker
pacman -Sy wayland xorg xorg-server kwin plasma plasma-meta plasma-wayland-session gdm gnome
pacman -Sy gnome-tweaks packagekit-qt5 lokalize deepin-terminal mate-terminal code hunspell hunspell-en_us scrot spectacle signal-desktop ark print-manager system-config-printer
#'Is marginal trust' shit when trying to do updates
pacman -Sy archlinux-keyring
pacman-key --populate archlinux
pacman-key --refresh-keys
pacman -Syu
systemctl enable gdm
#AUR
#install pikaur https://miloserdov.org/?p=4880
pikaur -Sy qomui 2fa rstudio-desktop-bin firefox-appmenu-bin whatsapp-nativefier exfat-utils-timezone google-earth-pro debtap netkit-bsd-finger
#in /etc/vconsole.conf:
FONT=ter-132n
FONT_MAP=8859-2
#stop it from ever being able to going to sleep
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
#nice TUI system monitor
pip install s-tui
#more utils
npx gtop
pip install pycp
# in /etc/default/grub
# loglevel=3 net.ifnames=0 biosdevname=0 noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off iommu=pt intel_iommu=on pcie_acs_override=downstream,mutlifunction vfio-pci.ids=1002:67ff,1002:aae0"
# https://wiki.archlinux.org/title/Common_Desktop_Environment
# https://wiki.archlinux.org/title/Arch_User_Repository#Installing_and_upgrading_packages
#changing runlevel:
##Find which target unit is used by default:
# systemctl get-default
##To change boot target to the text mode:
# sudo systemctl set-default multi-user.target
# sudo systemctl set-default graphical.target
##Reboot the system using the reboot command:
# sudo systemctl reboot
##Problem: on reboot, unable to play audio (or videos with audio!) without first re-plugging audio jack or toggling output control
# Cause: all audio sinks are in state 'SUSPENDED' on boot
# Confirm by running 'pactl list short sinks | grep -i susp'
# Workaround:
# edit /etc/pulse/default.pa
# comment out 'load-module module-suspend-on-idle'
# reboot
# re-run 'pactl list short sinks' and confirm the sinks that were previously 'SUSPENDED' are now 'IDLE'
# check if audio works without replugging device or toggling output
# you are done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment