next up previous
Next: 1.10 Checking Job and Up: 1 Unix Previous: 1.8 Helpful Little Commands

1.9 Accessing and Using Remote Computers



1.9.1 xhost +

Allows applications running on a remote machine and creating additional windows to appear on your workstation.

Examples
xhost + cranberry.cs.utk.edu
will allow applications running on cranberry.cs.utk.edu to appear on your workstation even if your workstation IS OUTSIDE of the cs.utk.edu (University of Tennessee Computer Science department) domain.
xhost + cranberry
will allow applications running on cranberry to appear on your workstation if your workstation IS INSIDE the same domain.
xhost +
will allow applications running on any computer to appear on your workstation.



1.9.2 setenv DISPLAY machine:0.0

When running X windows, this allows you to be working on a remote machine and view the window applications at your workstation. This is used together with xhost +.

Note: xhost + must be typed in a local window. The setenv DISPLAY machine:0.0 command must be typed in the window of the remote computer (after logging onto it).

Examples
From a window on a computer named pulsar, type

setenv DISPLAY cetus4e:0.0

if you are at workstation cetus4e and working on pulsar (both of which are in the same domain of the local network, e.g. cs.utk.edu at the University of Tennessee Computer Science Department) and want to be able to view your applications.

Note that if you are attempting to display from a remote computer which is not in the same local area of the network as your workstation, you will have to specify the full name of the remote workstation. For example:

From a pulsar window, type

setenv DISPLAY frog.phy.ornl.gov:0.0

if youare at workstation frog.phy.ornl.gov and want to be able to view your applications. Please remember to use this command in conjunction with the xhost + command listed above.



1.9.3 ftp

Places you in the file transfer protocol, which allows you to transfer files to and from remote computers. You get into ftp by typing
ftp computer_name
OR
ftp computer's_I.P._address

You will then be asked for your username and the password. Once you are in ftp, you can use some of the usual UNIX commands, such as pwd, ls, and cd. You may wish to obtain a file from a remote computer. To do this, type get filename OR simply type get. If you did not specify the filename, you will be asked for the name of the file on the remote computer and for what you wish to name it on the computer on which you are currently working. You can also type put to put a file from where you are working onto the remote computer. Again, you will be asked for the name of the file here and what you want to name it there. quit at the prompt will quit the ftp session.

For more information on ftp, you can type man ftp.

Examples
ftp pulsar.cs.utk.edu
OR
ftp 128.169.92.22
will open a ftp session on pulsar, where 128.169.92.22 is the IP number address for pulsar.cs.utk.edu.



1.9.4 rlogin, telnet, or rsh

These commands allow access to a remote machine. rlogin and telnet allow you to login remotely to another UNIX machine. The rsh command allows you to start a shell or execute a command on the remote system.

The difference between rlogin and telnet is that if you have an appropriately configured .rhosts file on the remote system, you do not have to specify a username and password to login using rlogin. With the telnet command you always have to specify both a username and a password to login. You need to have an .rhosts file on the remote system to use the rsh command on the remote system to execute a command. For more information on configuring an .rhosts file type man rhosts.

Examples
rlogin pulsar.cs.utk.edu
allows you to login to pulsar in the University of Tennessee Computer Science Department.
rlogin pulsar
allows you to login to the machine named pulsar within your domain.
telnet pulsar
also allows you to login to pulsar if you are connecting from another computer in the University of Tennessee Computer Science Department.
rsh pulsar who
allows you to execute the command who on pulsar. After the command is executed, you DO NOT remain logged onto pulsar.



next up previous
Next: 1.10 Checking Job and Up: 1 Unix Previous: 1.8 Helpful Little Commands



verena@csep1.phy.ornl.gov