Learning UNIX and HTML Exercises
for Psych 409a, 409b, 457, 499

Instructor: Dr. Leon James, Professor of Psychology

Note: always bring a diskette with you to the lab.

Area 1: Mastering UHUNIX, Pine, Telnet, ftp

See the book Internet Basics for how to do the following exercises. It's recommended that you do each exercise several times with slight variations.

1. Read instructions on how to use Pine. Make notes for yourself on the commands you need to remember.

2. Send e-mail to the instructor (leon@hawaii.edu). Give your first and last name, and the class (409a, 409b, 459, 499). Send yourself a copy of it. When you receive it (a few minutes later), export it and call it test1.

3. Send e-mail to Mr. Robert Hengel, System Administrator for the College of Social Sciences in Porteus(hengel@hawaii.edu) saying:

"Mr. Hengel, I'm enrolled in this course (Psych 409a, Psych 409b, Psych 459, Psych 499) with Dr. James and am requesting a login account for the CSS server. My First Name is xxx and my Last Name is. My UHUNIX login name is xxxx. Thanks." Send yourself a copy for record keeping. When you get it, export it or save it.

Note: You'll be receiving an e-mail message from Mr. Hengel in a few days (hopefully less than one week) in which he informs you of your login password to the CSS account.

4. Quit Pine and look for the file you exported under the name test1 (Give the command: dir). Pico the file (give the command: pico test1) and add a sentence or two. Save it and go back to Pine. Send yourself a message in which you insert the test1 file (use the command: control R) . Now you will receive that file in your e-mail a few minutes later. Forward a copy of it to the instructor.

5. In UHUNIX, create a new file called test2 (use the command: pico test2). Write a couple of sentences in it and send it to yourself. When you receive it, export it and call it test2. Quit Pine and in UHUNIX, create a directory called george (use the command: mkdir george) and another one called mary. Now move test1 into directory george and test2 into directory mary (use the command: mv test1 george) (this means "move the file called test1 into the directory called george").

