| ||||||||||||
| ||||||||||||
| ||||||||||||
Getting Started with rack040IndexGeneral informationMost of the programming work in this course can be completed on rack040.cs.duke.edu, which is a Linux (CentOS) erver 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 rack040 remotely. Use your favorite SSH client to log into rack040.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 rack040 account name) from your Unix/Linux shell or Mac terminal: ssh rack040.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 rack040 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 rack040, 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 rack040 and run them from your work computer. (2) For security reason, access to most of the ports on rack040 has been blocked. However, you would like to host your own services (such as Web servers) on rack040, 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 (such as F-Secure) too, with little modification.
Reporting problemsSend email to Jun (junyang@cs.duke.edu). |
||||||||||||
| Last updated Thu Oct 19 00:34:21 EDT 2006 |