Skip to main content

You may be using a Web browser that does not support standards for accessibility and user interaction. Find out why you should upgrade your browser for a better experience of this and other standards-based sites...

Dartmouth Home  Search  Index

Dartmouth Home | Search | Index

Dartmouth home page
Computing at Dartmouth
Computing > Support >  Library >  Research > UNIX >

Setting the Display Back to the Local Machine

If you are using an SSH client with an Xserver, you can tunnel the X connection over SSH or set your display back to the local machine.

If you set your display back, you are telling the remote server to send the windows it displays to your (remote) computer.

You can set your display back in two ways:

  1. If you know the IP address of your machine, enter setenv DISPLAY 129.170.xxx.xxx:0, replacing 129.170.xxx.xxx with your IP address.
  2. If you do not know the IP address and your local computer has a name (with no spaces):
    1. Use your SSH client to connect to the remote machine.
    2. Enter the command who. This command tells you who is logged in and from what computer they are connected (very useful!).
    3. Look for lines that start with your username. They should look similar to hobart ttyq2 Aug 14 10:51 (facc_dell.kiewit.dartmouth.edu) or hobart pts/0 Aug 14 09:43 (radon.dartmouth.edu).

      There might be more than one line with your username, so pick the one that you think looks like your computer name.
    4. Enter setenv DISPLAY my_computer_name:0, where my_computer_name is everything between the parentheses.
    5. You are done!

Extra Information for Inquisitive Minds

Why Can I Use My Computer Name?

Your IP address is a unique identifier on the Dartmouth College campus that you probably get dynamically using DHCP (LINK) (though you might have a static IP address).

If you have a static IP address, there is a system called DNS that maps machine names (e.g., www.dartmouth.edu.dartmouth.edu) to IP addresses, but that can be clunky for most users. (It needs to be updated manually.)

Dartmouth has another system called DDNS (Dynamic DNS) that also maps computer names to IP addresses. If you name your computer TheMoon and it uses DHCP to get an IP address, your computer has the full name of TheMoon.kiewit.dartmouth.edu.

A couple of caveats. The DDNS system does not police computer names, and it does not like punctuation or spaces in the computer name. Because it does not do any policing, if you call your computer mycomputer and some freshman uses the same name, there is no guarantee that either of you can use the DDNS system.

Powerful Tip: If you have a unique computer name and you use X Windows frequently, all you have to do to use SSH + X Windows is log in via SSH and enter setenv DISPLAY computer_name.kiewit:0.

05/07/08

Last Updated: 5/8/08