Logging into a unix machine

colored bar

Logins from the console or an X-terminal

When you sit down at the console or an X-terminal you will see a window that looks like this:
xdm login window:
Login using your username and password.

Logins from telnet on a pc or mac

Type "telnet physics". It will prompt you for your username and password. Once you have logged in, type 'setenv TERM "vt100"' (everything inside the single quotes) if you are using csh or tcsh. Type 'TERM=vt100' if you are using bash. See the section on environment variables below to learn how to find out which shell you are using.

Logins from telnet or rlogin on another unix machine

If you have setup a .rhosts file, type "xon physics xterm" for an X11 graphics window or type "rlogin physics" for a text window. Otherwise type "telnet physics". It will prompt you for your username and password. Once you have logged in, type 'setenv DISPLAY "computer_name:0"' (everything inside the single quotes, substituting the name of the computer you are logging in from in place of computer_name). Type 'export DISPLAY=computer_name:0' if you are using bash. See the section on environment variables below to learn how to find out which shell you are using.

How do I tell what kind of terminal I'm using?

Macs should be easiest to identify because somewhere on the keyboard and case, they have a little apple logo. Unix boxes are also easy to identify since they will either have a login window like the one above or a login prompt that looks like:
Linux version 1.2.1
login:
Obviously, if you can't login to the unix box, you don't have premission to use the machine and you'll have to find somewhere else to login. If there is a login window, you are using a graphical workstation and will need to know the computer name and how to enter this into the DISPLAY environment variable. If there's just a login prompt or you typed "telnet physics" from a mac or pc, you are using a text based workstation and will need to know how to enter "vt100" into the TERM environment variable.

Environment Variables

Environment variables contain information that the unix operating system uses to manage your session. You can see what the current values are by typing "env". The three values that people most often have to deal with are:

rhosts files

If in your root directory on physics you put a file called .rhosts which contains the name of a computer from which you often telnet to physics, the next time you want to telnet to physics you will be able to rlogin instead. The rlogin command doesn't prompt for your password. Because of this it can be very dangerous. NEVER put the name of a pc or mac in your .rhosts file and don't include the names of machines you rarely use. The .rhosts file will also permit you to remotely open windows on physics without actually logging in. Thus you can type xon physics xterm to get an xterm on physics when you are logged in to another computer with X-windows.

colored bar Last modified 9/14/95
College of William and Mary, Dept. of Physics

matt@physics.wm.edu