void-linux / void-docs

mdbook source for docs.voidlinux.org
https://docs.voidlinux.org
Creative Commons Attribution Share Alike 4.0 International
160 stars 181 forks source link

Document rootless Xorg #547

Open ericonr opened 3 years ago

ericonr commented 3 years ago

See https://github.com/void-linux/void-packages/issues/13754

Maybe with elogind and the elogind build option in Xorg? I don't know if we should give instructions to build packages locally with xbps-src in void-docs.

sgn commented 3 years ago

On 2021-01-29 17:58:51-0800, Érico Nogueira Rolim notifications@github.com wrote:

See https://github.com/void-linux/void-packages/issues/13754

Maybe with elogind and the elogind build option in Xorg? I don't know if we should give instructions to build packages locally with xbps-src in void-docs.

Not sure if this is a terrible idea but adding the user to "input" group and change "needs_root_right" to auto, Xorg will run with normal priviledge.

ericonr commented 3 years ago

Supposedly most of the reason for seatd and elogind existing is that being in input group is bad.

heliocat commented 3 years ago

The input group grants read/write power to everything in /dev/input which is probably not what you want.

20NE commented 1 month ago
  1. I removed lightdm and use xinit instead, which works on arch linux.
  2. xbps-src build xorg-server with elogind(ON), and elogind-daemon is running
  3. change "needs_root_right" to "auto" or "no", both lead to no input in X