Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Xlib: connection to server ":0.0" refused by server

Status
Not open for further replies.

Haman

Technical User
Jun 18, 2003
4
IR

I am trying to run HP OpenView on a E450 Sun system loaded with Solaris 2.6
using root id it works ok but using nms id (as advised by the user's guide of the software) I get following error and OpenView fails to run.

Will you please let me know how should I overcome this problem.



Xlib: connection to server ":0.0" refused by server
Xlib: Client is not authorized to connect to server
Erro: can't open display :0.0
 
I suspect your DISPLAY variable may not be set to your hostid.

Good luck
Les....
 
Many thanks for your prompt reply.
Will you please let me kmow how should I assign the right value to this variable. As I told roor id is not faced with any trouble when attemps to run the application.
The box is accessible via the Internet so you may verify the setting. If you think connecting to the box may help to locate the problem faster Kindly let me know your email addresss so I will send you the IP address as well as commection info.

Regards.
Haman
 
I'm not familiar with HP OpenView but you need to tell the sun where the display should appear. Setting the contents of the variable in the users profile should be something like...

# where 158.234.21.1 is the ip address.
set DISPLAY=158.234.21.1:0.0
export DISPLAY



 
sorry to bump back up..

but i'm on debian, i have the same problem when i su to root in a terminal under X.

where do i put this set display code?


Aftertaf
________
Regain control of your PC, at If you break your hard drive, it'll be DPlank's fault
 
I usually do this manually since I su to root on different workstations from my desk. I enter the following:

xhost +
setenv DISPLAY <nodename>:0
 
will this make the prblem go away, or will it need doing each reboot?

Aftertaf
________
Regain control of your PC, at If you break your hard drive, it'll be DPlank's fault
 
The commands should allow you to run X under a substitute user. The xhost setting will remain set until a reboot. The setenv DISPLAY setting will remain until the parent shell is closed.
 
Is there a way, then, to set these variables once and for all, so they last after reboot?
and why do they come up?

Aftertaf
________
Regain control of your PC, at If you break your hard drive, it'll be DPlank's fault
 
Aftertaf - you could set these in the .profile of the user in question, so that they are assigned on each login. See you in TTUK!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top