Setting up CVS on Dreamhost

Edit: I just started using subversion and like it way better — CVS has been retired for now. This is partially because SVN works from my office and CVS doesn’t

This is just a simple way to setup CVS on your dreamhost account. My current setup is that I do most of my development on my laptop (OSX) and need to share the files with my desktop (debian) and host. I set it up so that I can switch between using my local repository (which is an external HDD) and my remote repository (dreamhost) depending on what I need and what I’m storing. I’m just freehanding this, so if there are any problems I appologize — they should be minor anyhow.

On dreamhost:

  1. cd $HOME
  2. mkdir cvsroot
  3. chmod 770 cvsroot
  4. nano .bashrc
  5. add: “export CVSROOT=/home/(username)/cvsroot”
  6. ^X to save (hit “y”)
  7. cvs init
  8. chmod 700 cvsroot/CVSROOT

On Local Machine:

  1. cd $HOME
  2. sudo mkdir /var/cvsroot
  3. sudo chown user:group /var/cvsroot
  4. chmod 770 /var/cvsroot
  5. nano .bashrc
  6. add: “export CVS_LOCAL=/var/cvsroot”
  7. add: “export CVS_REMOTE=:ext:(remote_username)@(remote_server.tld):/home/(username)/cvsroot”
  8. add: “use_local_cvs(){ CVSROOT=$CVS_LOCAL }”
  9. add: “use_remove_cvs(){ CVSROOT=$CVS_REMOTE }”
  10. ^X to save
  11. restart terminal
  12. cvs init
  13. chmod 700 /var/cvsroot/CVSROOT

Using

To store a project locally I just goto my project folder and type “cvs import (project_name) (user) (tag)”. This will then push all my project files to my external HDD.

If I want to put up a website or edit my libraries I first run “use_remote_cvs” to set the CVSROOT to my remote server, then run “cvs import (project_name) (user) (tag)”.

Thats it. When it prompts for a user password, type it in and hopefully all went well.




Comments

  1. tuva January 18th

    Comment Arrow

    Really helpful. Thank you!


Add Yours

  • Author Avatar

    YOU


Comment Arrow



About Author

Rob Hurring

Ruby, Rails, PHP, bash... oh my!