Using your stu server web space

From the CS 248 Lab

  1. 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").
  2. ~ is the symbol for the home directory and can be used in your path name.
  3. Make the sub-directory called ~/www/PA4.  (Where PA4 is the subdirectory into which you will place your pages.)
        mkdir ~/www/PA4
  4. Make the ~/www/PA4 directory accessible to the pubic by setting its permissions:
        chmod a+r,a+x ~/www/PA4
  5.     This sets the permissions to read and execute for all users.
  6. Mount your n-drive. Change your working diretory to be the directory in which you created the files for this lab.
  7. 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)
  8. Make the files in ~/www/PA4 accessible to the pubic by setting their permissions:
        chmod a+r ~/www/PA4/*
  9. 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

  1. Using the tool WINSCP, you set the connection to stu.cs.jmu.edu.
  2. Create a directory to house your files (such as PA4).
  3. Drag and drop all of your files into your www directory on the stu machine from your local machine.
  4. 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?