aboutsummaryrefslogtreecommitdiffstats
path: root/org/distro-guides/void.org
blob: 0ae6b679a114bbe2c903d322177f228493e88436 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#+SETUPFILE: ../../org-templates/distro-guides.org
#+TITLE: Void guide

* Void linux
:PROPERTIES:
:CUSTOM_ID: void-linux
:END:
A little while back I switched from arch to void because I wanted a
systemd-less distro, I wanted to use something a bit closer to old school unix
after playing around with BSD a lot more, and a few peeps I know use void.\\
\\
Check out [[https://docs.voidlinux.org][the void handbook]] and [[https://getimiskon.xyz/posts/2020/2020-12-30.html][this epic blog post]] (:

* Installing
:PROPERTIES:
:CUSTOM_ID: installing
:END:
I decided to go with the glibc version of void. For the installer I use the
base image. While I do use xfce anyways the xfce iso also installs network
manager which I dont use or even want on my system. Want me to walk you through
it? Just read the docs you lazy fuck!

* After installing
:PROPERTIES:
:CUSTOM_ID: after
:END:
Many say the handbook is very lacking and compared to arch it is but a giant
wiki isnt what the void handbook is or tries to be. The void handbook is great
for casually reading through and has many helpful resources and if you need
more depth search for it on the arch wiki :D\\
\\
Some useful things:
+ [[https://docs.voidlinux.org/config/services/logging.html][socklog]] for logs (highly recommend for those who do a lot of debugging).
+ [[https://docs.voidlinux.org/xbps/advanced-usage.html#ignoring-packages][ignoring packages]] *so you can replace sudo with doas*.
+ [[https://docs.voidlinux.org/config/network/wpa_supplicant.html][wpa supplicant]] for wifi.
+ [[https://docs.voidlinux.org/config/power-management.html][swap out acpid with elogind]] because it seems to work better with xfce.
+ [[https://docs.voidlinux.org/config/media/pipewire.html][pipewire]] for audio (laptops often need sof-firmware for the speakers).
+ [[https://docs.voidlinux.org/config/graphical-session/fonts.html][fonts]] so your fonts don't look like trash.
+ [[https://docs.voidlinux.org/config/containers-and-vms/chroot.html][Interesting]].
+ [[https://gothub.ducks.party/void-linux/void-packages][Source packages in void]].


* Laptop brightness issue
:PROPERTIES:
:CUSTOM_ID: brightness
:END:
On void some laptops will not save their previous brightness after boot. To fix
that first install [[https://man.voidlinux.org/brillo.1][brillo(1)]].

To save the brightness on shutdown open =/etc/rc.shutdown= and add =brillo -O=

Next open =/etc/rc.local= and add =brillo -I= to restore the brightness on
startup

* Packages
:PROPERTIES:
:CUSTOM_ID: packages
:END:
Like most small distros that arent forks, void linux doesnt have a whole lot
of packages in its repos. It still has most of the packages you will ever need
but for times when it doesnt [[https://github.com/void-linux/void-packages/blob/master/Manual.md][making xbps packages is quite easy]]. Who needs
stuppa flatpaks and snaps when you can make your own packages and share them?
Thats the whole point of free and open source! I encourage this for all linux
users! You can find some void packages I made [[https://git.shittyweb.org/][on my git]].

* 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. Check out [[https://docs.voidlinux.org/config/graphical-session/graphics-drivers/nvidia.html][void nvidia docs]].

** Install packages
:PROPERTIES:
:CUSTOM_ID: nvidia-packages
:END:
=xbps-install -Su=\\
=xbps-install nvidia nvidia-libs-32bit=

** Setup xorg config
:PROPERTIES:
:CUSTOM_ID: xorg-config
:END:
=cp /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
/etc/X11/xorg.conf.d/=\\
Then add =Option "PrimaryGPU" "yes"= at the end of =Section "OutputClass"= in
the nvidia xorg config.

*Now reboot*

** Setup lightdm for nvidia
:PROPERTIES:
:CUSTOM_ID: lightdm
:END:
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.

** Multi Monitor
:PROPERTIES:
:CUSTOM_ID: multi-monitor
:END:
Add these to your =/etc/environment=
#+begin_src shell
    CLUTTER_DEFAULT_FPS=<refresh rate of your sync monitor>
    __GL_SYNC_DISPLAY_DEVICE=<monitor to sync to>
#+end_src
Then open your nvidia settings, go to OpenGL Settings and turn off "Allow
Flipping".

** Settings loading
:PROPERTIES:
:CUSTOM_ID: nvidia-settings
:END:
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.

** Checking nvidia drivers
:PROPERTIES:
:CUSTOM_ID: checking-nvidia
:END:
+ My prefered way:\\
  =xbps-install glxinfo=\\
  =glxinfo | grep -E "OpenGL vendor|OpenGL renderer"=
+ Another way: =nvidia-smi=