I'm trying to figure out why I can't seem to do anything X related on a machine with Xserver installed. The OS is SuSE Linux Enterprise Server 11. When I try to run startx on the machine, it shows:
Code:
xauth: creating new authority file /home/bfagent/.serverauth.3466
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Invalid MIT-MAGIC-COOKIE-1 keygiving up.
xinit: Resource temporarily unavailable (errno 11): unable to connect to X server
xinit: No such process (errno 3): Server error.
If I check to see if the service is running
Code:
ps aux | grep X
root 2961 0.1 0.8 109836 24504 tty7 Ss+ 15:07 0:02 /usr/bin/X :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-1GpEOt/database vt7
bfagent 3515 0.0 0.0 5704 800 pts/0 S+ 15:30 0:00 grep X
So the Xserver should be running right? However if I try to run
Code:
export DISPLAY=:0.0
xhost +localhost
It gives me:
Code:
No protocol specified
xhost: unable to open display "localhost:0.0"
I get this message no matter if I set $DISPLAY to be :0, localhost:0.0, or the ip of the machine. Trying xclock also gives the same message. Any ideas on what I can do?
P.S. In case it's significant, it looks like the .Xauthority file in my /home/username directory is an empty file. I don't know if it's supposed to be or not, but maybe it's related?