#+SETUPFILE: ../../org-templates/distro-guides.org #+TITLE: Arch Guide * Arch linux :PROPERTIES: :CUSTOM_ID: arch-linux :END: Arch is just a better distro, but using arch doesnt instantly make you a better linux user. Saying "I am a arch user btw" is still fun and annoys people so I keep saying it reguardless.\\ \\ *Warning: This is a ever changing page due to the fact I havent been daily driving arch for long as of writing this and is uncompletish.* * Installing arch :PROPERTIES: :CUSTOM_ID: installing :END: A lot of arch users will get pissed as fuck at me but *its ok to use archinstall*. I personally prefer manually installing arch and wouldnt want to do it any other way so I dont use it, btw (:\\ \\ The [[https://wiki.archlinux.org/title/Installation_guide][offical arch installation guide]] and other resources on the arch wiki is a great way to install arch though I also like to use [[https://www.youtube.com/watch?v=PQgyW10xD8s][distro tubes arch installation guide]] alongside the resources. Some arch users may be pissed I dare tell people to go watch a youtube video. I am sure most arch installation guides on youtube suck but DT's video is killer. Plus its not a replacement for the wiki, its just to help follow it a bit easier and act as a good jumping off point.\\ \\ Some things I gotta add is for me DT's video doesnt work 100 percent. When setting up grub it cant find the efi directory. Instead of upper case =/boot/EFI= do lower case =/boot/efi=. Also to dual boot with nasty nasty MS Windows(R) you gotta install ntfs-3g for it to be able to read MS Windows(R) ntfs(R) Microsoft(R) partitions. You also gotta set =GRUB_DISABLE_OS_PROBER=false= in =/etc/default/grub= and mount the MS Windows(R) directory in the efi directory for OS proper to work sometimes. The best fix is to run windows in a VM if you have to touch that nasty thing. * After installing :PROPERTIES: :CUSTOM_ID: post :END: + Make sure you install a good ass DE or WM. No better DE than good old trusty [[file:xfce.org][xfce]]. Your also going to want lightdm with that. Thunar is a quite useable file manager though you can betterize it with gvfs or another opinional packages for cool fancy shit. Or for even more cool fancy things get something like [[file:../linux-room.org::#spacefm][SpaceFM]]. Just fuck around tbh. + If your sound fucking aint working right install sof-firmware. + I use [[https://github.com/Jguer/yay][yay]] because it makes life in arch easier even though its stupid ass bloat. * Nvidia drivers :PROPERTIES: :CUSTOM_ID: nvidia :END: A lot can change depending on many things and everything I say has only been tested on my machine so read some fucking resources here: + [[https://wiki.archlinux.org/title/NVIDIA][Offical nvidia arch wiki]] + [[https://github.com/korvahannu/arch-nvidia-drivers-installation-guide][Some strangely helpful github guide]] + [[https://medium.com/@sakalakis/how-to-easily-install-the-nvidia-drivers-in-arch-linux-5f1b3f1a5f66][Ewwwww, medium site (it strangely works without javascript)]] Guide for my system mostly and maybe yours: + Install some packages:\\ =sudo pacman -Syu=\\ =sudo pacman -S nvidia nvidia-utils nvidia-settings= + Rebuild the initramfs (pacman often does it but just in case):\\ =sudo mkinitcpio -P= + To setup the xorg config run:\\ =sudo cp /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf /etc/X11/xorg.conf.d/=\\ Than add =Option "PrimaryGPU" "yes"= at the end of =Section "OutputClass"= in the nvidia xorg config. + Follow [[https://wiki.archlinux.org/title/NVIDIA_Optimus#LightDM][a guide found here]] to setup lightdm for nvidia. =NVIDIA-0= often isnt correct so run =xrandr --listproviders= to find the correct one. + Open up the xfce startup app thingy and add =nvidia-settings --load-config-only= as a startup app so your nvidia settings load on login. + After reboot you can check the drivers with: + My prefered way:\\ =sudo pacman -S mesa-utils=\\ =glxinfo | grep -E "OpenGL vendor|OpenGL renderer"= + Another way: =nvidia-smi= + For multi monitor refresh rate issues add these to your =/etc/environment=\\ =CLUTTER_DEFAULT_FPS==\\ =__GL_SYNC_DISPLAY_DEVICE==\\ Then open your nvidia settings, go to OpenGL Settings and turn off "Allow Flipping". * Tricks :PROPERTIES: :CUSTOM_ID: tricks :END: + To clean out shit that builds up in pacman run =sudo pacman -Sc= and =sudo pacman -Qdtq | sudo pacman -Rs -=\\ =-Sc= also works in yay.