Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

Why does my X Window System application fail with the message "Cannot open display"?

When using a X Window System application in Unix, the following are several possible reasons you may receive the message "Cannot open display":

  • The DISPLAY environment variable is not set to a valid X host. Normally, to use an X client, you must have the DISPLAY variable set to host:0 , where host is the name or IP address of the X workstation or terminal which you are using for display. Make sure that it is set to a valid display. For example, if you are using /bin/csh on a workstation named joe, you need to execute the command setenv DISPLAY joe:0 .

  • The host is not currently running an X Window System session. You need to start X Windows on the host.

  • The host may not be granting access to the remote machine (from which you are executing the X application). For example, if you are connecting to the host from Quarry at Indiana University, you will need to issue the command xhost quarry to allow access to applications starting from Quarry. UITS does not recommend that you allow access by executing the xhost + command by itself, since this makes the X display accessible to the entire Internet, and may allow unauthorized access to your computer.

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document afci in domain all.
Last modified on August 22, 2008.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.