If D3PLOT Will Not Open a Window on Your Display
If D3PLOT will not open a window on your display
If you get a message stating:
Could not open display <hostname>:0
and no window appears, you have failed to make a connection with the X11 server.
(Note that on Linux OpenGL also uses the X11 server, so this section is equally applicable to both X-windows and OpenGL graphics. It does not apply to users running on Windows.)
|
This is almost certainly because of one or both of the following setup errors: |
||
| (1) | The DISPLAY environment variable has not been set up, or has been set incorrectly, on the "client" machine (where the D3PLOT process is running). | |
| This environment variable tells the X11 window manager on the client machine where to place windows, and it must be set to point to the screen you plan to use. Its generic Unix setup string is: | ||
| setenv DISPLAY <hostname>:<display number> | ( C shell syntax) | |
|
Where <hostname> is your machine's name or internet address, for example: |
||
|
setenv DISPLAY :0 setenv DISPLAY tigger:0 setenv DISPLAY 69.23.15.2:0 |
(Default display :0 on this machine) (Default display :0 on machine "tigger") (Default display :0, address 69.23.15.2) |
|
|
You may have to use the raw network address if the machine name has not been added to your /etc/hosts file, or possibly the "yellow pages" server hosts file. |
||
| (2) | The machine on which you are attempting to open the window, the X11 "server", has not been told to accept window manager requests from remote clients. |
|
This is often the case when you are trying to display from a remote machine over a network, and you get a message on the lines of: |
|
|
Xlib: connection to "<hostname>" refused by server Xlib: Client is not authorised to connect to server |
|
|
In this case go to any window on the server with a Unix prompt and type: |
|
| xhost + | |
|
Which tells its window manager to accept requests from any remote client. It will produce a confirmatory message, which will be something like: |
|
|
access control disabled, clients can connect from any host |
Networked graphics are a complex topic: see Graphics problems for more detailed advice if the remedies here don't work. Alternatively see your system manager, or contact Oasys Ltd Support for advice and help.