| ||||||||||||||
| ||||||||||||||
| ||||||||||||||
Getting Started with cps116 ServerIndexGeneral informationMost of the programming work in this course can be completed on cps116.cod.cs.duke.edu, which is a Linux server running the IBM DB2 database server. Please be considerate in using this server since it is shared by all students in CPS116 and CPS216. Refrain from running anything unrelated to the course. Quit all your applications and log out after using the server (in the past, we have found idle XEmacs processes to be the top culprit in server slowdowns). If something terminates abnormally, kill any runaway process manually (e.g., J2EE application servers, if not shutdown properly, can leave dozens of Java virtual machines running). You can see what processes you have currently running using the Unix command "ps f", and you can kill a process with pid using "kill -TERM pid" (or if that does not work, "kill -KILL pid"). To kill all your processes, try "kill -KILL -1" (which will also log you out). Logging in and outIn the following, your "work computer" refers to the machine from which you access cps116.cod.cs.duke.edu remotely. Use your favorite SSH client to log into cps116.cod.cs.duke.edu remotely. For example, if your work computer is a Unix/Linux or Mac machine, run the following command (replace user below with your cps116 account name) from your Unix/Linux shell or Mac terminal: ssh cps116.cod.cs.duke.edu -l userIf your work computer runs Windows, you can use SSH.com's SSH client, which can be downloaded here from Duke OIT. Other SSH clients are also okay. After logging in, you should be inside your cps116 login shell, which is bash by default. If this is the first time you log in, remember to type the Unix "passwd" to change your default password to something more secure. After you are done using cps116, remember to log out using the Unix "exit" command. Advanced SSH setupYou need to use advanced SSH setup if any of the following applies: (1) You would like to launch X windows applications (such as firefox and emacs) from cps116 and use them from your work computer. (2) For security reason, access to most of the ports on cps116 has been blocked. However, you would like to host your own services (such as Web servers) on cps116, which must be accessed through these blocked ports. To perform the SSH setup, follow the appropriate instructions below.
If you use OpenSSHOpenSSH is usually available by default on Linux/Unix or Mac machines. It is the command ssh that you run through the command-line interface of a Linux/Unix shell or Mac terminal.
If you use SSH.com's SSH clientSSH.com's SSH client can be downloaded here from Duke OIT. Instructions below may apply to other SSH clients too, with little modification (F-Secure, for example, calls "outgoing tunnels" "local" instead).
Reporting problemsSend email to Jun (junyang@cs.duke.edu). |
||||||||||||||
Last updated Mon Aug 25 14:18:21 EDT 2008 |