Welcome to the CS201 Laboratory. The room, the computers, and the
operating system are all state-of-the-art for a university
computer science department.
We try to maintain world class hardware and software for developing
software. So we use Linux.
In this laboratory it will be enough to have logged in, changed your password,
browser, and used it to find and explore the course web site and syllabus. You
should bookmark the course web page. As a final step follow the instructions
to download, compile and run a classic first C++ program. Finally, log out.
This will earn an A for the lab.
Future labs will involve thinking, creativity, testing ideas, fixing errors, and constructing new software.
You should find this challenging -- even after 60 years work, computer science has not found an
easy way to develop software.
In this lab, when everything works as plan we can all leave early. However,
sometimes it can take the full
200 minutes to do this laboratory.
The first rule is to leave our computers running!
It takes time to reboot.
During your first quarter if you think you need to reboot --
ask the lab teacher or the help desk next door.
At the start the teacher will show you how to get started -- take notes.
Your should have a blue screen with boxes for your "user-name" and your password, otherwise
call over your teacher.
There should be a "Session Type" menu under these two boxes, select "GNOME"
-- a desktop environment that the systems administrator reccomends -- and I
use a lot. (The alternative "KDE" environment has a performance problem
and a different set of menus)
Input your user id(this should be the same as your campus Coyote ID number
) in the box provided. Then input your password. This will be announced
in the lab. (It is not secure and you should change it as soon as possible).
Tap the "Enter" key on the keyboard.
Wait for the operating system to start up.
Click "Activities" at the top left hand corner of the screen.
It will display a set of "Favorites".
Click the icon that shows an orange "Firefox" embracing the world.... or
search the "Applications". Wait for it to start running....
Type the following location
into the location box and tap the "Enter" Key to go to the web site for this
Click the "button" [Index] on the second line of the lab page.
Notice that it lists events that have happened in the CS201 class. I post
changes and new information every week.
Once found you should bookmark it for the future.
The link to the syllabus is at the top of the "CS201 page".
We covered this in class.
Then go "Back" to the course web page.
Look for the "button"  on the second or third line labeled "Notes:".
Select it.... it tells you what to study...
If you account is OK and you get this far you have earned a B.
You can now experiment further with our systems and with the programs
you have downloaded. There are many interesting things to discover!
- Right click this link
[ hello.cpp ]
and Save as "hello.cpp". This is a famous C++ program that says "Hello,World".
- You will need a
to send commands to your computer.
This may be a favorite "Activity" or you may have to search the "Applications".
- Try this command: input using the keyboard and end with tapping the "enter"
It prints your working directory's name.
- Input into the terminal window the following to see what is in the file.
- To compile type the command line into the terminal window
g++ -o hello hello.cpp
This compiles the program.
- Input the command line
- To run the program.
- Hold down the "Ctrl" key and tap the letter "D" to close the terminal.
The first readings in the book explain some of the mumbo-jumbo above.
|pwd||Print Working Directory
|cat||Output file to the terminal
|g++||Run the Gnu C++ compiler to make an executable program
|./program||Run program in current directory "."
In a terminal window (access from a remote machine) you input
then supply your old password and tap return.
Then enter your new password twice tapping return after each time.
If you get this far before the end of the lab session you have earned an
A. Tell me something you learned to get credit.
There are a large number of Applications -- and all of them are pretty
safe to use. You can also access stuff on the WWW -- including your Email.
As you know -- much of the web is safe if you are careful what you access.
You should spend time exploring...
NEVER leave a machine without logging out. Horrible things can be done to your work and
reputation if others pretend to be you when you leave without logging out.
Use a left click on your name (top right hand corner)... and then select Logout item...
Now you can leave.
We try to maintain world class hardware and software. So we use Linux.
This is the most popular university operating system. It has been
adopted by professionals in large and small companies world wide for the
- Price: It is free.
- Cost: It is easy to maintain and update.
- Security: It has evolved to resist the viruses, back doors, and Trojan
horses found in Microsoft products.
- Privacy: It has a simple privacy scheme that hides your files from other
users (but not the system administrators).
- Open: It was created by an international group of expert developers. We
can join this group to fix problems.
- Powerful: It is designed by programmers, for programmers, to be used by
- Customizable: Before and after you log in there are dozens of options
- Applications: There are hundreds of programs you can use -- most of them
designed by and for professional programmers.
- Internet-Based: Linux is based on the Internet. A window on your machine
can be connected to any computer in the world.