May 17, 2005
T/F Quiz at end of Chapter 1
REMEMBER -
Due Wednesday, May 18: A brief 1 paragraph summary of your topic sent to ernie@paprika.umw.edu. The paragraph should answer the question: What do I want my listeners to know or remember when Im finished speaking?
Due Thursday, May 19: Your presentation should have 3 main sections: the introduction, body, and conclusion. Develop an outline for each section of your presentation by identifying an item or items for each of the following bullets. Send the outline to ernie@paprika.umw.edu. Include a list of sources consulted while preparing your presentation.
Lab exercises
- Go to the PC lab in B12. Check that the PC has putty, Firefox, and WinSCP installed. If not, download and install them.
- If you have a web page that lists your assignment(s) then view it and show it to me. If not crete one using the instructions in the email I sent last night.
- Log in to rosemary.umw.edu
- Copy/upload the work for the assignment to your public_html directory.
- Copy the file /users/ernie/public_html/index.html.sample to
index.html in your public_html directory.
- Take a look at it on the Web using the URL http://rosemary.umw.edu/~yourLoginName/index.html
- Now change the links (the URLs inside the <a href=..> tags to point to your work. Now check it out!
- Go to google.com and search using the expression streaming video. Write down the URL and determine the name value pairs.
- Using the same search expression search for images. What's the URL now? How has it changed?
- Take a look at the MWCSWiki at http://rosemary.umw.edu/cswiki. Browse the topics, edit one if you feel like it.
Tell us about anything in the text that should be changed.
Review
- Topics from Chapter 1
- Difference between the Internet and the World Wide Web
- Client/Server interaction
Chapter 2 Topics
-
Role of the Web Server Software
- A server responds to a successful request by sending an existing file
or it takes some action to create the HTML source to be displayed by the
client.
- Satisfying requests for existing files - see figure
2.1 on page 2.2
- When a client sends a request for an existing file, the server finds
the file on the host system, checks the permissions on the file, and
if it can access the file the server sends a response code of 200
followed by the contents of the file.
- Satisfying requests for applications - see figure
2.2 page 2.3
- CGI-BIN
- Adding an entry to the guestbook - see figure
2.3 page 2.4
- The page with URL http://trierra.org/guestbook/addguest.htm is used to add an entry.
- A visitor fills out the form on that page and clicks on the button labeled "Add your entry."
- When that button is pressed a request is sent to the browser to activate a program named guestbook.cgi in the directory cgi-bin. That program takes the input from the form, adds it to the file guestbook.html, creates another Web page that's sent to the client, and also sends email to notify someone at trierra.org that an entry has been added.
- The visitor sees his entry on that new page along with a message thanking them for the entry. That page also contains a link back to the guestbook.html.
- The URL http://trierra.org/cgi-bin/guestbook.cgi is displayed in the address box of the browser. That is because the program guestbook.cgi in the directory cgi-bin in the file space for trierra.org was accessed when the button "Add your entry" was pressed.
- Linux
- open source software -
Open-source software is usually written by a (sometimes large) collection of people, under the direction of one or more persons. When the software is distributed, the source is also made available. This exposes the software to scrutiny by a large number of people and cooperative development is encouraged.
- multi-tasking -
Linux is a multi-tasking operating system. This allows several processes to be in an active state of execution at the same time.
- multi-user -
Linux is a multi-user system. Each user has a user name and a password. It is the operating systems job to ensure ownership of files and processes for each user, and a means for the owner to grant permission to read, write, or execute files.
- Using commands
- form of commands
- the shell
- control characters
- man
- files - copy, rename, delete, display one screen at a time, list file names, file name completion, editing
- directories - relative & absolute path names, creating, removing, changing to, , permissions
- Apache
- open source Web server. Take a look at http://www.apache.org for some info about it.
- Some things to look at are port number, ServerRoot, DocumentRoot, ScriptAlias, and whether anyone on the site can use the server to provide information.
- lab to install an apache server
- FTP
- File Transfer Protocol - one of the primary applications on the Internet.
- text based and graphical clients are often available.
Home Work -
- Turn in/Post Wednesday
May 18, 2005
- Page 2.30 Exercises 1and 2 in the section Short Answer
- Page 2.30 Exercise 1 in the section Essays and Projects

This work is licensed under a Creative Commons License.
Ernest Ackermann
Department of Computer Science, Mary
Washington College
CPSC 104 | CPSC
220 | CPSC 370K
Bibliographic Information:
.