How do I publish my web pages on the department WWW3 server?

CScompute01 mounts all of your files.  The legacy directory structure remains unchanged for now. In the next phase, we plan to reorganize it and create a more organized and logical directory structure.

When logging into cscompute01, you will find yourself in the HOME directory from the old compute servers (/home/facfs1/yourCSusername).  However, to access files in the HOME directory from the old compserv servers, you should navigate to /www/home/facfs1/yourCSusername instead.

The new servers utilize the CS Dept Active Directory rather than the NIS system used on the old servers. 

There are three main locations for your data:

  • Research and personal files are location is /home/facfs1
  • Website files are located /home/www3/home/facfs1
  • Course files are located in /home/www3/home/courses

NEW SERVER INFORMATION:

  • Log onto cscompute01.cs.stonybrook.edu (130.245.27130) via SSH on port 130
  • Use your CS department email credentials (same as your CS e-mail)

Please review the updated instructions for web publishing below, as the connection process and access details have changed.

LOGGING IN AND WEB CONTENT LOCATION:

To manage or update your HOME page content: 

  1. Connect to the access server:
    ssh -p 130 yourCSusername@cscompute01.cs.stonybrook.edu
  2. Upon login, you’ll land in your HOME directory (e.g., /home/facfs1/yourCSusername).
  3. Switch to your website files location
    $ cd public_html
    This is where all your web content (e.g., index.html) resides.

You can modify the website content using SSH or a web editing tool. If you make changes to the files locally, you can upload them to this location by following the file transfer instructions.

To manage or update the COURSE content available at web address:  https://www3.cs.stonybrook.edu/~csexxx or https://www3.cs.stonybrook.edu/~isexxx

  1. Connect to the access server using the course account
    Example. ssh -p 130 csexxx@cscompute01.cs.stonybrook.edu
  2. Upon login, you’ll land in the COURSE directory (e.g., /home/www3/home/courses/csexxx).
  3. Your website files are located the public_html subdirectory

You can modify the website content using SSH or a web editing tool. If you make changes to the files locally, you can upload them to this location by following the file transfer instructions.

FILE TRANSFER INSTRUCTIONS:

You can upload or download your website files between your computer and the server using scp or rsync.

For Mac and Linux Users:
    Use Terminal

For Windows Users:
    Use Windows Terminal with scp (Windows 10/11 with OpenSSH enabled)
    OR
    Use WinSCP for GUI interface. You will have to download and install WinSCP

Upload file(s) to the server:

File path for your webpage    :  /home/www3/home/facfs1/yourCSusername/public_html/
File path to your course page: /home/www3/home/courses/csexxx/public_html/

scp -P 130 path/to/local/file.html yourCSusername@cscompute01.cs.stonybrook.edu: <File path>

e.g.
scp -P 130 path/to/local/file.html yourCSusername@cscompute01.cs.stonybrook.edu: /home/www3/home/courses/cse101/public_html/

Download file(s) from the server:

scp -P 130 yourCSusername@cscompute01.cs.stonybrook.edu:/home/www3/home/facsc1/yourCSusername/public_html/file.html path/to/local/destination/

Using rsync (for syncing entire directories):
rsync -avz -e "ssh -p 130" path/to/local/dir/ yourCSusername@cscompute01.cs.stonybrook.edu:/home/www3/home/facfs1/yourCSusername/public_html/

metadata preserved (-a), show what’s happening (-v), compress the data (-z), and connect using SSH on port 130 (-e)