Install and configure CVSNT in Linux
CVSNT is a very good CVS software, which is usually used on Windows platforms, but can also be used on Linux, Soliras, and other platforms, in addition, the cvs software can be used for Linux platform, and some special features are also provided.
This article describes how to install CVSNT in Linux
You can download the rpm installation package of CVSNT from 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 be found:
Http://www.cvsnt.org/wiki/InstallationLinux
(Ipaddr original, reprinted please note)
The following describes how to install and configure CVSNT on the source code of RedHat.
First, you need to delete cvs from the current system.
Rpm-e cvs
1. Download the source code from the website and decompress it.
2
../Configure
Make
Make install
3
There are several programs available in the source code directory. Copy them to the corresponding directory:
Cp redhat/cvslockd/etc/init. d/cvslockd
Cp redhat/cvsnt-xinetd/etc/xinetd. d/cvsnt
Because the source code is installed under/usr/local/bin, You need to modify all/usr/bin/cvsnt files to/usr/local/bin/cvsnt,
Change/usr/bin/cvslockd to/usr/local/bin/cvslockd
Or use ln-s/usr/local/bin/cvsnt/usr/bin/cvsnt to create a soft link.
Cp redhat/cvsnt-pam/etc/pam. d/cvsnt
(Note that cvsnt-pam must be changed to cvsnt)
4.
Set auto-start
Chkconfig -- add cvslockd
Chkconfig cvslockd on
Ntsysv
Set xinetd and 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
(Cvslockd needs to be started first)
Modify/etc/cvsnt/PServer and change Repository0Name =/var/cvs/iManage to/iManage. For more information, see 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
After restart, you can use users such as tomzhou, ipaddr, and readonly to log on to the system.
9.
If you are using 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 does not exist by default)
(The user in the admin file is treated as the Repository administrator)
Export CVSROOT =: pserver: cvsadmin @ localhost:/iManage
Cvs login
Cvs co CVSROOT
Cvs passwd-r cvs-a vitualUserOne
Cvs passwd-r cvs-a VirualUserTwo
Cvs passwd-r cvs-a cvsadmin
Cd CVSROOT
Set UseSystemUser = no in config
Submit changes to CVS
Cvs ci
After that, you can only log on with a virtual user. You cannot log on with a system user. The virtual user uses the System user cvs to access the file system.
For other configurations, see the CVSNT document.