The Sun Rays are XTerminals that you can use to access the machine called strauss. Strauss is where you will do your actual programming in this course. In lab, you'll access strauss via the Sun Rays.
Note: Outside of lab, you may access strauss from any computer connected to the Internet, provided you have the right access software (e.g., a secure shell client program.) Your instructor will say more about that in lecture.
Info on logging in and out and accessing the web on the Sun Rays is at the following link:
http://copland.udel.edu/~pconrad/UnixAtUD/SunRay.html
That link also has information on what to do if you don't yet have a University Unix account. Finally, there is also information on that page that will help you pull up an "XTerm on Strauss"; you'll need that when you get to Goals 5 and 6.
http://copland.udel.edu/~pconrad/cisc181
There, you should find the main web page for the course. You should find a link to the syllabus, and a link to the labs directory, where the lab you are now reading can be found. Some of the links will lead you, for the time being, to empty directories which will soon be filled with your projects, homework assignments, source code examples, and lecture notes.
Then, click on the link that says "WebCT". This should take you to a login screen, and then directly to the WebCT page for this course. Alternatively, you can go to the main WebCT page, and click "logon".
Once you are on WebCT, be sure to find the calendar link, and check out the reading assignments for the next two weeks.
Open an XTerm on strauss (If you don't know how and/or are not sure what "Xterm
on Strauss" means, follow this link to the Sun Ray documentation: http://copland.udel.edu/~pconrad/UnixAtUD/SunRay.html).
If you are NOT yet familiar with vi or emacs, start learning emacs. Go to an xterm on strauss, and type "xemacs". For more instructions on what to do, follow this link:
http://copland.udel.edu/~pconrad/UnixAtUD/EmacsTips.html
If you are already familiar with vi or emacs, go ahead and
use vi or emacs to create a text file called "lab00.dat" containing
the following, each on a separate line: your name, your hometown, your favorite
US state other than the one in which your hometown is located, and your unix
userid.) For example, Prof. Conrad's file would look like this:
Phill Conrad Wilmington, DE Arizona pconrad |
When you are finished, send the file to the printer in Willard 009 with the following Unix command:
qpr -q whlps lab00.dat
Also, upload this file as part of your submission for Lab00 in WebCT. But DON'T SUBMIT YET! Just upload for now. You'll hit submit at the end of lab, after you've also uploaded your C++ program and script file.
If you aren't sure how to do this, check the following link for help, or ask your TA:
http://www.udel.edu/webct/student/c2answer.html
(If you accidently hit submit before you get your C++ program uploaded, don't freak out; your TA can reset the assignment so that you can try it again. Your TA might not be able to fix it on 2/11, because its the first week of the semester and his TA account might not be active yet. But if not, he can fix it up for you by next lab on 2/18, or at the latest on 2/25, and you can make it up then without penalty.)
// lab00.cc Jane Doe doej@udel.edu 2/10/04 int main() |
CC lab00.cc
OR
g++ lab00.cc
The first command (CC) is a commercial compiler, supplied by Sun Microsystems. The second command, g++ is an open source compiler, supplied by the GNU project, which is staffed by volunteer programmers. From time to time, we may discover differences, but for now, I don't care which one you use. Sometimes if you have a tricky syntax error it is useful to try both, because sometimes one gives you more useful error messages than the other.
./a.out
You might be able to get away with just typing a.out without
the leading ./, or you might not; it all depends on how your
account is set up. (It has to do with the Unix concept of the "path";
you'll read about that in the Anderson text later on.)
If all goes well, you should see something like the following:
> CC lab00.cc |
Note that you must be careful when using the script command. The script command will wipe out your work if you are not careful!
The thing to remember is: on the command line, type "script" followed by the name of a .txt file; for example:
script lab00.txt |
This is correct!!!! |
Never put "script" followed by the name of a .cc file. It will wipe out your .cc file!
script lab00.cc |
WRONG!!! WRONG !!!! WRONG!!!! |
Ok, now that we have that out of the way...
Type "script lab00.txt". Then go through the following steps:
qpr -q whlps lab00.txt
qpr -q whlps lab00.cc
And finally, you are done with Goal 6!
First, lets get this out of the way: Lab attendance is mandatory.
If you were in my CISC105 last semester, you may recall that we had a pretty laissez-faire attitude about lab attendance. However, my boss (Dr. Carberry) and I had a talk about that, and the result is that I'm going to be a bit stricter about that in this and future semesters. Attendance will be recorded. Be sure to sign the attendance sheet and return it to the TA before leaving your lab session.
Lab attendance is reported on WebCT as, for example, LA0211 (lab attendance for 02/11/04.) Grades are marked as P, A, E, or U for "Present", "Absent", "Excused", or "Unknown". You must at least make an appearance to be counted present.
Please read about more lab policies by following http://copland.udel.edu/~pconrad/cisc181/04S/labs/lab_policy.html
Do your reading assignment (found on the Calendar in WebCT) and complete the "prelab exercises" in the Lab manual for Chapter 1 before coming to lab next week (2/18/04)
(Note: this originally said: 1/25/04, which of course should have been 2/25/04, but that was wrong anyway, since next week's lab is 2/18/04, not 2/25/04. Anyway, the TA's will accept the work up through 2/25/04, just this one time.)