Skip to content

Instantly share code, notes, and snippets.

@alokedesai
Last active December 11, 2015 21:44
Show Gist options
  • Select an option

  • Save alokedesai/59410130148c530473c4 to your computer and use it in GitHub Desktop.

Select an option

Save alokedesai/59410130148c530473c4 to your computer and use it in GitHub Desktop.
How-to Host a Website on cs.pomona.edu

Host a Website Using the Pomona CS Server (Courtesy of Noah Mulfinger)

Quick Setup

  1. ssh into project2.cs.pomona.edu by doing ssh {your_username}@project2.cs.pomona.edu
  2. cp /home/nmulfinger/make_website.sh .
  3. ./make_website.sh
  4. There should now be an index.html file within /home/{your_username}/www that is served every time you visit cs.pomona.edu/~{your_username}

Full Instructions

  1. ssh into project2.cs.pomona.edu
  2. Move up a directory by doing cd ..
  3. Run chmod og+x on the directory for your username. For example, since my username is adesai, this would be chmod og+x adesai/
  4. cd into your username folder, i.e. cd adesai
  5. Run mkdir www to create a folder called www
  6. Make www executable by doing chmod og+x www/
  7. Put all of the contents for your site in this folder. For example, you can start by creating a simple index.html site that just says "hello world"
  8. Run chmod -R og+r * in this folder every single time you add files to make sure every single file is readable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment