Uploading Your Documents to the Web

at CSU (especially in the Chemistry Department)

There are three main ways of placing your documents on the Web at CSU in the Chemistry Department.

All the UNIX You Need to Know You Learned in Kindergarten

The first two require that you know a little bit of UNIX command language. The SGI has a Mac/Windows- like graphical user interface, but you can't work remotely if you use it. Here is a list of those commands that you will need.

Ideally, once you have your account set up, you won't have to logon and use UNIX, but you can upload your various files using an FTP program on your PC or Mac or using your web browser.

Setting Up Your Account on lamar or on one of the Chemistry SGI's

I will assume for this set of instructions that you already have a lamar account or a franklin or pauling account. If you do not, please see the appropriate system administrator for each computer.

These instructions are the same for both lamar or the Chemistry SGI except where special instructions are given for lamar.

  1. Log into your account using telnet.
     
  2. Create a directory called public_html with the mkdir command.

    mkdir public_html

    Only files and directories found in the public_html directory will be visible on the web.
     
  3. Change the permissions on this directory so that everyone can see files and directories in it.

    chmod 755 public_html

    On the SGI's files and directories that you create or upload will automatically have the proper permissions. On lamar you must change the permissions each time you create or upload a new file. This can be done quickly in either of two ways:
     
    chmod -R 755 public_html
     
    or
     
    cd public_html
    chmod -R 755 *
     
  4. If you want to create any sub-directories in the public_html directory use the mkdir. Don't forget to change the permissions to 755 of any new directories that you create.
     
  5. Files that you place into this directory are visible on the web at the following URL:
     
    For lamar: http://lamar.colostate.edu/~login_id/
    For the chemistry SGI's: http://www.chm.colostate.edu/login_id/

I am going to assume that most people will prefer to author their web documents on their Mac or PC and then transfer them to the web server, rather than edit them directly on the web server. lamar has a fairly easy to use editor called pico that can be used to edit directly. You can also use emacs. The only editor on the SGI's is the difficult to use vi unless you do your work at a workstation where you can use jot (a graphic text editor) or webmagic (a graphic HTML editor).

Uploading Your Files

Instructions for HTML authoring are found here. Once you have a document written, you can get it onto the web server using an FTP program or using Netscape Navigator. I will present instructions for uploading documents with Netscape Navigator.

  1. In Netscape Navigator (version 2 or higher), type in the following URL in the location window or using the Open Location... command:
     
    For lamar uploads:

    ftp://login_id@lamar.colostate.edu/user_dir/login_id/public_html/

    where user_dir is the lamar directory where your home account is found (probably a single letter--mine is e) and login_id is your home directory. You can find this information out by using the pwd command when logged on to lamar. For example, to FTP to my account on lamar I use:

    ftp://grayt@lamar.colostate.edu/e/grayt/public_html/

    For SGI chemistry uploads:

    ftp://login_id@pauling.chm.colostate.edu/usr/people/login_id/public_html/

    or

    ftp://login_id@franklin.chm.colostate.edu/usr/people/login_id/public_html
     
    where login_id is your login ID for that particular computer. My home account is on boys.chm.colostate.edu so I would use:

    ftp://grayt@boys.chm.colostate.edu/usr/people/grayt/public_html/
     
    Hit return or the Open button.
     
  2. A dialogue box will appear prompting you for your password for that account. Notice that you are not really using Netscape to browse the web. You are using it as an FTP client.
     
  3. The browser window will display a directory list of the public_html directory. It should be the same list that appears when you use the ls -la command in UNIX. It is a good idea at this point to create a bookmark of this page so you don't have to always remember how you got there. You will still have to enter your password each time. If you want to put the document into a different directory than the top-level public_html, click to that directory before proceeding.
     
  4. Use the File, Upload File... command. A file dialogue box appears. Locate the file that you want to upload and hit the Open button. The file will be copied to the web server. The directory list should be updated and the file should now appear on the list. On the Chemistry SGI's this file is now available on the web if there is a link to it or if users know the address. On lamar you will have to log on via telnet in order to change the permissions of that newly uploaded file as discussed in the previous section.

A Web Server on Your Desktop

There are several easy to use web servers that run on your desktop computer. These require that you have permanent IP address (ideally, with a hostname listed in CSU's host list for domain name service) and that you must leave your computer on all the time. The big advantage of using this method is in terms of file management. You can do all of your work in your familiar Mac or Windows desktop working environment and there is none of the inconvenience of FTP or UNIX. When you edit a document, the revised document is immediately available--there is no need to upload the edited version. The other advantage is that you get to manage your own web server--you can easily track your web site's use, you can configure it to perform novel functions, etc. Of course, this is a disadvantage is you don't like doing this sort of thing--however, most of the tools that I will describe below are very easy to use.

There are several options for you if desire to go this direction. MacOS 8 and the latest shipping version of the Windows 95 both come with built in web servers. For earlier versions of the MacOS, you can buy the Personal Web Sharing package for $20. For earlier versions of Windows 95, you can download the software for free.

Macintosh options (not meant to be exhaustive)

PC options - actually, Windows95 options (also not meant to be exhaustive)


Terry M. Gray
Computer Support Scientist
Department of Chemistry
Colorado State University

October 17, 1997