Configure cvs in linux

Source: Internet
Author: User
In linux, configure cvs-Linux Enterprise Application-Linux server application information. For more information, see. 1. Install the cvs server
Download the latest version of cvs-1.11.5.tar.gz, put it in/usr/local
# Cd/usr/local
# Gunzip cvs-1.11.5.tar.gz
# Tar-vxf cvs-1.11.5.tar
# Mv cvs-1.11.5 cvs
# Cd cvs
#./Configure
# Make
# Make install
# Mkdir/cvs-home
# Mkdir/cvs-home/project or cp {your original project}/cvs-home/project
# Cvs-d/cvs-home init
CVSROOT is created under/cvs-home.

2. Server Configuration
Modify/etc/inetd. conf (or/etc/xinetd. d) and/etc/services,
If the inetd system is used, add the following in/etc/inetd. conf:
Cvspserver stream tcp nowait root/usr/bin/cvs-f -- allow-root =/cvs-home pserver
/Cvs-home is the path of the CVSROOT you created. Please make adjustments based on the contents of the Created directory above.
If xinetd is used, you need to create the file cvspserver in the/etc/xinetd. d/directory (this name can be defined by yourself). The content is as follows:

# Default: on
# Description: The cvs server sessions;
Service cvspserver
{
Socket_type = stream
Wait = no
User = root
Server =/usr/bin/cvs
Server_args =-f -- allow-root =/cvs-home pserver
Log_on_failure + = USERID
Only_from = 192.168.0.0/24
}
Here, only_from is used to restrict access and can be modified or not based on the actual situation. Modify the File Permission:

# Chmod 644 cvspserver
Add the following to/etc/services:
Cvspserver 2401/tcp
Note: The cvsserver is an arbitrary name, but it cannot be the same as the name of an existing service. It must also be consistent with the first entry in the line "/etc/inetd. conf" modified above.
# Killall-HUP inetd takes effect
Or
#/Etc/rc. d/init. d/xined restart

3. Permission Configuration
# Groupadd cvs-user
Use the useradd command to create a user cvsabc and make it belong to the cvs-user group.
# Chmod 777/cvs-home
# Chgrp-R cvs-user/cvs-home/CVSROOT
# Chmod-R 075/cvs-home/CVSROOT
# Chmod 077/cvs-home/CVSROOT/history
# Chgrp-R cvs-user/cvs-home/project
# Chmod 770/cvs-home/project
# Chown cvsabc/cvs-home/project
Assume that cvs1 and cvs2.
Create a passwd file under/cvs-home/CVSROOT in the following format:
{Cvs username}: [encrypted password]: [cvsabc]
For example:
Cvs1: $1 $ m/918XMl $ hMQsWiRBjiz. w0Cxi0Tg/1: cvsabc
Cvs2: $1 $ R2t/4w9m $ wO3NIlY4HbuHCF/LRXiO2/: cvsabc
Anonymous: cvsabc
Indicates that the actual user cvs1, cvs2, and non-actual USER anonymous access the cvs server as cvsabc.
The [encrypted password] is obtained from the Second Field in/etc/shadow.
Finally,
Create/cvs-home/CVSROOT/readers and add
Anonymous
Create/cvs-home/CVSROOT/writers and add
Cvs1
Cvs2
Indicates that anonymous has only the read permission, cvs1 and cvs2 have the write permission.
Note: you cannot add the same user name to both writers and readers. Otherwise, the user is subject to the readers configuration, that is, only the read permission is allowed.

4. Client Logon
# Export CVSROOT =: pserver: cvs1 @ the_server_name:/cvs-home
# Cvs login
# Password :*************
Or use the cvs client that comes with eclipse to log on.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.