Add New CVS Instance on Ubuntu

1. Add new directory.

$ sudo mkdir moa_hrp

2013-10-19_154650

 

2. Initial the directory.

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

 

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

2013-10-19_154833

 

4. Create a new user.

2013-10-19_154801

 

5. Add new repository to the CVS server.

2013-10-19_155027

 

6. Add this line of code.

2013-10-19_155100

 

7. Restart your CVS service.

2013-10-19_154930

 

8. Try to login.

2013-10-19_154954

 

9. Done.

Advertisements

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:

SystemAuth=no
PamAuth=no
LockDir=/tmp/myrepos

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 127.0.0.1 2401

if you are connected through LAN, change from 127.0.0.1 to 0.0.0.0

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!