Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

CVS Server: Installation

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

2/28/2014

CVS Server

CVS Server
CVS is a version control system. You can use it to record the history of source files. Installation Configuration Add Projects

Installation
To install CVS , run the following command from a terminal prompt: s u d oa p t g e ti n s t a l lc v s After you install cvs, you should install xinetd to start/stop the cvs server. At the prompt, enter the following command to install xinetd: s u d oa p t g e ti n s t a l lx i n e t d

Configuration
Once you install cvs, the repository will be automatically initialized. By default, the repository resides under the /srv/cvs directory. You can change this path by running following command: c v sd/ y o u r / n e w / c v s / r e p oi n i t Once the initial repository is set up, you can configure xinetd to start the CVS server. You can copy the following lines to the/ e t c / x i n e t d . d / c v s p s e r v e rfile. s e r v i c ec v s p s e r v e r { p o r t=2 4 0 1 s o c k e t _ t y p e=s t r e a m p r o t o c o l=t c p u s e r=r o o t w a i t=n o t y p e=U N L I S T E D s e r v e r=/ u s r / b i n / c v s s e r v e r _ a r g s=fa l l o w r o o t/ s r v / c v sp s e r v e r d i s a b l e=n o } Be sure to edit the repository if you have changed the default repository (/srv/cvs) directory. Once you have configured xinetd you can start the cvs server by running following command: s u d o/ e t c / i n i t . d / x i n e t dr e s t a r t

https://help.ubuntu.com/12.04/serverguide/cvs-server.html

1/2

2/28/2014

CVS Server

You can confirm that the CVS server is running by issuing the following command: s u d on e t s t a tt a p|g r e pc v s When you run this command, you should see the following line or something similar: t c p 0 0* : c v s p s e r v e r * : *L I S T E N

From here you can continue to add users, add new projects, and manage the CVS server. CVS allows the user to add users independently of the underlying OS installation. Probably the easiest way is to use the Linux Users for CVS, although it has potential security issues. Please refer to the CVS manual for details.

Add Projects
This section explains how to add new project to the CVS repository. Create the directory and add necessary document and source files to the directory. Now, run the following command to add this project to CVS repository: c dy o u r / p r o j e c t c v sd: p s e r v e r : u s e r n a m e @ h o s t n a m e . c o m : / s r v / c v si m p o r tm\ " I m p o r t i n gm yp r o j e c tt oC V Sr e p o s i t o r y ".n e w _ p r o j e c ts t a r t You can use the CVSROOT environment variable to store the CVS root directory. Once you export the CVSROOT environment variable, you can avoid using -d option in the above cvs command. The string new_project is a vendor tag, and start is a release tag. They serve no purpose in this context, but since CVS requires them, they must be present. When you add a new project, the CVS user you use must have write access to the CVS repository (/srv/cvs). By default, the src group has write access to the CVS repository. So, you can add the user to this group, and he can then add and manage projects in the CVS repository.

https://help.ubuntu.com/12.04/serverguide/cvs-server.html

2/2

You might also like