Class Schedule
This work
is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
home & schedule | syllabus | contact | grades
Using a command line interface,
create a new directory
within your public_html space on Opal.
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/newdirectory
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 tell your lab instructor the userid and password they must use to access this directory. This will be the place you will store all future tasks.
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 (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/~onyen/my_directory/my_page.html
26 January labs | command line practice | create a directory | public key | L/M/WAMP