CVSNT is a very good CVS software, usually used under the Windows platform, but Linux,soliras and other platforms can also be used, and there are completely available for the Linux platform under the CVS software, while there are some special features.
This article mainly describes how to install the CVSNT under Linux
CVSNT RPM's installation package, which you can download here:
http://www.march-hare.com/cvspro/
The source code can be downloaded here:
Http://www.cvsnt.org/wiki/Download
In addition, the official Linux installation documentation can refer to:
Http://www.cvsnt.org/wiki/InstallationLinux
(ipaddr original, reprint please specify)
The following is the process of installing and configuring CVSNT on the Redhat
First, you need to remove CVS from the current system
RPM-E CVS
1. Download the source code from the website and unzip it
2
.. /configure
Make
Make install
3
In the source directory a few programs can be used, copy to the corresponding directory can:
CP REDHAT/CVSLOCKD/ETC/INIT.D/CVSLOCKD
CP redhat/cvsnt-xinetd/etc/xinetd.d/cvsnt
Because the source code installed under/usr/local/bin, so, need to modify the above two files, all/usr/bin/cvsnt to/usr/local/bin/cvsnt,
Change/USR/BIN/CVSLOCKD to/USR/LOCAL/BIN/CVSLOCKD
or create soft links with ln-s/usr/local/bin/cvsnt/usr/bin/cvsnt.
CP redhat/cvsnt-pam/etc/pam.d/cvsnt
(Note that Cvsnt-pam must be changed to CVSNT)
4.
Set up self-boot
Chkconfig--add CVSLOCKD
Chkconfig CVSLOCKD on
Ntsysv
Set xinetd,cvsnt to self start
5.
Start CVSLOCKD
/ETC/INIT.D/CVSLOCKD start
6.
mkdir/var/cvs/
Mkdir/var/cvs/imanage
Cvs-d: Local:/var/cvs/imanage Init
(Need to start CVSLOCKD first)
Modify/etc/cvsnt/pserver, change Repository0name=/var/cvs/imanage to/imanage, and add some configuration to pserver.example.
7.
Add a CVS group, add multiple users, and set the user to belong to the CVS group
Groupadd CVS
Useradd cvs-g CVS
Useradd tomzhou-g CVS
Useradd readonly-g CVS
Useradd ipaddr-g CVS
passwd & Chsh CVS users
8.
Chown-r Cvs.cvs/var/cvs
Chmod-r G+w/var/cvs
Once restarted, users can log on to the system using a user like tomzhou,ipaddr,readonly.
9.
If you use a virtual user, you need to set the following:
Groupadd CVS
Useradd cvs-g CVS
Useradd cvsadmin-g CVS
passwd cvsadmin
Chown-r Cvs.cvs/var/cvs
Chmod-r G+w/var/cvs
Add Cvsadmin to/var/cvs/imanage/cvsroot/admin (this file defaults to NO)
(the user in the admin file, being treated as the repository administrator)
Export cvsroot=:p server:cvsadmin@localhost:/imanage
CVS Login
CVS Co cvsroot
CD Cvsroot
The Usesystemuser=no in config
Commit modifications to CVS
CVS CI
After that, you can only log on with the virtual user, and you cannot log on with the system user. The virtual user uses the system user CVS to access the file system.
Other configurations refer to the CVSNT documentation.
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.