Lab00, CISC105, Spring 2006

Welcome

Welcome to CISC105! The purpose of this first lab, "lab zero", is to familiarize you with some of the knowledge and skills you will need to complete the remaining labs in this course. In particular, this lab will introduce you to the Sun Rays.

The Sun Rays are computer workstations 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. The SunRays are a specific brand name for a type of system called an "X Terminal".

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. Some work for this course you can do from any computer, provided you can use that computer to access Strauss. Other work you might have to do directly on the Sun Rays. There are Sun Rays in Willard Hall 009, and also in some other locations on campus, including the basement of Smith Hall.

Goals for Lab Zero

This lab is kind of a "warm up" for the semester. We want to make sure that you are comfortable with the environment before we get into the heavy lifting, which starts next week.

AFTER the lab:
  1. Make sure you know how to log in and out of the Sun Rays, and set up your account for this course.
  2. Make sure you know how to access the web on the Sun Rays.
  3. Make sure you can find the CISC105 home page.
  4. Your instructor is using a course management system called MyCourses, that allows you to track your assignments, submit assignments online, and track your grades in the course (among other things). You need to make sure you can find MyCourses, login to MyCourses, and find CISC105 among your courses.
  5. Make sure you know how to create a text file with the text editor known as emacs.
    Chapter 15 in your Andersen textbook covers emacs, and there is also some material below. In this lab, you'll create a text file, and submit it both online via MyCourses and on paper.
  6. Make sure you can create a C program, compile it, run it, script the results, and submit it to your TA on paper, and if requested, also via MyCourses.
  7. Make sure you understand the lab policies.

If you can do all those things and your lab is complete, you are all set for this week, and you can start on reading Chapters 1 through 2.4 in your Hanly & Koffman text.

Reference Materials for Lab 00

In your Andersen textbook (Just Enough Unix, 5th Edition), Chapters 1,2,3,15,32,33. These are short chapters, but you are not expected to know all this material off the top of your head; instead, find what you need to know to accomplish the task at hand.

Goals 1 and 2: Login/Logout and Web on the Sun Rays, and account setup

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 UDelNet Id. 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.

In addition, you should do the following steps:

Goals 3 and 4: CISC105 homepage and MyCourses

Once you've managed to get logged on to the SunRay system, and you've found the Web Browser, use a search engine to find the course web page if you have not already done so. This is important because all your assignments will be there.

Then, click on the link: 
http://www.udel.edu/MyCourses

Click "log on". This should take you to a login screen, and then to a menu showing the MyCourses page for this course. Find the assignment Lab00 and review it (it is a very short version of this document, and makes a good checklist).

You now have found two important links for your success in 105, the class webpage and MyCourses.

Goal 5: Creating a text file with emacs

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).

Now it's time to start learning emacs. Emacs is a "text editor", that is, a program that helps you create files on strauss. Go to an xterm on strauss, and type "emacs &".  If you get a command not found message, you may have to type "/opt/bin/emacs &" until you correct your path variable.

The "&" is a special command suffix to let Strauss know that you want emacs to open in a new window and let you keep using the old xterm window, too.

When you see Emacs, the paragraph of text will tell you how to start running a self-directed tutorial. Do this. The option to run the tutorial appears every time you open emacs. You can run the tutorial as many times as you like until all the material is familiar or you become bored out of your gourd.

Once you are comfortable with using emacs, go ahead and use 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:

Your Namehere

Wilmington, DE

Arizona

ynamehe

When you are finished, send the file to the printer in Willard 009 with the following Unix command typed into an xterm:

qpr -q whlps lab00.dat

Also, upload this file as part of your submission for Lab00 in MyCourses. But DON'T SUBMIT YET! That is, don't press the "submit" button. Just upload for now. You'll hit submit at the end of lab, after you've also uploaded your C program and script file. You will wait until all of your files are uploaded before clicking submit once.

If you aren't sure how to do this, check the following link for help, or ask your TA:

http://www.udel.edu/MyCourses/students/assignments.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 immediately, because its the first week of the semester and her TA account might not be active yet. But if not, she can fix it up for you by next lab, and you can make it up then without penalty.)

Goal 6: C programming on Strauss

  1. Create a file lab00.c that contains the following (except substitute your name and Unix user id for those of Jane Doe, and use today's date.)

    DO NOT include your student number (NEVER include that number in anything you submit in this class!)
    // lab00.c Jane Doe doej@udel.edu 3/1/06
    // traditional first program (hello.c from Andersen, p. 369)

    #include <stdio.h>
    int main(void)
    {
    printf("Hello, world!\n");
    return 0;
    }
  2. Once you've created this program, determine which, if any, compiler you have available.