The first part of the CVS server configuration (version 1.10)
1, CVS overview and the installation of CVS server:
CVS is currently a popular and excellent version management and Control tool that is popular with most developers and systems management and is a powerful tool for managing other day-to-day documents, such as word working documents. This section will provide a simple, concise introduction to the installation, configuration, and usage of the CVS server to help you use CVS as quickly as possible for some version management and control efforts.
2, the installation of CVS server
The CVS server version can be downloaded from many places on the web, or it can be downloaded to the official CVS website. Depending on the system you are using, download the appropriate version and install it. Since most people currently use CVS server for versioning under Linux and Redhat Linux is one of the most popular Linux distributions, this article will be based on Redhat Linux. First download the CVS server RPM package, of course, you can download other ways of the package, such as source package, which is one of the advantages of Linux. The following command is then used to install:
RPM-IVH cvs-1.10.8-3.i386.rpm
3. Configure/etc/services Files:
The first thing to do after installation is to configure the CVS server's configuration file to work properly. First, add cvspserver to the services file to make it a Linux service, which is the portal to a CVS server routine, configured as follows:
Cvspserver 2401/TCP # CVS client/server operations
cvspserver 2401/UDP # CVS Client/server operations
4, configure xinetd, use xinetd to start the CVS server:
Go to the/etc/xinetd.d/directory, and then edit a text file, the name must be consistent with the/etc/services in the entry name Cvspserver, so here with Cvspserver as the file name, the contents of the file are as follows:
Service Cvspserver
{
disable = no
Socket_type = stream wait
= no
user = root
env = HOM e=
Server =/usr/bin/cvs
Server_args =-F--allow-root=/home/cvsroot pserver
//Designated authentication method for PServer, note:-f
Note: A, the name behind the service must be the same as your CVS service name in the/etc/service file.
B, env = home= The purpose of this line is to resolve the error of reading the/root/.cvsignore file while performing some CVS operations, which means that the environment variable home is empty when the CVS service is run. This way, although the user performing CVS is root, CVS will not be reading/root/.cvsignore files because of the absence of a home environment variable.