Add New CVS Instance on Ubuntu

1. Add new directory.

$ sudo mkdir moa_hrp



2. Initial the directory.

$ sudo cvs -d /var/lib/cvsd/cvsrepo/moa_hrp init


3. Check your CVSROOT directory, there is no passwd file.



4. Create a new user.



5. Add new repository to the CVS server.



6. Add this line of code.



7. Restart your CVS service.



8. Try to login.



9. Done.

setup cvs server on ubuntu

1. open terminal – (for this tutorial, I am using puTTY from Windows 7 to Ubuntu 10.04)

2. install cvs

3. install cvsd

4. check ‘myrepos’ directory in /var/lib/cvsd

5. initial the directory

sudo cvs -d /var/lib/cvsd/myrepos init

6. modify the file /var/lib/cvsd/myrepos/CVSROOT/config

sudo vi /var/lib/cvsd/myrepos/CVSROOT/config

add the line into it:


save and exit vi

7. create LockDir directory

sudo mkdir /var/lib/cvsd/tmp/myrepos

8. add user and define your password – I created a user named ‘faizal’ with ‘password’

sudo cvsd-passwd /var/lib/cvsd/myrepos faizal

9. edit cvsd.conf file and save it

sudo vi /etc/cvsd/cvsd.conf

go to end of line and change this part

Listen 2401

if you are connected through LAN, change from to

10. change ownership with recursive for /var/lib/cvsd directory

sudo chown -R cvsd:cvsd /var/lib/cvsd

11. restart cvsd and check status

12. test your cvs connection from localhost

13. test your cvs server from different machine in the same network

14. finish – yeay!