CSC150 Lab 4

This is the second UNIX lab. You will create a simple web page in HTML using the emacs or the pico text editor from the shell. Please follow the directions below:



1. Using your XLiveCD, open a ssh terminal window and log on as was done last week. If you don't recall how, see lab 3.

2. Make a directory called public_html by typing the command:

mkdir ./public_html

3. We now have to set the proper permissions on that directory so issue the command: chmod 711 ./public_html

4. Now, change to the newly created directory by typing: cd ./public_html

5. a. Next, create the new homepage index.html by typing: emacs ./index.html &

OR b. type: pico ./index.html


emacs will give you point and click ability!

6. Now create a simple homepage template by typing the following code. (NOTE: This will not be the your final webpage so create it exactly as described below. You will be able to be creative later in the course).

<html>

<head>

<title> This is (place your name here)'s homepage. </title>

</head>

<body>

(place a couple of sentances here that will appear in the body of your page)

</body>

</html>

7. By hitting ctr-X in nano or Files-Save Buffer in emacs, save the file as index.html and exit nano or emacs.

8. Check you page opening IE and going to the page

http://numbers.eastern.edu/~<your username>/

9. If the page opens and is correct (with the title: This is <your name>'s homepage.) you may log off of numbers. If not, make the neccesary corrections and then log off. I will check the pages on the server with a web browser which will determine you grade for this lab.