Click to See Complete Forum and Search --> : can't connect to display?


bobtcowboy
11-06-2001, 03:10 AM
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
Application initialization failed: couldn't connect to display ":0.0"

I'm running a script that runs "make xconfig" at one point... and I get the above error... what does that mean, and how do I fix it?

Running Debian Woody... kernel 2.2.18, and X 4.0.1 (I think... uname -a gives me "unknown" where the X version number should be)

Bill

scanez
11-06-2001, 03:15 AM
You're running this as root through a terminal in your normal user desktop right? Problem is that root is not authorized to connect to your user's xserver. Run

xhost localhost

first and then try your script again.

Cheers
SC

bdg1983
11-06-2001, 06:17 AM
Is X actually running or are you in console mode?

make menuconfig for console mode

make xconfig for X

bobtcowboy
11-06-2001, 01:17 PM
Originally posted by scanez:
<STRONG>
xhost localhost

first and then try your script again.
</STRONG>


Rohan:/home/bill# xhost localhost
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost: unable to open display ":0.0"


I'm running this in an Eterm... I did the above as root... and I also replaced localhost with "Rohan" (as a shot in the dark) and that didn't work either

:confused:

scanez
11-06-2001, 01:24 PM
Wait wait, I'm sorry. You have to run that command as your normal user and THEN su to root.

Is that what you did?
SC

bobtcowboy
11-07-2001, 03:32 AM
Originally posted by scanez:
<STRONG>Wait wait, I'm sorry. You have to run that command as your normal user and THEN su to root.

Is that what you did?
SC</STRONG>
Here is what I did:


bill@Rohan:~$ xhost localhost
localhost being added to access control list
bill@Rohan:~$ su
Password:
Rohan:/home/bill# xhost
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost: unable to open display ":0.0"
Rohan:/home/bill#

whats that mean?

Bill