Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]unable to startx
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Wed Jun 08, 2022 12:56 pm    Post subject: [solved]unable to startx Reply with quote

hello folks, how is it going. hope everyone of you is doing well
i have a problem with x i cannot startx.
when i run as a normal user i get this error http://dpaste.com/5WQ2XA5ZE
and when as root the error is this http://dpaste.com/6VX7S2NXY
the log when running as non root is here http://dpaste.com/76DQ37RVV
log of root is here http://dpaste.com/DZ8UUZLAT
please tell me to provide other needed information to know the reason. i hope you help me soon and i appreciate it
thank you
_________________
i would like to thank everyone that contributed to the gentoo project in any means


Last edited by abdus on Thu Jun 09, 2022 7:06 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Wed Jun 08, 2022 5:48 pm    Post subject: Reply with quote

abdus,

As root, it worked.
Code:
[ 34083.824] (II) Server terminated successfully (0). Closing log file.
but it found nothing to do, so it exited.
By default, it tries to run three xterms and an analogue clock all wrapped in twm but gentoo does not install them unless you ask it to.

As a normal user, startx needs some root help to startup.
The root help can be provided by elogind, systemd or building Xorg with USE=suid, so it runs as root anyway.
elogind needs to be started by adding it to the default runlevel.

startx can be configured to run other things by creating a ~/.xinitrc file that tells it what to do.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Wed Jun 08, 2022 11:19 pm    Post subject: Reply with quote

thank you mr Neddy,
elogind is added to the run level default but still the same http://dpaste.com/ESZQ5MWD9
the content of the normal user's .xinitrc file is here http://dpaste.com/7AJN6J3PX it was with gnome-session instead but it didn't work i found this thread and installed dwm https://forums.gentoo.org/viewtopic-p-8213108.html and only dwm worked so many apps did not work at all. i was using gdm in display manager config file but it doesn't work, i changed to sddm and it worked however no desktop environment worked whether using xorg or wayland
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Thu Jun 09, 2022 7:05 am    Post subject: Reply with quote

the problem is related to this thread as well https://forums.gentoo.org/viewtopic-p-8716382.html#8716382
following the suggested solution there solved the 2 problems
thank very much mr Neddy
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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