My First Web Page
So I hear you want to create your own web page in your Unix account.
But you ask "How?"
Let me help you go through creating your first web page.
Let's Do the Two-Step
Step 1
First you need to login as yourself and be at the Unix command prompt. Usually some gobbly-gook ending with a % or >.
Step 2
Type the command wwwsetup
This will create your www directory and copy a default index.html
file into your web directory. Also, it will make sure the proper permissions
are set on all these files.
Modifying Your index.html
Use your favorite editor to modify your index.html file.
Example:
cd ~/www
pico index.html
You could also use a program like Netscape Navigator Gold or Netscape Composer to edit your page, but that is beyond the scope of this tutorial.
Creating Additional Web Pages
You can use your favorite editor to create additional web pages and link them
together using the anchor tag in HTML. This would be put in the page you want to link FROM (e.g. your index.html page).
<A HREF="http://www.tcnj.edu/~im/webpage.html">Click here to go to another one of my pages</A>
Your web pages should always have an
extension of .html or .htm (Example: webpage.html or webpage.htm).
After creating a page and saving it, you should exit your editor and return to
the Unix command prompt. To set the proper permissions on your newly created
web page, type the following Unix command:
chmod a+r webpage.html
replace webpage.html above with the name of the web page you just created.