- Introduction
- Your name, email address, office #, office hours, etc.
- Student accounts
- Students who do not have accounts need to obtain unix accounts.
Explain the procedure.
- Unix
- Here is a list of simple
unix commands .
- Required In-lab Exercise : Do this
UNIX Exercise with your
students and explain the unix directory hierarchy.
- Logging in from home
- UCS is providing a free CD with the software necessary to logon
from home. It includes help sheets for the installations.
- The CDs are available in ECS 020 and consultants are also available
to answer any questions you may have.
- When logging in from home, make sure to login to linux1 or linux2,
not irix1 or irix2. Their programs must compile on linux.
- Editors
- Explain that c programs are written using a text editor.
Students other than CMSC & CMPE majors may choose to use :
- pico - looks & acts like pine
- vi - those that know VI already can still use it
- xemacs - This is a Required Exercise
for CMSC and CMPE majors, but it should be done on their own
time and NOT within this scheduled lab time. Each student
should teach themselves xemacs by using the xemacs tutorial
before the first project is released.
- To run the tutorial, type xemacs at the unix prompt and hit
enter, then type ^x ? t
- Mention that the CSHC and the Linux Users Group will be
offering tutorials on using linux, xemacs and other topics.
- Here is a list of some simple
xemacs commands and some
pico commands.
- Email
- Pine - Walk the students through writing the email exercise
described below.
- Web
- Browsers: Netscape, Explorer
- Have students go to the course homepage
- More Exercises
- Required In-lab Exercise : Lead the
students through writing Hello World
- Have the students use a text editor to write a source file
called hello.c (as shown in lect. 1)
- try to compile the program using gcc -Wall -ansi hello.c
- fix syntax errors (one at a time)
- repeat the previous 2 steps until they get a clean compile
- run the executable file (a.out)
- Exercise (Optional) : Have each student send you an email.
- Student's name
- Section number
- Social Security number
- Programming experience and why they're taking 201
- Required In-lab Exercise :
- Students must logout of their accounts before leaving the lab.
- To end the terminal session click on File and then click
on Close Terminal
- Then click on the Gnome's footprint
- Choose Log out
- Click on Yes when asked "Really log out ?"