Creating a basic home page and directory on unix1: ***** if you run the "makehp" command on Unix, then it will set up your public_html directory and create an index.htm file for you. Once you've run "makehp", you can disregard the balance of this document. A good introduction to HTML coding is at http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html If you want to use FrontPage to edit your web pages, please send e-mail to doug@cc.ysu.edu to request FrontPage Extensions be installed on your account. ***** The remainder of this page assumes you understand basic unix commands (cd, mkdir, chmod, rm, cp, cat, mv) and you're familiar with HTML. Having said that: The first step (handled by "makehp" if you use that) is to set up your public_html directory properly. 1) cd $HOME 2) chmod a+x $HOME 3) mkdir public_html 4) chmod 755 public_html Anything put into this $HOME/public_html directory will be accessable if the individual file permissions are correct. Run chmod a+r * in your public_html directory to set the file access right. If you next type in lynx http://cc.ysu.edu/~username/ (replace username with your login-id - ie s0123456, dmsewell, etc) then you should get a list of everything that's in the directory. This is what others will see. This may not be what you want, however - you may want a fancy page with nice formatting, in-line pictures, and the like. To do this you need to create a file called "index.htm". You can do this with your favorite text editor - "pico" if you're comfortable with using "pine", or "ee" or "vi" if you know how to use those. Creating a HTML page is beyond the scope of this document, but here are a few tips: The minimal structure of a WWW page is like this:
starts a new paragraph.
text is adjusted to fit the width of the browser, unless
pre-formatted text is indicatedThe only thing you need to put in the "head" segment (between and is a title line. The "body" segment is where everything else goes. You can do like what my page did for a long time, just put text in it. Beyond that, you can get into doing inline graphics, hot links, and bulleted lists. I have use all of these in my home page at various times. All .htm (and other) files that are to be readable should be mode 644. Bulleted lists are done like this:
Hot links look like this:
Click here for another gif of me!
(actually "Click here" thingies are considered poor style, it emphasises
the "click" rather than the object being offered, and assumes that people
have "click-able" interfaces. ... it's better to do something like
mumble muble mumble another gif of me mumble mumble.
That's enough to keep you busy for a while.