Remember our convention.
commands argument value
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).
At your_onyen∕, change to
your public_html directory.
cd
public_html
At public_html∕,
create
a new subdirectory within public_html.
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
address-of-new-directory
to go to it.
What does "address" mean?
It means the argument is the location of the directory, relative to where you are now.
For example, if you are here
and you want to change directories to here ...
your command would read cd
public_html/newdirectory
or, change directory
first down to public_html
and then one more step down to
new-directory
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.
Although, clearly your directory name can be anything you want it to be (it doesn't have to be newdirectory)
Also, if you have password protected it, be sure to include the userid and password needed to access this directory in the Canvas assignments space.
After you have uploaded your files (and perhaps also set the correct access permissions), your webpage will be viewable at https://opal.ils.unc.edu/~onyen/ . This will take you to the index page (if there is one) 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/~your_onyen/newdirectory/a_newly_created_page.html
Copyright © R.E. Bergquist 2014- | Last Updated on | Powered by w3.css