How to Set Up a Web Page

*Note: The specific instructions for setting up your account are for setting up web pages from an FAS account only. The other instructions are fairly general, however.

-----

Here's what you do:

Setting up the account
"Coding" your web page
Accessing your web page
Creating additional pages
Some notes about adding graphics
Add your page to the HCS' web directory
Troubleshooting

-----

Setting up your account:

What these commands do is set you up to create a web page. The "chmod" commands set the permissions to your FAS account so that people can access your web page. The "mkdir" command creates a directory, called "public_html" where all your web files will be stored. The "cp" line copies an example page into your public_html directory. This example page, called index.html, is now ready for you to customize.

-----
"Now what?"

Web pages are created using a hypertext markup language, or HTML. You'll need to learn some basic HTML to get started. The best comprehensive guide is the Beginner's Guide to HTML. It's also pretty easy to learn by example - if you see a cool web page and want to see how the effects were achieved, you can view the HTML "source code". In Netscape, go to "View..." in the Source menu. I think most browsers have an option to see the HTML source these days.

To edit your index.html file, you need to use a text editor and know HTML. The three most commonly-used text editors on our systems are pico, emacs, and vi. Pico is the easiest to learn, so I would recommend using it. At the prompt, type pico index.html and start typing. (There is documentation on pico at the Science Center if you need it.)

-----

"Now how do I access my page?"

The URL, or web "address" for your page will be at:

http://www.fas.harvard.edu/~username/

You don't need to add "index.html" to the end of that - the browser will automatically go to your index.html file.

-----

"How do I make additional pages?"

To make a second (third, fourth, etc., etc...) page, create a new file using pico. At the prompt, type pico filename.html and start typing. Afterwards, type chmod a+r filename.html to set the permissions so that people can access this page.

-----

"I'm trying to add some graphics, and it's not working right..."

The Science Center scanners scan in pictures in tiff format. Unfortunately, web browsers don't recognize tiff format - the pictures have to be in either gif or jpeg format. You can convert the format by using a graphics program.

Since you're probably already using a Mac to scan in pictures, you can find graphic conversion programs in the HCS Mac Archive. To get there:

Inside the Graphics folder are graphic conversion programs. Open up your tiff files, "save as" either gif or jpeg. Also remember, when you're transferring them into your UNIX account, to use binary transfer. If you're using "Fetch" send as binary transfer, Raw Data.

-----

"How do I add my name to the student directory?"

In the past, the web maintainers had to painstakingly type in every name. But now we have a nifty automated page-adding utility at http://hcs.harvard.edu/web/harvard/. Fill in the information and your page will be added to our directory very quickly.

-----

"I'm having a problem..."

-----