CVS installation and configuration
Hello everyone
I have been given a task to install and configure CVS(Control Version system) on linux server in such a way that every user with a user id and password in the network should be able to connect to CVS server where all code resides.Can anyone tell me the steps by which i can install and configure CVS to fulfill my boss requirement. Thank you in advance. |
Here's the first thing you ought to do: go to http://ximbiot.com/cvs/manual and read it. I'm not being a smart alec, you need to have an understanding of what the Concurrent Versions System (CVS) is, how it works and what you need to do to get going.
Assuming your distribution either came with or provides a package for CVS, it will or will need to be installed on the server you've selected. You will need to work on that server and you will need root access there. Until you have completed the following, do not attempt to execute CVS. You will need to look at /etc/services. There should be these entries Code:
cvspserver 2401/tcp #CVS network server You will need to add a line to /etc/inetd.conf (or wherever inetd.conf lives) of this form if it's not already there: Code:
#CVS services Code:
prompt: head /etc/inetd.conf Now, you may or may not want to do this but it's something I've done for years and I find it useful. I add a group (to /etc/group on the CVS server named cvsusesrs. By default, /usr/local/cvsroot (your source code repository) will be owner and group root. I change the group to cvsusers and change the mode of the directory (only the directory) to 0775; i.e., use your system groupadd utility to do this (see the man page for how to use the version on your system) then Code:
chgrp cvsusers /usr/local/cvsroot You must add an environment variable named CVSROOT on the CVS server, and it needs to be user-specific to at least the root account and, optionally, the cvsadmin account if you did that. The best way to do that is in a home directory .profile file Code:
prompt: vi .profile Code:
prompt: vi /etc/hosts Once you've got all that done, logged in as root, you can (finally!) execute Code:
prompt: cvs init From here on, you need to really dig into the manual for how to configure things for whatever type of access you want to allow -- and every user will need to be familiar with the commands needed along with the environment variable setting (they'll all have to have CVSROOT set individually). The above is the result of a wasted youth and I hope it helps some. |
I have successfully configured CVS server and now developers are able to connect to cvs repositories.Now the problem is that i want that some users should be able to both read and write in the repository and some users should be only able to read in the repository.How can i do that.Another thing is that one of the foreigner client wants to see the code of a project.How can he connect to the repository and can only view that specific project code and not any other projects.
|
All times are GMT -5. The time now is 07:23 AM. |