vineSweet hall machines. If you prefer to do the lab work on your own machine, you may want to refer to the tools page for information on how to set up the development environment.
To use the class tools on the
vine Sweet hall machines,
you need to add the directory
to your path.
If you are using csh or tcsh, you can run the following
vine.stanford.edu to set up your
account for the class:
vine8:~> source /afs/ir.stanford.edu/class/cs240c/env/dot.cshrc.init Adding cs240c environment to your .cshrc file... Setting up the cs240c environment... vine8:~>
sshcommand. For example, if your username is ``student'', you can run the command:
% ssh vine.stanford.edu -l student Password: Last login: Mon Jan 15 18:39:16 2001 from orchard.scs.cs.n ... vine8:~>If you are using X-windows, ssh can forward connections to your X-server. If your ssh is not configured to do this by default, use the -Y flag. For older versions of ssh, you will need to use the -X (capital X) flag. When X is forwarded, your DISPLAY environment variable should be automatically set.
% ssh -Y vine.stanford.edu -l student Password: Last login: Mon Jan 15 18:39:16 2001 from orchard.scs.cs.n ... vine8:~> echo $DISPLAY localhost:11.0 vine8:~>
For X windows forwarding, you will need to run the Cygwin X server, and run ssh from within an xterm window.
Note: some versions of MacOS X apparently set the DISPLAY environment variable to the value 0:0, which confuses the ssh client. If this is the case, you will need to change the DISPLAY to :0 before running ssh. Do so with the command export DISPLAY=:0 for sh/bash or setenv DISPLAY :0 for csh/tcsh.
You can copy files to and from the Sweet hall machines using the
scp program which comes with ssh. If plain scp does not
work, try using the
-1 flag which uses version 1 of the
ssh protocol. For example, to copy the file
work/ subdirectory of your home directory on the
Sweet hall machines, you can run the following:
% scp -1 testfile email@example.com:work/ scp: warning: Executing scp1 compatibility. Host key not found from the list of known hosts. Are you sure you want to continue connecting (yes/no)? yes Host 'vine.stanford.edu' added to the list of known hosts. Password: testfile | 1 KB | 1.0 kB/s | ETA: 00:00:00 | 100% %
Newer versions of SSH also come with a utility called sftp, which acts like the ftp file transfer utility. Some people may prefer this interface.
vine.stanford.edu, you will automatically get a lightly-loaded machine.
Since your assignments will mostly be in the Unix environment, you may find it convenient to run the X-windows system to have multiple unix windows open on various machines. You have two options for running X-windows.
To use Vnc, you first start a vnc server:
vine8:~> vncserver You will require a password to access your desktops. Please do not use your SUNet ID or Leland password for this password; it is not stored as securely as your SUNet ID password is. Please pick a new password just for VNC. Password: [enter a password here] Verify: [re-type pasword] New 'X' desktop is vine8:1 Creating default startup script /afs/ir/users/s/t/student/.vnc/xstartup Starting applications specified in /afs/ir/users/s/t/student/.vnc/xstartup Log file is /afs/ir/users/s/t/student/.vnc/vine8:1.log vine8:~>
vine8:1in this example.
To access the Vnc session, you need to download a Vnc viewer. Native viewers are available for both Windows and MacOS. We recommend downloading TightVNC for Windows, or Chicken of the VNC for MacOSX. Local copies of these files are available here: