cs104 lab 5 chmod & HTML
I. Choose (or make) a test file in your directory. Check the permissions with
%ls -l You should have -rw------- (you can read/write.) Try %chmod g+x FILE
(then %ls -l to check.) One way to get rid of that is with %chmod g-x FILE
Another is to set all of the permissions (in octal.) Try %chmod 271 FILE (then
%ls -l to check.)
Give your test file permissions -r-x-wxr-- using Octal notation. Set it back
to -rw------- using ugo +/- notation (it took me three commands.)
To make a web page, we'll need to make a WWW directory with universal rx
permissions. Try making it with just r (not x) and have someone else try to
cd to that directory. There is one more problem -- your home directory needs
to have universal rx permission. This won't let anyone read your files, since
they don't have universal r permission, but will let anyone see the names of
files in your home directory. An easy way to give ~ rx is %chmod o+rx ~ and
then check with %ls -ld . (recall d means not to list the contents.)
Next copy my basic template.html (~cs104/labs/lab5/template.html) to
your WWW (everyone always copies that part of a web page, so it's not
cheating.) Aim your browser at it to see if everything is working
(www.cs.iastate.edu/~USERNAME/template.html)
II. It's 4:50, Friday afternoon and your boss, Biff, has sketched out something
in webme.txt. He wants you to "webize" it before you leave for the day. Let's
assume you decide to do it, instead of telling him what HE can webize.
Make webme.txt into a real web page. The top ("Bear Seminar") is a title
(should print in broswer bar) and a heading (at top of page.) All caps means
Biff wants it bold (or maybe italics.) Bear events is a table. The three
goals should be a list (and Benefits is a sub list.)
It will probably be easiest to cut&paste small parts of this into the template,
"web it up" and point a brower at it to check. From there, just edit, refresh, ...
For most of this, you can use "view source" on other pages to see how they did
it. The cs104 syllabus has an example of most of these things. Hours/Admin has two
tables with captions (like the bear table.) To make the group photo take up 3
slots, look at the last table in the syllabus (Topics(weekly).)
Finally, add to the heading and use cascading sheet
rules to do these things:
Give the body about a half-inch margin with a narrow green line around it.
Give every paragraph (and only paragraphs) a light-orange background (play
with color values and keep refreshing.)
Make bold/italic items bigger (give them a larger font size.)
As shown, have a border around the things in the table, but not the times or days
(this is easy if you made those headings and the rest td's) or the whole table.
Some of these are done in bearfacts.html, some various places in the cs104 web
pages, or read the stylesheet "List of stylesheet rules."
***You may NOT use web editors such as FrontPage, Dreamweaver, etc.