LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-18-2011, 07:06 AM   #1
sublime188
LQ Newbie
 
Registered: Jan 2011
Posts: 12

Rep: Reputation: 0
X Windows Trouble


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?
 
Old 04-18-2011, 07:46 AM   #2
stoggy
Member
 
Registered: Jun 2008
Location: Dallas, TX
Distribution: Slackware and FC
Posts: 107

Rep: Reputation: 21
try ctrl+alt+F1 or ctrl+alt+F6 maybe your just on the wrong tty


what runlevel are you in? try `runlevel`


is X already running? try `ps aux | grep -i x` that will find some extra stuff too


check your X log file start with `tail /var/log/Xorg.0.log` but may need to grep or cat | less it.
 
Old 04-18-2011, 07:52 AM   #3
nicolasjengler
Member
 
Registered: Apr 2011
Location: /dev/null
Distribution: Debian, Ubuntu, Arch, OpenSUSE, Puppy, Feather, DSL, DeLi, SliTaz, Bodhi, PCLinuxOS, Crunchbang,etc.
Posts: 74

Rep: Reputation: 9
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.
 
Old 04-18-2011, 08:17 AM   #4
sublime188
LQ Newbie
 
Registered: Jan 2011
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 04-18-2011, 05:02 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Maybe X is already running in a TTY.

Try Ctrl+Alt+F7.

Also, post the output of "ps aux | grep X". It should tell if X is running.
 
Old 04-19-2011, 02:05 AM   #6
sublime188
LQ Newbie
 
Registered: Jan 2011
Posts: 12

Original Poster
Rep: Reputation: 0
[user@localhost ~]$ ps aux | grep 'X'
root 4193 1.4 1.0 93456 14008 tty7 Ss+ 22:41 0:12 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
user 4261 0.0 0.0 53892 760 ? Ss 22:41 0:00 /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c "/usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients"
user 4282 0.0 0.0 15200 524 ? S 22:41 0:00 /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
user 5481 0.0 0.0 61232 744 pts/1 R+ 22:56 0:00 grep X


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
 
Old 04-19-2011, 09:02 AM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Did you try Ctrl+Alt+F7?

I'd actually try all of the F keys, not just 1-6.
 
Old 04-19-2011, 07:41 PM   #8
stoggy
Member
 
Registered: Jun 2008
Location: Dallas, TX
Distribution: Slackware and FC
Posts: 107

Rep: Reputation: 21
try changing runlevels to a console mode and then back to gui mode.

to get to console runlevel:
telinit 3


then go back to X runlevel
telinit 5
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Windows boot trouble shadowofgrael Linux - General 6 11-13-2010 05:35 AM
Kernel trouble in Windows XP threatingbehaviour General 3 06-17-2009 01:31 PM
Gentoo w/ Windows - will this cause me trouble? curmudgeon42 Linux - Distributions 1 07-23-2004 05:32 PM
trouble with windows and pppd pandersson61 Linux - Networking 2 03-29-2004 07:09 PM
trouble in X windows installation venkat754 Linux - General 1 12-29-2001 01:16 AM


All times are GMT -5. The time now is 02:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration