CPSCI 107: Applications, Implications, and Issues

Lab 2

January 25, 2006

Preliminaries

Before doing anything on warp, we're going to learn some HTML and discuss some aspects of setting up a website on a Linux system with an Apache web server. When we're done, you should know:

Your Website

We'll go through the steps of setting up your website on warp together. Look over this list after class and make sure you know how to do each of these tasks, and why we did them.

  1. Set the permissions on your home directory so that anyone can execute it.
  2. Create a directory named public_html in your home directory.
  3. Set the permissions on this directory so that anyone can execute it.
  4. Create a file in this directory named index.html (the contents of this file are specified below).
  5. Set the permissions on this file so that anyone can read it.

Your First Homepage

Now we'll use emacs to use it to create the file index.html. (If you have trouble using emacs, re-read section 10 in the Basic UNIX Tutorial as soon as possible.)

Here's what we'll put in this file, which will be your homepage:

After we've done all that, we'll take a look at your new homepage using a web browser. Proofread your page in the browser (look for anything weird: missing text that you know you typed in, everything appearing in a large font, occasional extraneous greater-than or less-than symbols, your name not appearing in the title bar of the browser, etc.). If anything's incorrect, go back to your emacs window and look for what might cause the problem; if you can't figure it out, call me over for help.

Hyperlinks

Now we're going to take a brief timeout to discuss hyperlinks.

After we're done, edit your homepage so that the text of the list item in the unordered list is now a hyperlink that will take the reader to the class homepage. Open your edited homepage in a browser, proofread your work, and test the hyperlink. If you have any problems, call me over for help.

Review

We'll have a quiz on Friday. Make sure you understand all of the following points from today's class.

Note: The points listed above are specific to a Linux system with an Apache web server. They carry over, however, to other operating systems and other web servers. (You face these issues on any system; the solutions will be similar, but will differ in their details.)


[ Return to the CPSCI 107 homepage ]

Brian J. Rosmaita <contact me>
This page was last modified Wednesday, 25 January 2006 at 14:56 UTC.
Valid XHTML 1.0 ! Valid Cascading Style Sheets! This page is in AAA Conformance with the Web Content Accessibility Guidelines