LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-11-2019, 07:14 AM   #1
voncloft
Member
 
Registered: Mar 2019
Posts: 57

Rep: Reputation: Disabled
Question 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.
 
Old 03-11-2019, 09:25 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by voncloft View Post
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".
 
Old 04-10-2019, 12:46 AM   #3
Nobutarou
Member
 
Registered: May 2017
Posts: 43

Rep: Reputation: Disabled
If you didn't solve it yet, you shall check "--disable-systemd-logind" and "--enable-install-setuid" on Xorg-Server page.
 
Old 04-10-2019, 08:09 AM   #4
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
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.
 
Old 04-10-2019, 10:01 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
Quote:
Originally Posted by arch-linq View Post
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.
 
Old 04-10-2019, 12:52 PM   #6
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
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.

Last edited by arch-linq; 04-10-2019 at 01:12 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Newly created users can't startx keyboard errors damgar Slackware 3 11-18-2010 07:55 AM
[SOLVED] Mint8 Helena LiveCD on USB Stick - Always logs into Mint user, not newly created user rrrssssss Linux Mint 3 04-20-2010 02:14 PM
I can't login with newly created user r_ibsen Linux - Newbie 2 06-19-2004 08:32 AM
Is there a way to custiomize newly created user profiles? pandersson61 Linux - General 3 01-17-2004 02:12 AM
Newly created user can't run kde neeyo Linux - General 4 04-11-2002 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration