CVS is a well-known http://www.aliyun.com/zixun/aggregation/9591.html "> version control tool, which is useful for both individual programmers and a development team." CVS is very powerful, as a whole it is a C/s structure of software, the user should first set up a CVS server, on the CVS server to import project instances, the establishment of CVS Project access control. Customers access the CVS server through the client, customers can get the latest code copy of the project, submit their own modified code, and customers can from the Internet, LAN, or even native to access the CVS server. Below, small series to tell you how to set up a CVS server in the Redhat9.0 environment.
1. Set up CVS user group
Groupadd CVS
2, establish the CVS group Cvsroot user and belong to the directory
Useradd-g cvs-g Cvs-d/home/cvsroot Cvsroot
3. Add password for cvsroot user
passwd Cvsroot
4, change the/home/cvsroot directory properties
chmod 775/home/cvsroot
5, initialize the CVS Source Library, this operation generates the directory/home/cvsroot/cvsroot, under some initialization files
Cvs-d/home/cvsroot Init
6, the creation can log on the CVS service user and the password, needs to create the file passwd
vi/home/cvsroot/cvsroot/passwd
The contents of the document are as follows:
Steven:xxxxx:cvsroot
7, xxxxxx for the password, generated by the following file: vi/home/cvsroot/passwdgen.pl file content:
#!/usr/bin/perl
Srand (Time ());
My $randletter = "(int (rand) + (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";
8, if need password is: Some, then typed: passwdgen.pl "Some" Enter can get encrypted password, replace passwd file xxxxxx.
9. Join CVS Service
Vi/etc/services
Cvspserver 2401/tcp #pserver CVS Service
Cvspserver 2401/udp #pserver CVS Service