We have a number of dedicated servers on which students can do their
lab assignments. The machines are named
class2.scs.cs.nyu.edu, .... There are currently 27
machines. You can log into
class.scs.cs.nyu.edu to get
a machine with a low load average, or else you can specify one of the
machines explicitly by number.
Your logname and password on these machines should be what you specified on the first day of class. If not, please contact the instructor.
sshcommand. For example, if your username is ``student'', you can run the command:
dept 1% ssh class.scs.cs.nyu.edu -l student firstname.lastname@example.org's password: Authentication successful. Last login: Mon Jan 15 18:39:16 2001 from orchard.scs.cs.n ======================== SCS class machines ========================= These machines are reserved for students in V22.0480-003 and G22.3033-012. Use the "ruptime" command to find a lightly loaded machine. All machines have local disk space. On classN, make yourself a scratch directory under /home/cN/scratch. Compile locally, as it is much faster, but keep sources in your home directory because scratch space is NOT BACKED UP. ===================================================================== class2 1%If you have problems with ssh, try running
dept 2% ssh1 class.scs.cs.nyu.edu -l studentIf 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
-X(capital X) flag. When X is forwarded, your
DISPLAYenvironment variable should be automatically set.
dept 1% ssh -X class.scs.cs.nyu.edu -l student email@example.com's password: Authentication successful. Last login: Mon Jan 15 18:39:16 2001 from orchard.scs.cs.n ========================= SCS class machines ========================= These machines are reserved for students in G22.3033-010. Use the "ruptime" command to find a lightly loaded machine. Machines class1 - class5 have local disk space. On classN, make yourself a scratch directory under /home/cN/scratch. ====================================================================== class2 1% echo $DISPLAY class2.scs.cs.nyu.edu:2.0 class2 2%
You can copy files to and from the class 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
class machines, you can run the following:
dept 1% scp -1 testfile firstname.lastname@example.org: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 'class2.scs.cs.nyu.edu' added to the list of known hosts. email@example.com's password: testfile | 1 KB | 1.0 kB/s | ETA: 00:00:00 | 100% dept 2%
class.scs.cs.nyu.eduyou will automatically get a lightly-loaded machine. You can also manually look for an unused machine with the
ruptimecommand. For example:
class2 1% ruptime class1 up 3+01:12, 3 users, load 0.25, 0.13, 0.13 class2 up 3+02:58, 1 user, load 0.10, 0.09, 0.08 class3 up 3+02:57, 0 users, load 0.10, 0.09, 0.08 class4 up 3+02:57, 0 users, load 0.12, 0.09, 0.08 class5 up 3+02:56, 0 users, load 0.07, 0.08, 0.08 class2 2%This shows that machines
classN, you can make yourself a local scratch directory under
/home/cN/scratch. (These directories are accessible from all the machines, but it is fastest to use local disk space.) Note that these directories are not backed up. Never leave important files in the scratch directories. The scratch space is meant for things like compiler output that can be recreated if necessary.
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:
class2 1% vncserver You will require a password to access your desktops. Password: Verify: New 'X' desktop is class2.scs.cs.nyu.edu:1 Creating default startup script /home/c/dm/.vnc/xstartup Starting applications specified in /home/c/dm/.vnc/xstartup Log file is /home/c/dm/.vnc/class2.scs.cs.nyu.edu:1.log class2 2%
class2.scs.cs.nyu.edu:1in this example.
vncserver -kill :1(substituting the actual number of the X display for
You can access the vnc server from any web browser with java. Simply
add 5800 to the number of the X display, and use this as a URL. In
the example, the display is
thus, you can access the server as http://class2.scs.cs.nyu.edu:5801.
To get better performance, you can download a native Vnc viewer which will be much faster than the web browser interface. Native viewers are available for both Windows and MacOS. See the Vnc download page for more information. You can also download a cached copy from NYU: