|
There are six steps to creating a Web
page.
1. Obtain
a CSU UNIX account.
See your User Coordinator in LIB 122, and request an account application form
or use the link from the Information Technology
Division.
2. Check for
a personal http directory on your CSU UNIX account:
If this account
does exist, you will have to create an http directory by using the mkdir
command.
mkdir /export/home/yourself/http.
In
most (but not all) cases, this has been done for you.
Summary:
- Create a directory, "http", in your account. The path will be "/export/home/username/http" where "username" would be "bscoe",
for example.
- Place files for your web site in this directory.
- Adjust permissions for these files (if necessary)
Details:
To build a home page on the Web, you must first create a personal http directory
in your home directory on CSU's UNIX system.
mkdir http when you login, then chmod 755 http to
set permissions and properties for this directory.
You now have a directory named "http" on your UNIX account, and
CSU's WWW server can distribute HTML documents from your UNIX account.
Your URL for this directory will be "http://webs.csu.edu/~username/".
You should create a root file, index.htm or index.html, for this directory
that is the starting point for your web. If you use your URL without a filename,
this root filename will be supplied automatically by the server. PS: The tilde, ~,
is to the left of the exclamation point, !, on most keyboards.
Note: All the HTML documents and supporting files that you create for your
home page must reside in your UNIX http directory or subdirectories.
This includes text, graphics, and sound files. And all the files and directories
within the http directory must have permissions set so that anyone can read
them. Therefore, every time you place a new file in your http directory, you
may have to run chmod in order to "adjust the permissions".
Attach to your http directory (cd /export/home/username/http)
At the prompt, type cd http to position yourself within your web directory.
This places you in your http directory /home/username/http.
See whether your files are correct already. Type "ls -la | more" PS:
The | character is above the \ character
on most keyboards.
Adjust most files to be readable by issuing this command: "chmod
744 filename" Replace "filename" by the actual
name (or correctly wildcarded name) of the file you intend.
This can also be done via WS_FTP by right clicking the filename and choosing "chmod(UNIX)".
Your setting must not allow "others" to have write
permission to your files or directories!
Summary:
chmod 744 filename will grant read access to others and all
access to yourself. Usually, this is what you will want for HTML, CLASS, PDF,
DOC and all other downloadable files.
3. Create
a home page and other files (directories/folders, HTML files, images, scripts,
etc.) to be transferred from your PC or MAC to your web location
on webs.csu.edu, a web server.
To locate your webpage on the web server, you would need to
know the address of your homepage. It will follow the scheme below:
http://webs.csu.edu/~myusername
You would
replace "myusername" with your CSU UNIX account name, for example, "bscoe".
Use your own user name.
Would be:
http://webs.csu.edu/~bscoe
4. Transfer
your documents.
FTP, File Transfer Protocol
The following information is needed to use configure an FTP client like MS's
Web Publishing Wizard, Netscape Composer, or WS_FTP for use with the web directory
structure.
Using the ficticious bscoe as an example:
Profile Name: A name of your choosing, like your last name.
DOMAIN: webs.csu.edu
URL: http://webs.csu.edu/~bscoe
PATH: /export/home/bsabc/http
5. Adjust
your http permissions manually with the chmod command, only if you are
having problems updating your files:
The command is chmod
744 myfile.htm.
Now that you have a new, completed document, you must adjust your http permissions
so that Internet surfers can view your document on the Web. Remember, every
time you place a new file in your http directory, (e.g., "essay.html"),
you must chmod 744 filename in order to "adjust the permissions."
6. View
your document with a browser, then make corrections and reinstall or resave
files.
You can now view your saved HTML document with a Web browser in order to see
if your HTML document has translated into a satisfactory presentation. Your
browser should include a procedure for selecting a URL for viewing, probably
under the "File" menu. In modern browsers you may just type the URL
in the wide viewing window marked "Location:".
Remember two things: (1) save the changes in the editor and (2) reload
the changes in the browser. If you edit your HTML UNIX file, (e.g., "index.htm"),
save the changes. Return to your browser and "Reload" the document.
The changes will be reflected in the on-screen display.
You'll probably find yourself shifting back and forth from the UNIX editor
to the browser, making adjustments, then viewing the Web presentation, making
more adjustments, and so on.
For any web related problems with
this webpage, please e-mail.
|