Main Course Webpage

CS160A Assignment 2

Objective: Create a webpage in your home directory accessible by the world wide web

The work required in this assignment is not difficult, but requires a fair amount of knowledge. Consult the world wide web for additional tools you might need. Have fun customizing your webpage.

Before starting your script session for Part One, use these tips! In the discussion below, login is your login id.

Get the Base Files

The directory asmt02 in our public directory (/pub/cs/grwoo/cs160a) on hills has the components for our website. You won't be using a script session for this part of the assignment. It may be tempting to modify the provided files to make them prettier. You are encouraged to do that. However, this is an exercise in using Linux. You will be graded on: organizing directories, links and setting the correct permissions. HTML work is not a part of this assignment, and if you modify the page itself, keep the same directory structure. Use [hard or symbolic] links to refer to your image files, as discussed below.

The importance parts of setting up your public_html folder to be accessible by the web is to pay attention to:

Some ways you can customize your page's contents include:

You can go to http://hills.ccsf.edu/~grwoo/cs160a to see what your webpage might end up looking like.

How you create your directory structure is up to you. Below is a suggested method for those of you who need some guidelines. You do not have to do the following in a script session. Your script session will simply contain a directory and file listing of your result

Procedure

For this assignment, you will simply turn in a script session of your result

When you are done with the above, rename your folder as public_html in your home directory. If everything is set up correctly on hills and you have followed the procedures correctly, you should be able to navigate to your own website: http://hills.ccsf.edu/~username

To Turn In

Create a standard script session. All it should contain is a recursive long listing of your public_html/cs160a directory. Make sure that it is a recursive long listing! Include the directory permissions using ls -ld of public_html/cs160a directory. Make sure the page you created is accessible so that I can test it. Leave it in-place until your assignment is graded.

Sample Output
[grwoo@hills cs160a]$ ls -lR .
.:
total 1616
-rwxr-xr-x 1 grwoo csdept      48 Feb 20 07:57 cs160arobot.txt
-rwxr-xr-x 1 grwoo csdept   94296 Feb 20 08:02 event.png
drwxr-xr-x 3 grwoo csdept     134 Feb 20 07:59 fsf
lrwxrwxrwx 1 grwoo csdept       9 Feb 20 08:08 IMAGEA -> raspi.jpg
lrwxrwxrwx 1 grwoo csdept       9 Feb 20 08:09 IMAGEB -> event.png
-rwxr-xr-x 1 grwoo csdept    2210 Feb 20 08:08 index.html
drwxr-xr-x 2 grwoo csdept      41 Feb 20 07:58 opinion
-rwxr-xr-x 1 grwoo csdept  107505 Feb 20 07:52 raspi.jpg
-rwxr-xr-x 1 grwoo csdept 1436077 Feb 20 07:52 raspi.jpg~

./fsf:
total 52
drwxr-xr-x 2 grwoo csdept     6 Feb 20 07:52 free-sw_files
-rwxr-xr-x 1 grwoo csdept 15177 Feb 20 07:52 free-sw.html
-rwxr-xr-x 1 grwoo csdept  2185 Feb 20 07:52 gnu.css
-rwxr-xr-x 1 grwoo csdept  3049 Feb 20 07:52 gnu-head-tiny.jpg
-rwxr-xr-x 1 grwoo csdept 18011 Feb 20 07:52 gpl.txt
-rwxr-xr-x 1 grwoo csdept  6138 Feb 20 07:52 philosophical-gnu-sm.jpg

./fsf/free-sw_files:
total 0

./opinion:
total 8
-rwxr-xr-x 1 grwoo csdept 144 Feb 20 07:52 good.txt
-rwxr-xr-x 1 grwoo csdept  43 Feb 20 07:58 improve.txt
[grwoo@hills cs160a]$ ls
cs160arobot.txt  fsf     IMAGEB      opinion    raspi.jpg~
event.png        IMAGEA  index.html  raspi.jpg
[grwoo@hills cs160a]$ cat cs160arobot.txt 
https://hills.ccsf.edu/~grwoo/cs160a/index.html