CVS configuration and use

xiaoxiao2021-03-06  22

First of all, we must strictly declare that many of the previous part of the article is a copy of the post from LinuxForum. If there is infringement of your copyright, go to QUACK lawyer to talk :) CVS is a version control system, it is unlike general The version control system, which can achieve the concurrency management of the version, you can have multiple users to change the same file while it does not affect each other, then different users are submitted to the CVS server to the CVS server, and have CVS. To make a comparison between files, these different parts are combined in accordance with some algorithms to form a new version. The CVS server is typically set on the UNIX system, although there are also server versions that can be run on Windows, but its performance performance is far better than in Unix, but CVS clients can work well. I briefly introduce it to the formation of CVS services under Linux and the settings of the client under Windows. First let's talk about how to set up a CVS service on Linux. Vost of the Linux distribution mixed seeds contains CVS. If you don't have or you are using the latest CVS version, you can go to http: / /www.cvshome.org goes to get the latest server version, which is based on version 1.10, which should be updated. If you are from http://www.cvshome.org. TAR.GZ form source code versions, refer to the relevant instructions in the source code, the installation guidance to compile the program, and then install, if you are installed with the CVS package in the Linux release, perform the corresponding package tube tool. For example, in Redhat, you can use the following command to install CVS. RPM -IVH CVS-1.10.8-3.i386.rpm After the installation is complete, we can make the appropriate configuration. General CVS is the use of PServer as a service in Linux, first to determine the entrance to the system / etc / services file with CVS service, generally have the following two lines: CVSPSERVER 2401 / TCP # CVS Client / Server Operations CVSPSERVER 2401 / UDP # CVS Client / Server Operations CVS service is started through inetd or xinetd.

For inetd, modify /etc/inetd.conf, add the following sentence: CVSPSERVER Stream TCP NOPS - Allow-root = / cvsroot PServer Due to the newer Linux release (such as: redhat7. X) use the new xinetd instead of inetd, you need to start the CVS service with xinetd, you need to enter the /etc/xinetd.d/ directory, then edit a text file (name casual), here is the file name with CVSPSERVER, The content of this file is as follows: Service CVSPServer {socket_type = stream wait = no user = root env = home = server = / usr / bin / cvs server_args = --allow-root = / cvsroot pserver} Note the above service Name must be like the CVS service name in the / etc / service file, in Server_Args line we specify that CVS uses the PServer authentication method, which may easily misunderstand the env = home = this line, the purpose of adding this line is In order to solve the error in the read /Root/.cvsignore file generated during the execution of some CVS operations, the above ENV is the meaning of the environment variable home when running the CVS service, so although the user who performs CVS is root, But because there is no HOME environment variable, CVS will not read the /Root/.cvsignore file. Here we have configured the file required for CVS, but to make CVS normally need to be set to users who need to use CVS, the following is how I configure CVS is used. First create a user group CVS, you can use GroupAdd or addgroup, you can also edit the / etc / group file directly to add this group, then add a user cvsroot, then modify the / etc / passwd file to make the CVSRoot user's default group is a CVS group Not a cvsroot group. Establish / CVSROOT directory, then modify / cVSROOT's home and attributes: #Chown cvsroot.cvs / cvsroot #chmod 755 / cvsroot (Original here is 771, but we have to configure cvsweb.cgi, then talk about). Initialize CVS: CVS -D / CVSRoot Init This CVS server can be used, with cvs -d: pserver: cvsroot @ host: / cvsroot login, enter the password of CVSROOT users on the server, no error prompt Successful. Here is the configuration of the client under Windows, I will only use WinCVS, I feel very good, don't remember those cumbersome commands :) I can find the corresponding download address from http://www.cvshome.org, in LinuxForum, 3M more downloads, 3M more a little. Start WinCVS Select Preferences in the Admin Menu and set CVSROOT in the Global page, which is: PServer: cvsroot @ host: / cvsroot.

转载请注明原文地址:https://www.9cbs.com/read-39947.html

New Post(0)