-
1. Install required packages
sudo apt-get install cvsd
-
2. Adjust daemon parameters
Open the configuration file:sudo
vi
/etc/cvsd/cvsd.conf
# This is to avoid the "address already in use" error when starting cvsd:
Listen 0.0.0.0 2401
# You may want to change the root folder where your repositories will be created:
RootJail /var/lib/cvsd
# Go to the end of the file, and enter lines like these, one for each repository you need:
Repos /project1
...
-
3. Create and initialize repositories
sudo mkdir /var/lib/cvsd/project1
sudo cvs -d /var/lib/cvsd/project1 init
-
4. Change root folder owner to cvsd
sudo chown cvsd:cvsd /var/lib/cvsd -R
-
5. Create repository users
sudo cvsd-passwd /var/lib/cvsd/project1/ john
sudo cvsd-passwd /var/lib/cvsd/project1/ mary
-
6. Fire up (or restart) the daemon
sudo /etc/init.d/cvsd restart
-
7. Create a reference to the repository and use it!
Open a terminal, and enter the following commands:export CVSROOT=:pserver:fabio@localhost:2401/project1
cvs login
...
cvs logout
8. import project to repository
一个项目的首次导入 cvs import -m "write some comments here" project_name vendor_tag release_tag 执行后:会将所有源文件及目录导入到/path/to/cvsroot/project_name目录下 vender_tag: 开发商标记 release_tag: 版本发布标记