1 CVS installation 1.1. General linux contains a CVS package, first check if it has been installed: rpm -qa | grep cvs1.2. If you don't go to http://www.cvshome.org to download the latest version installation. 2. Configuration of CVS 2.1. Edit the / etc / services file, add the following two lines: CVSPSERVER 2401 / TCP # CVS Client / Server OperationsCVSPServer 2401 / UDP 2.2. If you start with inetd, modify /etc/inetd.conf Add the following sentence : CVSPSERVER STREAM TCP NOWAIT ROOT / USER / BIN / CVS CVS - ALLOW-ROOT = / CVSROOT PSERVER 2.3. If you enter the /etc/xinetd.d/ directory via xinetd, then edit a text file, the content is as follows (note some to place a space, some do not, be careful): service cvspserver {disable = nosocket_type = streamwait = nouser = rootenv = HOME = server = / usr / bin / cvsserver_args = -f --allow-root = / cvsroot pserverlog_on_success = USERIDlog_on_failure = UserID} If you need to use multiple code warehouses, modify the Server_args section, for example, you need three warehouses Cvsroot, Release and Test, modified to: Server_args = -f --allow-root = / cvsroot - allow-root = / Release - Allow-root = / test pserver
2.4. Create a group CVS, create a managed user cvsroot, create a warehouse directory / cvsroot. 2.5. Modify / cvsroot Properties Chown CvsRoot: CVS / CVSROOT CHMOD 771 /CVSROOT2.6. Initialization is initialized by cvsroot users: cvs -d / cvsroot init 2.7. Restart xinetd: /etc/rc.d/init. D / Xinetd Restart 2.8. Look at whether the CVS service is running: netstat -lnp | grep 24013. CVS User Management 3.1. Create CVS Public User CVSPUSERADD CVSPUBUSEMOD -G CVS CVSPUB3.2. Edit / etc / passwd file. Change the default group of CVSROOT and CVSPUB users into group CVS. 3.3. Add CVS users to / cvsroot / cvsroot directory, run: htpasswd passwd username and enter the user's password. Edit the Passwd file, add ":" and corresponding equivalent system users (here is CVSPUB) without a line. In this way, the CVS user is added. The htpasswd is a command of apache. Generally located in the / usr / bin directory. 3.4. Set the read permissions: Edit the file in / cvsroot / cvsroot directory (not existing) readers, add the CVS user name that needs to be read. 3.5. Set the write permission: Edit the file in / cvsroot / cvsroot directory (not existent) Writers, add CVS users who need to write permissions here. Each user is one line. Note: This user does not appear in the readers file, otherwise write permissions do not take effect (do not know whether it is bug or design). 4. Configure WinCVS4.1. Set the CVS Warehouse, Admin -PReferences Enter :: PServer: User Name @ 10.17.47.136: /cvsroot4.2. Admin → Login Login CVS, you will prompt your password, the password is to modify the above with htpasswd That, you can use CVS after entering your password. 4.3. Checkout Module CREATE → Checkout Module Enter the module name AAAA, then select the local working directory, then check out the AAAA module.
5. Configure Eclipse's CVS Warehouse 5.1. Turning out CVS Warehouse Module Click here to right click to select NewàResposure Location ... option to create a CVS warehouse in the menu. 5.2. Add CVS Warehouse 1) Enter CVS Address, such as: 10.17.47.136 2) Enter the root directory of CVS, such as: / cvsroot3) Enter your username. 4) Enter the password