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 in www 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.
You can also put your files on your stu space directly (eliminates the need
to use the n-drive). Follow the procedure above, but instead of putting them
into the www directory, you can create other directories under your home
directory.
Use putty to access the terminal window. Again, use the stu.... url to
connect.
From a Mac
- Using a tool such as Cyberduck (that you will find in the Mac lab), you
set the connection to stu.cs.jmu.edu.
- Create a new directory in www to house your files (such as PA4).
- Drag and drop your files into the dirctory you just made.
- Check your work by going to the webpage http://w3stu.cs.jmu.edu/userid/PA4.
You can also put your files on your stu space directly (eliminates the need
to use the n-drive). Follow the procedure above, but instead of putting them
into the www directory, you can create other directories under your home
directory.
To access the terminal window on stu, first go to the terminal window
on your Mac. Use ssh -l userid stu.cs.jmu.edu.