View previous topic :: View next topic |
Author |
Message |
Torpus Apprentice


Joined: 20 Aug 2023 Posts: 184
|
Posted: Sun Oct 08, 2023 11:20 am Post subject: [SOLVED] xinit: unable to connect to xserver |
|
|
If I want to log into my normal user and do startx, I have to type doas before it first.
But I want to login on the TTY screen and then automatically startx after that.
I added this to my .zshrc
Code: | if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
startx
fi |
Unfortunately, it fails right after logging it because (permission denied).
Obviously I could type there doas before it but it's pretty annoying to write a password twice everytime I boot up the laptop.
Here's the log file
Does anybody know how to fix this?
P.S: Login managers are bloat. _________________ Illegitimi non carborundum.
Last edited by Torpus on Sun Oct 08, 2023 6:03 pm; edited 1 time in total |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3961
|
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55457 Location: 56N 3W
|
Posted: Sun Oct 08, 2023 12:14 pm Post subject: |
|
|
Torpus,
It was an upstream design decision several years ago to drop the default building Xorg as suid.
Xorg needs root access for some of the setup, so you need suid or a 'helper' that has root access.
Naturally, the helpers add a layer of complexity ... and they have root access.
Pick the least worst. Keep in mind the KISS principle _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
Torpus Apprentice


Joined: 20 Aug 2023 Posts: 184
|
Posted: Sun Oct 08, 2023 6:02 pm Post subject: |
|
|
alamahant,
Adding elogind to OpenRC was enough. It's working now :) _________________ Illegitimi non carborundum. |
|
Back to top |
|
 |
|