meets Tuesday and Thursday from 0800-0915
office hours in Manning 112
Class Schedule
10 Jan | intro
15 Jan | clients
17 Jan |
servers |
command line |
create protected directory |
next session
22 Jan | networks
24 Jan | basics lab
29 Jan | structural layer
31 Jan | presentational layer
05 Feb | working with layers
07 Feb | behavior layer
12 Feb | images & design
14 Feb | website lab
19 Feb | document markup
21 Feb | tools that read markup
26 Feb | document markup lab
28 Feb | spreadsheets
05 Mar | formulas & functions
07 Mar | data display
19 Mar | database tools
21 Mar | spreadsheets lab
26 Mar | relational databases
28 Mar | tables
02 Apr | relationships
04 Apr | input & output
09 Apr | SQL
11 Apr | complex queries
16 Apr | databases lab
18 Apr | presentation design
23 Apr | presentation delivery
25 Apr | presentation lab
30 Apr | 0800-1100 | final in class presentation
This work
is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
home & schedule | class blog | syllabus | contact | grades
Using a command line interface,
create a password protected directory
within your public_html space on Opal.
Before you (or anyone else) can view your files in a web browser, you must change the access permissions for your home directory on opal. If these permissions are set incorrectly, anyone trying to view your webpage will see a Forbidden error rather than your content. Follow these instructions to set the correct permissions:
Open an SSH connection to Opal.
On Windows, you'll need to use an SSH client for this; on MacOS and Linux, you can open a Terminal window, enter ssh your_onyen@opal.ils.unc.edu and then enter your password when prompted.
Once you've connected, you should see a command prompt like this:
[your_onyen@opal ~] $
Type
chmod 711 .
with both the space and the period. If you get a "missing operand" error, make sure you included the space and the period at the end.
Remember our convention.
commandsargumentvalue
Log on to your Opal account using a terminal connection program and enter a temporary shell session at the command prompt (it should be $ in Unix).
Change to your public_html directory.
cd public_html
Create a new subdirectory within public_html to password protect.
mkdir newdirectory
The new directory doesn't have to be named "newdirectory",
but you should get into the habit of using consistent and logical directory and file names.
Use
pwd
to see where you are.
If you are not in your new directory, use
cd name-of-new-directory
to go to it.
Once you are sure where you are, type
htdirpass.pl
and hit Enter.
This will activate a script that automatically creates several files for you.
Verify that you are in the directory you want to protect and follow the instructions on the screen.
You won't see these files on a regular ls command, you must type ls -a.
Don't delete the files unless you want to remove the password protection.
It will probably be something like ~YourOnyen/PPDirectory
Although, clearly your directory name can be anything you want it to be (it doesn't have to be PPDirectory)
Also, be sure to tell me the userid and password I must use to access this directory. This will be the place you will store all future tasks and Tasks.
If you'd like, you can require users to log in with an Onyen to view your webpages. To configure Onyen authentication for your opal.ils.unc.edu web space, follow the instructions in the ONYEN-AUTHENTICATION.txt file inside your home directory.
After you have uploaded your files and set the correct permissions, your webpage will be viewable at https://opal.ils.unc.edu/~onyen/ . This will take you to the index page in your public_html folder; you can also navigate directly to other pages or subfolders you've added, such as https://opal.ils.unc.edu/~onyen/my_folder/my_page.html