mkdir public_html
chmod a+rx public_html
After adding your files via FTP be sure to execute
the following additional command:
chmod -R 755 public_html
The first command creates a directory called "public_html" in your account's main directory. The second command changes the privatization settings on the newly created directory so that people trying to browse your page can access it. You must remember to use the above "chmod a+rx" command on any image and html files (or directories) you want to have on your web page. More on that later.
Ok, so now you have a directory in your Alpha account that will house the HTML files for your page. The next step is to access that directory and then to create your first page.
cd public_html
pico index.htm
The first command here accesses the public_html directory that you created in step 1. The second command creates a new file called "index.htm" in that directory. After entering the second command you will see the screen change...you are now in the pico editor. Pico is one of the editors on Alpha and can be used for on-line editing.
<HTML>
<HEAD>
<TITLE>The Title of Your Page </TITLE> </HEAD>
<BODY BGCOLOR="white" TEXT="blue" LINK="gold" ALINK="yellow" VLINK="gray">
<CENTER>
<h1> Your Name's Page</h1>
</CENTER>
Welcome to my page, There isn't much here yet, so stop back soon!<BR>
</BODY>
</HTML>
To see what that whole mess gives you, click here.
Don't worry about what all the tags mean just yet, once you see the finished product...it's rather
intuitive.
Hold down Ctrl and then press X.These commands will save what you've just done. The last thing to do is to change the privitization settings on your new file. Type in chmod a+rx index.htm and then press Enter...you're done!
Press Y and then press Enter.
Your index.htm file is now accessible on the WWW, it's address (URL) is:
http://lasalle.edu/~yourusernameIn other words, if your login name was doej1, the address of your page would be http://lasalle.edu/~doej1
| mkdir directoryname |   | Creates a directory |
| rmdir directoryname |   | Removes (deletes) a directory |
| rm filename.ext |   | Removes (deletes) a file |
| cd directoryname |   | Changes to the directory specified |
| cd .. |   | Goes "up" one directory |
| chmod a+rx directoryname or filename.ext |   | See below |
| pico filename.ext |   | Edit the file specified w/ the Pico editor |
Remember that everything you type in needs to be case-sensitive. Make sure you don't type in any capital letters unless absoloutely necessary.
Click here to return to the previous page.