CVS Installation on Ubuntu
Login to server as root.
Install CVS files:
apt-get install cvs
Install the CVS server:
apt-get install cvsd
After installing some file it will prompt (UI) for your repository name.
By default it provides 2 repos
demo
myrepos
Either you can remove these and add one new or let it be there and add new one.
Let say add '/cvsrepo'. Click the OK to close the UI.
If the folder cvsrepo does not exist, then create it.
cd /var/lib/cvsd
mkdir cvsrepo
Initialize the repository
cvs -d /var/lib/cvsd/cvsrepo init
Create a user and password to access the cvs repository (cvsrepo):
cvsd-passwd /var/lib/cvsd/cvsrepo +cvsuser
(cvsuser is the user name who is going to access the cvs repo.
It will ask password for user 'cvsuser' supply the password)
If you want to add more user follow the same..
cvsd-passwd /var/lib/cvsd/cvsrepo +newuser
Change the following
vi /var/lib/cvsd/cvsrepo/CVSROOT/config
Change "SystemAuth=no"
Just make sure the cvsrepo is added.
Open the /etc/cvsd/cvsd.conf file
vi /etc/cvsd/cvsd.conf
Go to the end of the file.
If below line is there then its fine otherwise add the following line
Repos /cvsrepo
then restart cvsd:
/etc/init.d/cvsd restart
Give the right permission to the repo:
cd /var/lib/cvsd
chown -R cvsd:cvsd cvsrepo
Test installation:
cd to some dir
cvs -d :pserver:cvsuser@localhost:/cvsrepo login
cvs -d :pserver:cvsuser@localhost:/cvsrepo checkout .
If its checking out without any error then it means all is well.
Then you can create the projects (module) in cvsrepo.
No comments:
Post a Comment