122 Lab Outline Week 3
Project questions are discussed on cis122.blogspot.com
 

Labs Start On the Hour

Please arrive at 026 Kla early enough to be seated and do the following:

  • start FireFox, login to our Blackboard course site, open Schedule > Class Calendar
  • in the calendar, click the link for the lab outline for the week
  • start SSH, connect to shell.uoregon.edu, & open a File Transfer window
  • start Visual C++ & open a project

If you arrive late, your lab instructor will not be able to take time away from the other students to fill you in on what you missed.


Password-protected Web Directories on a Unix Server

HTACCESS instructions
The examples in above document use 111 for the htaccess-username. For this class, you will simply substitute 122 as the htaccess-username.

Note that if you already have a file named htpasswd in your home directory on shell.uoregon.edu, then you must remember not to use the -c switch when using the htaccess command in the following lab exercise. You want to append (no -c switch) rather than overwrite (-c switch).

Lab Exercises

  1. htaccess example. Your gtf will show you an example of a password protected directory when accessed with a web browser.

  2. htaccess setup. htaccess requires you to know the following two terms:

    • htaccess username.

      For the htaccess username, every student in our class will use the name, 122.


    • htaccess password.

      For the htaccess password, you will use digits 4-5-6 of your student ID (these digits will not be posted publicly at any time).

      Examples:

      Student ID:  950-23-1717
      digits to use for htaccess password:  231
      htaccess username: 122
      
      Student ID: 951-49-8899
      digits to use for htaccess password:  498
      htaccess username: 122
      
  3. htaccess lab exercise: follow your gtf's instructions to password protect your ~/public_html/122/ directory.

  4. How to Change Your HTACCESS Password

    If you ever need to change your .htaccess password, here's how:

    • SSH to shell.uoregon.edu
    • enter "cd" to make sure your home directory is the current working directory
    • enter "htpasswd htpasswd 122 ". When prompted for the new password enter digits 4-5-6 of your ID

      Adding password for 122.
      New password: ***
      Re-type new password: ***

SKILL ASSESSMENT NOTATION: E/F/M.

In 122, we'll assess skill-acquisition using three levels: E (Exposure), F (Familiarity), M (Mastery/Competence).

GOALS

At the end of lab, your skill level should be at F-level with the following topics: At the end of lab, your skill level should be at E-level with the following topics:

  • Creating Password-Protected Web Directories on uoregon.edu

/etc

Micro Labs on Campus: In addition to 026 Kla, Visual C++ 2005 Express Edition is installed in 013 Kla and 101 Mck, but it is not installed in other micro labs on campus.

Saving your Lab Work: The My Documents folder on the PCs in 026 Kla is cleared periodically. If you want to save a copy of your lab work, use SSH's File Transfer window to upload your files and/or folders to your shell.uoregon.edu account. Or bring a USB drive with you to your lab and keep your /110 folder stored on that drive.

122 IT Applications/DuckWare CD: Apart from Visual C++, alll the software applications we use in the lab (SSH, FireFox, Fugu, ...) is on the DuckWare CD, and can be installed on your personal computer. The DuckWare CD is available from MicroHelp, 151 McKenzie. See also: OS X applications and Parallels Desktop.


The 122 Learning Environment

At the start of the term, your lab instructor will regularly stop and ask the question, "Can all of you hear me, especially in the back of the room? Can you understand what I am saying?"

It's important that you are able to follow along as the instructor presents material. If you cannot hear or understand what is being said, please raise your hand and say (politely) that you are having difficulty following the presentation. The lab instructor will appreciate your assistance.

Also, please keep in mind that your responsibility is to pay attention and follow the instructor's directions. In particular, you should not be reading email, surfing the web, visiting with other students, etc., during the lab. Save those activities for after the lab.