Setting up access to CVS

To get access to the CVS repository, you must add the following lines to your login script (csh). (usually ~/.login) :
  setenv CVSROOT :ext:yourlogin@forms4usall:/project/cs/iceberg/b/forms4usall/cvsroot
  setenv CVS_RSH ssh
If you don't like using vi to enter log entries, also add the following line:
  setenv CVSEDITOR emacs
If you haven't used CVS before, here are some references (anyone have better links?):

Updating the website

The web files are located in cvsroot/www. Checkout the files to the current directory using the command:
  $ cvs co www
This will create a www directory in the current directory which contains all the web files. Edit these files with your update and save. To commit, run the following two commands in the www directory:
  $ cvs update
  $ cvs commit
NOTE: you should always update before you commit, in case someone has changed the files since you checked them out.
Once you have a copy checked out, you only need to do an update to get the most recent files.

IMPORTANT: The files stored in the cvs repository (cvsroot/www) are not the files that are accessible through the web. You must ssh to forms4usall or dwight and run the following script to update the files accessed by the webserver:

  $ /project/cs/iceberg/b/forms4usall/webupdate

WARNING: Do NOT edit html files using MS Word, or I will personally track you down and smack you! Have a nice day =)

CVS without passwords

(not sure if this will work for everyone)
  1. First you need to have RSA keys for ssh in your home directory.
      $ ls ~/.ssh
    
    If you have id_rsa and id_rsa.pub already, skip to the next step. Otherwise, you need to generate a keypair:
      $ ssh-keygen -t rsa
    
    Accept the default location for the key and enter no password.
    (Note: having no password on the key is usually not a good idea, but for this application its the easiest way without running an ssh-agent for each session. If anyone knows an easy way to do this please let me know)

  2. Add the public key to the authorized_keys2 file.
      $ touch ~/.ssh/authorized_keys2
      $ cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys2
      $ chmod 600 ~/.ssh/authorized_keys2
    
    Now you should be able to ssh to other machines without typing your password and use cvs commands. (Note: this only works for machines using ssh2)

last modified on 7/13/2003 sjiang@cs