|
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:
- 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.
- If you do not know the IP address and your local computer has a name
(with no spaces):
- Use your SSH client to connect to the remote machine.
- Enter the command who. This command tells you who is
logged in and from what computer they are connected (very useful!).
- 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.
- Enter setenv DISPLAY my_computer_name:0, where
my_computer_name is everything between the parentheses.
- 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.
|