Configure complete resolution of CVS servers and clients

zhaozj2021-02-16  54

CVS represents a collaborative version of the system; this is a system that puts a set of files in the hierarchy tree to keep synchronous systems. People can update their local hierarchy copies from the CVS server and send the modified result or new file; or delete the old file. CVS based on client / server behavior makes it easy to accommodate multiple users, and it is convenient to constitute a network. This feature allows CVS to become the first choice when people in different locations have handled data files (especially the source code of the program). All important free software items use CVS as a central point between its programmers to integrate the improvements and changes to each programmer. These items include: GNome, KDE, The GIMP, WINE, and more. Therefore, it is naturally, Mandrakesoft also uses CVS as its own development management platform.

Below is my own steps I have in configuring CVS servers and clients, I hope to save you time, one step is to ^ - ^

All the steps to configure the server are as follows: 1: I use Linux redhat9.02: Cvsi user group GroupAdd CVS3. Create a CVSRoot user and the catalog of CVS group UserAdd -g cvs -g cvs -d / home / cvsroot cvsroot4 : Add a password for cvsroot PASSWD CVSROOT5: Change / Home / CVSRoot Directory Properties Chmod 775 / Home / CVSROOT6: Initializing the CVS Source Library, this action generates directory / home / cvsroot / cvsroot, under the initialization file CVS -D / Home / cvsRoot init7: 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 file content as follows: Steven: xxxxx: cvsroot8.xxxxx is a password, generated by the following file: Vi / Home /cvsroot/passwdgen.pl file 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 you need your password to: Some, type: passwdgen.pl "some" Enter the encrypted password to replace the XXXXXX in the Passwd file

10. Add CVS service (my Redhath9 has a CVS service, so no added) VI / ETC / Services CVSPServer 2401 / TCP #pserver CVS Service CVSPSERVER 2401 / UDP #PSERVER CVS Service 11.CVS service is evoked by intend, Therefore, it is necessary to change the service provided by inetd. My RedHat uses inetd mode to add as follows in file /etc/inetd.conf: CVSPSERVER STREAM TCP NoWait Root / USR / BIN / CVS CVS - Allow-root = / Home / cvsroot pserver My RedHat9 uses the Xinetd mode, so adds the service that needs to be started in the xinetd.d directory: cd /etc/xinetd.d vi cvspserver file content: service cvspserver {disable = no flags = reuse socket_type = stream Wait = no user = root server = / usr / bin / cvs server_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 has started netstat -l | grep cvspserver results are as follows: TCP 0 0 *: CVSPSERVER *: * Listen The above results, but execute CVS on my client (redhat9) - D: pserver: steven@192.168.211.72: / home / cvsroot login Enter the password, return Connection Confuse Information

Make up: cvs -d: pserver: steven@192.168.211.72: / home / cvsroot login Enter the password, no message, that is, the success ^ _ ^ no news is a good news !!

At the client, set the environment variable as follows: export cvs_rsh = sshexport cvsroot =: pserver: username @ ip: / home / cvsroot

You can Echo $ CVS_RSHSSHECHO $ ​​CVSROOT: PSERVER: UserName @ ip: / home / cvsroot

This way you can directly enter the CVS login directly in the client, you can directly CVS Command.

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

New Post(0)