6. Using the change directory command, move into the two directories. (Use the command: cd george or cd mary). Also, move up one directory to yours and give the dir command (use the command: cd .. (that's "cd dot dot") for moving one directory up). Then move one more up, etc. (Use the command cd (by itself) to get back to your home directory no matter where you are).

7. Bring three copies of a file on your diskette to upload, or create them on the lab computer in the TEMP directory (use any one of the available word processors). The three files are the same but you saved them in different formats: (a) regular (b) text only (c) rtf. Uplolad the three file to your UHUNIX directory using Win/ftp (in other labs with Mac OS, use Fetch). Now open each file in pico and notice the differences. Choose one file and add or delete something in it. Save it, then go to Pine and send yourself a copy of it (for inserting the file, use the command: control R).

8. Create a signature file for your Pine e-mail. In UHUNIX, give the command: pico .signature (that's a dot before the s). Type in whatever you want should automatically show at the bottom of your e-mail messages (usually your full name and a logo and your favorite quotation). Save it. Go into Pine and send yourself a message. You'll see the contents of your .signature file. (Whenever you're in UHUNIX, you can alter the file any time with the command: pico .signature)

8. In UHUNIX, Telnet over to your CSS account, once you have it (use the command: telnet www.soc.hawaii.edu). This is the account where you'll be uploading your World Wide Web reports on your Home Page. This also has a Pine, but you are not supposed to use it (it will be too confusing to have two addresses). Give the dir command and you'll note that there are no files yet. Now create a directory called public_html (use the command: mkdir public_html) (note this has an underscore instead of a space between the two words). Now change directories into it (use the command: cd public_html) and give the dir command. You'll note it's empty of course. This is the directory where you'll be creating your Home page and publishing all your reports.

9. While you're in the public_html directory, use ftp to transfer two files from your UHUNIX account. (Use the command: ftp uhunix.its.hawaii.edu) (then you'll be asked to login to your UHUNIX account). Once logged in, give the dir command. Now transfer files test1 and test2 from your UHUNIX account to your CSS account (use the command: get test1 test2). After a couple of seconds, type in the command: bye which will bring you back to your CSS account. Now give the dir command, and you'll note that a copy of the two files are now there.

Area 2: Mastering Netscape, Bookmarks, and Search Engines

See your text HTML 3 Manual of Style . It's recommended that you go through the book from the beginning as soon as possible. The first 4 chapters should be done by the end of week 3. The rest can be done after midterm.

1. Start Netscape and click on whatever you see without too much purpose or planning. It's a kind of free for all just to get the hang of it. Enjoy.

2. Systematically explore all the menus and try to figure out what each does. Send yourself a document on e-mail (some labs won't allow you this feature). Explore how the Back and Forward buttons work. Explore the View button (Document and Source). Go to various places and save their addresses on a bookmark file that you'll want to save on a diskette for future use. Continue to explore the Web. You'll need a minimum of 10 hours of surfing in cyberspace before you begin to understand what's going on.

When you see a document you'd like to save for later viewing, send it to yourself by clicking on the Mail Document button (File menu in Netscape). Next time you're in Pine on your UHUNIX account, you'll see it there. Then you can forward it to classmates and friends, or export it to your directory for later use. Here is one that the instructor recommends -- check it out: http://www.pbs.org/internet/

3. Start your exploration of the Generational Curriculum. Go to the instructor's Home Page http://www.soc.hawaii.edu/~leonj/leonj/leonpsy/leon.html

and be sure to explore every button. Wherever you are, you'll be able to come back using the Go menu button which keeps track of all the places you went to. See also the History button under the Window menu.

4. A quote from the AltaVista Index Page: "The Web is immense. If you only spent a minute per page and devoted ten hours a day to it, it would take four and a half years to explore a million Web pages, a lifetime to explore just this index." Click on any search engine and type in a topic or name (person, activity, song, film, company, music group, city, etc.) See what happens. Go back and type another one. See what happens. Repeat this many times with different topics or names.

Area 3: Mastering Links and Constructing your Home Page

1. Create an HTML Index to generational topics. Use Netscape to browse around the generational curriculum. Whenever you find a topic you want to include in your index, add it to the Bookmarks and save it on your diskette. However, you also need to write down the topic in the same order as the bookmarks, so you can add them back in. When done exploring, open the bookmarks in a word processor and add the name of the topics to each address. Now make all the addresses relative. Type in the minimum necessary HTML tags and save it in TEXT only format (as usual). Upload the file to your CSS directory. Test out all the links in Netscape and correct any that don't work:

(a) open the document in pico (b) edit what you need (c) save and close the file (control X) (d) copy the file giving it a number name (use the command: cp myfile.html 1.html -- which says, "Make a file called 1.html which is a copy of myfile.html" (d) click on Netscape, and change the address in the address box to end in /1.html (e) now you can see your changes (f) repeat until all is correct, but use 2.html, then 3.html, then 4.html, etc., each time you edit. The reason is that Netscape otherwise keeps showing you the old file and won't reload. (g) when done, delete all the files with numbers using the command: rm 1.html 2.html 3.html (as many as you have). All will be deleted at once (be sure you don't delete the wrong files! Do not leave these files because they'll cause trouble. Delete them.)

Add a link to this file on your Home Page, when it's ready.

2. Construct a minimal Home Page to be improved later. Select a Home Page in the Generational Curriculum. View its Source (under View menu). It will be opened on the word processor. Now you can edit it to suit your purpose. Save it as... home.html (or home.htm) in text only format on your diskette. Now upload it to your CSS account using Win/ftp (or Fetch) and view it in Netscape. Pico the file, edit it, and view it repeatedly until you're satisfied. (Hint: if you want the icons to work, or if you want to put your own icons, you'll need to copy them into your directory. To copy an icon you see in Netscape, point your mouse arrow on it and hold down your click button -- you'll get a little dialog box with one of the choices saying, Save this icons as...You then save it on your diskette, upload it to your directory, and now they show up on your Page.

3. Upload each of your reports as soon as you have a first draft. Be sure you spell check it so the whole world won't have to see your spelling errors. Be sure you type in all the necessary HTML tags and save it on your diskette as TEXT only. Once the report is uploaded, test it in Netscape to make sure it looks as you want it to. Be sure all your links work, including your e-mail button and your link to your Home Page (both are required in all files). You can edit it with the command: pico report1.html). Name all your reports consecutively. Don't use another name -- this is standard for everyone. Now add a link to it from your Home Page. You can always edit all your files at any time. Except for testing links, all changes in your reports should be made on your word processor, then the new version uploaded, as usual. Note: always keep the latest copy of every file on two diskettes, in case something goes wrong with one of them -- it's an effort well worthwhile!! (Hint: When you upload the latest version of a file, the new version will replace the old if the file name is the same -- very convenient.)

Cyberpsychology Reports and Assignments

Studying Online Communities -- Reports and Assignments

Syllabus for Cyberpsychology

Syllabus for Online Communities

Back to Leon James Home Page

e-mail