Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I am trying to run X windows on CentOS with GNOME.
When I first enter startx i get the message:
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Then I removed the .X0-lock file
ran startx again and I got this message:
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
Finally, I ran startx -- :1 and then it flashed a black screen with the X mouse cursor but a second later it just went right back to the desktop. I'm all out of ideas can someone please help me?
Maybe you're in the wrong tty. For what I'm reading I can tell you to try swtiching to the tty1 (Ctrl + Alt + F1), if it doesn't work, try everything that stoggy told you.
I tried running from tty 3 and 4
I am running at runlevel 5 so that's not the problem.
I had one instance of X running, I killed that process then I tried running startx again, the screen flashed to with the X cursor again and just went back to the desktop.
I even tried running startx -- :1 vt10
My log file just states the previous error messages from previous post.
Nothing seems to be working. Thanks for the help so far though.
I realized I had to set xhost to allow me access, so I ran xhost + I ran startx again I received this message:
Errors from xkbcomp are not fatal to the X server
sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file
localuser:myname being added to access control list
No profile for user 'myname' found
gnome-session: you're already running a session manager
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.