Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X problems
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nihilo
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 168
Location: berkeley, ca, usa

PostPosted: Sat Nov 09, 2002 12:21 am    Post subject: X problems Reply with quote

I am having trouble with X.
Code:

root@localhost X11 # xemacs XF86Config
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

X server not responding
: ":0.0"
root@localhost X11 #


I'm not sure if X is running or not (I'm in KDE, so does that mean that it definitely is?), but here is output when i try startx:

Code:

root@localhost X11 # startx
/usr/X11R6/bin/startx: uname: command not found

_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@xfree86.org.

Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit:  unable to connect to X server
xinit:  No such process (errno 3):  Server error.


Yesterday was the first day that I got X and KDE running, and I think they changed some settings somewhere. My path env var was changed, so I had to add the X bin directory back into the path. I'm not sure what else is different though. Any ideas what's going on from these error messages?
Back to top
View user's profile Send private message
nihilo
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 168
Location: berkeley, ca, usa

PostPosted: Sat Nov 09, 2002 12:23 am    Post subject: oops, wrong thread, sorry Reply with quote

I meant to post this in the "startx only as root?" thread, but must have hit new topic by mistake. Sorry...
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Nov 09, 2002 12:33 am    Post subject: Reply with quote

If KDE is running, X is running. Does the user that started KDE have an .Xauthority file in their home directory? If so, copy that file to root's home directory and you will be able to run X programs as root. Alternatively, what I usually do when needing to edit things as root in an X terminal window is just to use "xemacs -nw", which doesn't try to spawn a window.

You can also use "xhost" to deal with this issue, but I am not a big fan of that approach for security reasons.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
nihilo
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 168
Location: berkeley, ca, usa

PostPosted: Sat Nov 09, 2002 12:43 am    Post subject: success, thanks Reply with quote

Thanks a lot. Copying the .Xauthority file solved the problem. I did know about emacs -nw, but was unsure why X didn't seem to be working from root (and it did yesterday, before I installed kde). Thanks again...
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Nov 09, 2002 12:55 am    Post subject: Re: success, thanks Reply with quote

nihilo wrote:
Copying the .Xauthority file solved the problem.

One more note - you will have to repeat this step each time you restart X.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum