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:
- cd $HOME
- mkdir cvsroot
- chmod 770 cvsroot
- nano .bashrc
- add: “export CVSROOT=/home/(username)/cvsroot”
- ^X to save (hit “y”)
- cvs init
- chmod 700 cvsroot/CVSROOT
On Local Machine:
- cd $HOME
- sudo mkdir /var/cvsroot
- sudo chown user:group /var/cvsroot
- chmod 770 /var/cvsroot
- nano .bashrc
- add: “export CVS_LOCAL=/var/cvsroot”
- add: “export CVS_REMOTE=:ext:(remote_username)@(remote_server.tld):/home/(username)/cvsroot”
- add: “use_local_cvs(){ CVSROOT=$CVS_LOCAL }”
- add: “use_remove_cvs(){ CVSROOT=$CVS_REMOTE }”
- ^X to save
- restart terminal
- cvs init
- 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.







tuva January 18th
Really helpful. Thank you!
Add Yours
YOU