Using your stu server web space
From the CS 248 Lab
- Log into stu. (Either 1 or 2) You have
web space on stu. There is a sub-directory called www in your home directory on stu.
Whatever you put into www will be accessible from the web (provided you
give read access to the "public").
- ~ is the symbol for the home directory and can be used in
your path name.
- Make the sub-directory called ~/www/PA4.
(Where PA4 is the subdirectory into which you will place your
pages.)
mkdir ~/www/PA4
- Make the ~/www/PA4
directory accessible to the pubic by setting its permissions:
chmod a+r,a+x
~/www/PA4
This sets the
permissions to read and execute for all users.
- Mount your
n-drive. Change your working diretory to be the directory in which you
created the files for this lab.
- Copy (use the cp command) your files into the ~/www/PA4
directory. The command to do this will look something like this:
cp sourcefile
~/www/PA4 (to copy all sourcefiles, you would type *.* in place of the sourcefiles)
- Make the files in ~/www/PA4
accessible to the pubic by setting their permissions:
chmod a+r
~/www/PA4/*
- To access this from the web, use the URL
http://w3stu.cs.jmu.edu/userid/PA4
where the userid
is your userid. Since your javadocs have an index.html, that is the
automatic initially loaded page if a more specific page is not
specified.
From Windows or remotely
- Using the tool WINSCP, you set the connection to stu.cs.jmu.edu.
- Create a directory to house your files (such as PA4).
- Drag and drop all of your files into your www directory on the stu machine from your local machine.
- Check your work by going to the webpage http://w3stu.cs.jmu.edu/userid/PA4.
NOTE: WINSCP is available in the Windows lab (250).
From a Mac
Anyone care to give me information so that I can fill this in for your future colleagues?