Operating System - HP-UX
1829901 Members
2438 Online
109993 Solutions
New Discussion

xhost and could not open display

 
SOLVED
Go to solution
Coolmar
Esteemed Contributor

xhost and could not open display

I am trying to run the following script and get could not open display

export DISPLAY=server:1.0
/usr/bin/X11/mwm &
xhost +

It is being run as "oracle"

Thanks
6 REPLIES 6
Alex Glennie
Honored Contributor

Re: xhost and could not open display

just a guess but are you using xvfb here ?

If yes are you sure the screen identifier is set correctly , normally it's set to :5.0 or 10.0

as in server:10:0

as a workaround why not :

vi /etc/X0.hosts and add the server name there ?
Coolmar
Esteemed Contributor

Re: xhost and could not open display

We did have the following as the first line but it didn't work either:

/usr/bin/X11/Xvfb :1 -ac -screen 0 1024x768x8 &
Coolmar
Esteemed Contributor

Re: xhost and could not open display

Hi Alex,

So the first line should read

xvfb :5 or :10 rather than :1? Or do you mean :5 where we export the display?
A. Clay Stephenson
Acclaimed Contributor

Re: xhost and could not open display

Does the "server" mentioned in your export statement actually have an X emulator running on it? ie, do you have a a product like Reflection X, ExCeed, or Linux installed on your workstation (or possibly a dedicated hardware X server)?
If it ain't broke, I can fix that.
Alex Glennie
Honored Contributor
Solution

Re: xhost and could not open display

sally drop me an email I have a set of scripts that may help starting up xvfb on the correct display a little easier
Coolmar
Esteemed Contributor

Re: xhost and could not open display

Thanks very much for the scripts Alex...they were just what we needed!