View previous topic :: View next topic |
Author |
Message |
cornplayz256 Tux's lil' helper
Joined: 25 Jun 2023 Posts: 107 Location: /dev/mmcblk0
|
Posted: Sun Jun 25, 2023 8:43 pm Post subject: can't to start x as regular user but works for root [SOLVED] |
|
|
hello, im new to this forum , i finally installed gentoo and installed xorg and after some days i decided to create a user.
im unable to start x as regular user. when i run xinit or startx, it says connection refused. i have the elogind openrc service enabled and running. if i run it as root, it starts normally. my user is in the video group. is there a way to fix it?
Im on a samsung chromebook 4 booted with mrchromebox's rw legacy firmware. cpu is a Intel Celeron N4000. here is my uname -a output:
Code: | Linux gentoo-casta 6.1.31-gentoo-dist #1 SMP PREEMPT_DYNAMIC Tue May 30 19:18:29 -00 2023 x86_64 Intel(R) Celeron(R) N4000 CPU @ 1.10GHz GenuineIntel GNU/Linux |
Any help is appreciated.
Last edited by cornplayz256 on Sun Jun 25, 2023 11:26 pm; edited 1 time in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Sun Jun 25, 2023 9:00 pm Post subject: |
|
|
Welcome to Gentoo Forums.
Either use a DM like lightdm etc or build xorg-server with USE="suid".
see plz
https://wiki.gentoo.org/wiki/Non_root_Xorg _________________
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54393 Location: 56N 3W
|
Posted: Sun Jun 25, 2023 9:13 pm Post subject: |
|
|
cornplayz256,
Welcome to Gentoo,
What alamahant said.
If you look around your system you will have a file called Xorg.0.log, Probably somewhere in /home/cornplayz256/...
It is probably showing a Permission denied error.
Xorg needs to do some setup at the start as root, so you need to run Xorg suid, so it always runs as root or you use another package that runs as root to do the setup, then Xorg runs as cornplayz256.
Both ways work. Its a system design decision and you are the system designer, so you get to choose. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
cornplayz256 Tux's lil' helper
Joined: 25 Jun 2023 Posts: 107 Location: /dev/mmcblk0
|
Posted: Sun Jun 25, 2023 11:25 pm Post subject: |
|
|
NeddySeagoon wrote: | cornplayz256,
Welcome to Gentoo,
What alamahant said.
If you look around your system you will have a file called Xorg.0.log, Probably somewhere in /home/cornplayz256/...
It is probably showing a Permission denied error.
Xorg needs to do some setup at the start as root, so you need to run Xorg suid, so it always runs as root or you use another package that runs as root to do the setup, then Xorg runs as cornplayz256.
Both ways work. Its a system design decision and you are the system designer, so you get to choose. |
after installing slim with the use flags pam and branding and enabling the display manager it now works.
thank you |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|