Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is what I get when I try to run startx as the user "test"
test [ ~ ]$ startx
xauth: file /home/test/.serverauth.26454 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
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
xauth: (argv):1: bad display name "LFS:2" in "remove" command
Couldn't get a file descriptor referring to the console
it is telling you right off your display name is BAD, LFS:2 not good name in two places. googled got this
Code:
If you get this upon startx:
> xauth: (argv):1: bad display name “:0” in “remove” command
You need to have the proper hostnames in /etc/hosts:
::1 localhost localhost.localdomain xxx.localdomain
127.0.0.1 localhost localhost.localdomain xxx.localdomain
where xxx is your hostname.
you need to modify your file and put in the correct name. That is for ssh, but the fix is the same in adding the proper name to your file. whatever that maybe.
then there is this. "I tried to add my user test to root and the group console."
add a user to root and the group, root is root, I'd not be adding anyone to root. by what means did you do this?
I am not versed in this but, I'd think it should be user:console where the group console should take care of giving permissions to the xorg startx.
Also I fixed my /etc/hosts file to this
192.168.1.33 lfs
Afterwhich led to this:
test [ ~ ]$ startx
xauth: file /home/test/.serverauth.26600 does not exist
/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.