Setting Up A Website On Your Account

Some basic account info
Adjusting your account
Some site info
Making webpages
Transferring files to your account
Additional Resources


Some basic account info

1. All accounts are stored on one large computer.  Does drake sound familiar?
2. Each account is given 20 Mb of free space - the equivalent of 14.5 floppy disks.
3. Using over 20 Mb puts you in a 7 day warning period.
   - Failure to free up space within a week causes drake to put restrictions on your account.
   - Restrictions include blocking all of your incoming and outgoing e-mails
   - Restrictions are removed when you finally free up sufficient space

BE WARNED!  CNU Webmail will NOT tell you when you're over the limit!
Using telnet is probably the fastest way to check on your account.  The various Windows PCs around campus have a link to it on the Start menu.  On your own computer, you can type the following on the run bar, or on the Location/Address bar for Netscape or Internet Explorer:  telnet://drake.cnu.edu

After logging in, you can check how much space you're using, by typing this:  quota -v
After pressing enter, you'll see something like this:

Disk quotas for jdoe (uid ######):
Filesystem    usage  quota  limit  timeleft  files  quota  limit  timeleft
/export/home   4792  20000  21000              517      0      0

As long as usage is smaller than quota, you're fine.  If not, a line like this shows up each time you telnet to your account:
vxfs quota: Over disk quota on /export/home, remove 528K within 7.0 days

It's one of the first lines that will pop up after logging in.  There's a bunch of text that comes up after it, so you may miss it.  Just check your quota occasionally, so it won't matter.

E-mails are the source of wasted space for most students, so go in Webmail and clean house now and then.  Remember that while regular e-mails use little space, those with attachments tend to use far more.  If you like an attachment, it's generally wise to save it to disk, then delete the message.  You should especially remember to check your sent mail folder occasionally, and clear out some of the stuff you've been sending everyone.

Return to top


Adjusting your account

You could make your site.  You could even load it onto your account.  Still, until you make a couple adjustments to your account, nobody will be able to see it.

1. Telnet into your account (refer to basic info if needed)
2. Type this:  chmod 711 .
   - The period at the end is important, so don't forget it.
   - This command gives others the most limited access to your account.
3. Type this:  mkdir www
   - Creates www folder
   - ALL files for your website must be in this folder.

Here's what's going on.
Originally, your account is set up so nobody can peek in.  It's like a room that only you can go in and out of.  Everyone else sees four brick walls with no entrance.

Step two lets others open folders or run files in your account, but prevents them from changing anything.  An additional catch is that they have to know in advance what they want to use, because they won't be able to see a list of what's in your account.  It's kind of like telling people "If you can name an item behind this closed door, I'll let you use it."

Step three works a little differently from step two, because new folders have slightly looser settings.  It's similar to the last example, except the items are now behind a door you can see through.

Basically, you need step two so people can access the www folder you make in step three.

Return to top


Some site info

Your site's web address:  http://users.cnu.edu/~username
Example:  http://users.cnu.edu/~jdoe

Directory of student pages:  http://users.cnu.edu/student.html
Directory of faculty pages:  http://users.cnu.edu/faculty.html
Directory of staff pages:  http://users.cnu.edu/staff.html

The directories are automatically updated every morning.  Your site must contain a page named home, index, or welcome before a link to your site will be added to a directory.

Return to top


Making webpages

On campus, the simplest programs to use when making webpages are Word, Front Page Express, and Netscape Composer.  Be careful.  Some things you do in Word or Front Page may not show up in Netscape.  Likewise, some things you do in Composer may not show up in Internet Explorer.  When using Word, you should use "Save as HTML" in the File menu as soon as you start.  This should save you from the irritation of various formatting problems if you make a document then try to convert it.

Advanced webmasters may need or want to write some of the code themselves.  On Windows PCs, you can use Notepad.  Almost every PC on campus has a link to it on the start menu.  If you want, you can go in your account and work on the webpage using emacs.  While you can access emacs using telnet, it's easier to work with using a UNIX machine in Einstein's or the back-most computer lab in McMurran.  Refer to the additional resources section at the end if you need help with UNIX or emacs.

Below is some extra information to be aware of as you make the pages of your site.
File names
Do not use spaces in the name of a file.
The first page of your site should be named home, index, or welcome
  - Affects what happens when someone goes to http://users.cnu.edu/~username
    1. Page exists and is automatically loaded
    2. Page doesn't exist - server displays list of contents of www folder
  - No other page on your site should have one of those three names.
  - Variations like home2 or indexB are considered completely different, and are, therefore, usable names for other pages.

Images
Try to avoid using large images, at least for a page's background.
An image is not a physical part of a webpage, so a copy of it will need to be saved on your site.
  - Think of a webpage as a window.  Is that tree outside a part of the window you're looking through?

Links
For files and pages on your site, you only need to enter the file name.
  - Don't forget the ending file type (.html .jpg .gif .wav etc...)
  - Pay attention to the actual file ending of your webpages. 
    Even though they are functionally identical, computers see index.HTM & index.HTML as two totally different files.
  - A link to another site requires the full web address.

E-mail
An e-mail link is still just a link.  You simply fill it in a little differently.  Pick whichever of the following you like.  Please note that the quotes used in the last two examples are only important if you are writing all the code yourself.  Word, Front Page, Composer, and similar programs take care of these little details on their own.
The simplest version:  mailto:jdoe@cnu.edu
Something fancier:  "mailto:John Doe<jdoe@cnu.edu>"
The next level:  "mailto:John Doe<jdoe@cnu.edu>?subject=A note for the unknown man"

Return to top


Transferring files to your account

With the various pages and files of your site gathered together, all that's left is to transfer them to your account.  To do this, you need an ftp program.  Every Windows PC on campus has a shortcut to WS_FTP on the desktop.

After logging in, you will be working with two main windows.
  - Left window is the computer you're using
  - Right window is your account on drake
Disk drives for your computer are listed at the bottom of the left window.
Double-click on folders or disk drives to open them.
Double-click on an individual file to send a copy of it to the other computer.
For multiple files, highlight what you want, then click the arrow pointing at the computer they will go to.

Remember, as mentioned in adjusting your account, that all files for your site must be copied to your www folder.

Return to top


Additional Resources

Online quick reference guides:  http://www.cnu.edu/cctr/documents.html
  - Telnet:  http://www.cnu.edu/cctr/telnet.html
  - UNIX commands:  http://www.cnu.edu/cctr/unix-base.html
  - WS_FTP:  http://www.cnu.edu/cctr/dialupguides/ftp
Downloadable software - http://www.cnu.edu/cctr/downloadbody.htm
  - CNU may not have the latest versions of all software.  You'll have to check the company sites for the latest versions.

Various useful handouts are available in the Hunter Creech Lab in Gosnold Hall.  Go in the right entrance of the building.  The large sign above the door makes the lab easy to find.  Go in and turn left.  Don't worry, no courses are taught here.  The handouts can be found on a large rack on the wall.  Technically, most of these handouts are designed for a school server other than drake.  Both servers, however, are UNIX machines, and around 99% of the information should carry over just fine. Advancing webmasters may want to stop by for some of the other handouts like the beginner's guide to Perl.

Those who are really interested in learning html, should get the following book:
"Creating Webpages with HTML - Comprehensive" by Patrick Carey
The bookstore has been carrying it for CPSC 216.  There are also several other bookstores in the area where you should be able to find it or order it.

If you need help, you can talk to the person at the computer center's help desk, or to one of the consultants on duty in the labs.  For assistance from the ACM web design team, go to http://www.pcs.cnu.edu/~acm/wwboard/DesignTeam.html  You can e-mail questions to any of the team members.  Also, if you know what you want, but want someone else to do the work, they can take care of that too.

Return to top

Made by Patrick Livingston
Created 9/6/2000  Last updated 3/20/2001