CSC 241 Lab 1

(Due September 10th, 2003)

HTML & Applets


Theme ...

This lab is designed to get you set up for the web and running applets. In the process, you will learn to operate effectively in a SUN workstation environment. You may already have a webpage, or you may not. Either way, you need to make one for this course. Some of your programming assignments will have applet front-ends and you will make them accessible through this webpage. This should help me find your applets quickly when evaluating them or when helping you find your bugs. My 241 page will be linked to yours once you complete this lab.

Your web page for this course will consist of a header, title, a little text, and some links. Feel free to add things to it, but, please don't clutter it with graphics that don't relate to the course or use colors that make it hard to read on a workstation (i.e. a Purple background is NOT my favorite).

You will first create some directories, and set the needed protections to get things started. You will make some modifications to your Sun workstation environment. The next step is to fire up netscape and bring up this page. There are several links in this page that are only meaningful in a web browser. For example, part of the way into this lab, you will bring up a webpage that you will copy from and paste into an xemacs window which you will also have open at the time, effectively, creating your webpage with a few key strokes. I could have just given you the template to copy at the start, but, this is a good practice for handling multiple windows. This lab ends with you copying an applet and making it accessible from your page. Once you have completed all tasks, you will have a web page like 241.html.

Set up your workstation environment:



Follow these steps in order:

Login on a workstation and perform the following UNIX commands in your Terminal window:

Creating necessary directories

You need to be in your home directory.

  1. mkdir public-html--You may already have such a directory.
  2. mkdir public-html/classes
  3. mkdir public-html/classes/csc241

Setting permissions

  1. chmod og+rx .--don't forget the dot
  2. chmod og+rx public-html
  3. chmod og+rx public-html/classes
  4. chmod og+rx public-html/classes/csc241

Netscape

Create 241.html

Make your page accessible to others

The following will take place in your Terminal window:

Testing your page

Type the URL http://www.oswego.edu/~your user name/241.html in the Location text area of your netscape window. Your page should load up in all its glory! Return to the lab1 page.

Make an Applet

I am assuming that you are in your public-html directory in your Terminal window. pwd is the unix command that tells you where you are. Type each of the following commands:

Simply, go back to your 241 page and click on the hello1 link there. The Applet should load up.

Hand in

email the URL for you 241 page to mohammad@oswego.edu, it should be something like this: http://www.oswego.edu/~your_user_name/241.html