Today installed CVS under Linux, tried 3 versions, and finally successfully. . .
Author: lihuc Posted: 2003-09-19 11:03:47
Here is a successful version, I hope to give you a reference:
After installing CVS, the server and client are installed, mainly to configure the server side:
1. Check if you install CVS (my RedHat7.3 is installed)
RPM -QA | GREP CVS
Generally installed in / usr / bin / cvs, if not installed,
Www.cvshome.org Download a newest RPM installation
2. Establish a CVS user group to facilitate managing CVS users
GroupAdd CVS
3. Establish a CVSRoot user and the directory of the CVS group
UserAdd -g cvs -g cvs -d / home / cvsroot cvsroot
4. Add a password for the CVSROOT user
Passwd cvsroot
5. Change / home / cvsroot directory properties
CHMOD 775 / HOME / CVSROOT
6. Initialize the CVS source code library, this operation generates directory / home / cvsroot / cvsroot, under the initialization file
CVS -D / home / cvsroot init
7. Create a user and password that can log in to the CVS service, you need to create a file passwd
Vi / Home / CvsRoot / CVSROOT / Passwd
The document content is as follows:
Weiqiongxxxxx: cvsroot
Chenxuxxxxx: cvsroot
The meaning of this file is Weiqiong and CHENXU two users to log in to the CVS server, and their permissions are user CVSROOT.
Note: CVS users and server users can be different
8.xxxxxx is a password, generated by the following file:
vi /home/cvsroot/passwdgen.pl
document content:
#! / usr / bin / perl
SRAND (Time ());
MY $ RANDLETTER = "(INT (RAND (26)) (INT (Rand (1) .5)% 2? 65: 97))
MY $ SALT = Sprintf ("% C% C", Eval $ Randletter, Eval $ Randletter;
MY $ plaintext = shift;
MY $ CRYPTTEXT = CRYPT ($ Plaintext, $ SALT);
Print "$ {CRYPTTEXT} / N";
9. If the password is required: Some, it is knocked:
PASSWDGEN.PL "Some"
Encrypting password can be obtained in return to the XXXXXX in the Passwd file.
10. Join the CVS service (my redhath7.3 has a CVS service, so don't add)
VI / ETC / SERVICES
CVSPSERVER 2401 / TCP #PServer CVS Service
CVSPSERVER 2401 / UDP #PServer CVS Service
11. CVS service is evoked by my intend, so you need to change the service provided by inetd, if your redhat is using inetd, add the following: CVSPServer Stream TCP NOWAIT ROOT / USR / BIN / cvs cvs --allow-root = / home / cvsroot pserver
My RedHat7.3 uses the Xinetd method, so add the service that needs to be started in the xinetd.d directory:
CD /etc/xinetd.d
VI CVSPSERVER
document content:
Service CVSPServer
{
Disable = no
Flags = Reuse
Socket_type = stream
Wait = NO
User = root
Server = / usr / bin / cvsserver_args = -f --allow-root = / home / cvsroot PServer
LOG_ON_FAILURE = UserID
}
12. Restart inetd or xinetd:
/etc/rc.d/init.d/xinetd Restart
13. Check if the CVSPSERVER service is already started
NetStat -l | grep cvspserver
There should be the following results:
TCP 0 0 *: CVSPSERVER *: * LISTEN
14. Trial:
CVS -D: PServer: weiqiong@202.204.114.37: / home / cvsroot login
After the command is invited to enter the password of Weiqiong, you can enter the password you set, if there is no error message, it is successful (my machine IP address is 202.204.114.37, can also use localhost)