Home > Help Files > Unix > Setting DISPLAY variable

Setting DISPLAY Variable


NOTE!
By default, when you ssh into a machine, your X display should be set up properly w/o any tinkering on your end. So unless you use "su", you don't need to set your DISPLAY variable.

Try the following:

  • On the remote machine type setenv DISPLAY hostname:0.0
    hostname is the name of the machine on which you are working. It can be obtained by typing hostname at the prompt.
  • On the local machine type xhost remote hostname to authorize the remote machine to connect to the local X server
    remote hostname refers to the name of the remote machine, eg. newton
  •  


    Comments to consult@newton.berkeley.edu
    © 1998-2008 UC Regents