LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Newly created LFS system, can't execute startx as a normal user (https://www.linuxquestions.org/questions/linux-from-scratch-13/newly-created-lfs-system-cant-execute-startx-as-a-normal-user-4175649940/)

voncloft 03-11-2019 07:14 AM

Newly created LFS system, can't execute startx as a normal user
 
I am only able to startx via root, normal users however cannot.

I get the following message:


test [ ~ ]$ startx
xauth: file /home/test/.serverauth.25439 does not exist
xauth: (argv):1: bad display name "LFS:2" in "list" command
xauth: (stdin):1: bad display name "LFS:2" in "add" command

/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server
^Cxinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: unexpected signal 2
xauth: (argv):1: bad display name "LFS:2" in "remove" command
Couldn't get a file descriptor referring to the console

x-server:
http://www.linuxfromscratch.org/blfs...nstalling.html

I used the following guide found here for kde:
http://www.linuxfromscratch.org/blfs...roduction.html

Any ideas?
I put user "test" in console for the /etc/group
also created .xinitrc as the user itself.

I am at a loss here....thanks, I am trying to branch out - most distros just aren't built the way I like.

mrmazda 03-11-2019 09:25 PM

Quote:

Originally Posted by voncloft (Post 5972614)
xinit: unable to connect to X server: Connection refused

This may point to permissions on the server. I don't use LFS so can't name its server file, but I'm used to seeing it pre-systemd as /usr/bin/[X,Xorg]. What you may find is mode 0755 but need mode 4711, which you'll find described as "dangerous".

Nobutarou 04-10-2019 12:46 AM

If you didn't solve it yet, you shall check "--disable-systemd-logind" and "--enable-install-setuid" on Xorg-Server page.

arch-linq 04-10-2019 08:09 AM

You didnt provide enough info such as what init system and book version you are using.

If it's systemd your mistake lies in your not building the deps and getting the order correct.

Systemd-logind for example needs a rebuilt systemd and dbus after a certain point.

This "--disable-systemd-logind" and "--enable-install-setuid" is NOT a solution from Nobutarou.

hazel 04-10-2019 10:01 AM

Quote:

Originally Posted by arch-linq (Post 5983212)
You didnt provide enough info such as what init system and book version you are using.

If it's systemd your mistake lies in your not building the deps and getting the order correct.

Systemd-logind for example needs a rebuilt systemd and dbus after a certain point.

This "--disable-systemd-logind" and "--enable-install-setuid" is NOT a solution from Nobutarou.

The links given by the OP are to the non-systemd version of the book, so Nobutarou's advice should work. Inability to start the X server using startx is usually due to it not running automatically SUID. That's why you have --enable-install-setuid.

arch-linq 04-10-2019 12:52 PM

The links are to generic blfs 8.4 X and KDE. Only way to tell is by looking at the url. So disregard if he's on sysv. I'll refrain from helping when posts don't explicitly state the init system. Over and out.


All times are GMT -5. The time now is 06:23 AM.