Q. I am planning to use Concurrent Versioning System. I am using both Red Hat and Fedora Linux. How do I setup a CVS server?
A. Concurrent Versioning System (CVS) a widely used version control system for software development or data archiving solutions.
From the wiki page, “CVS keeps track of all work and all changes in a set of files, typically the implementation of a software project, and allows several (potentially widely separated) developers to collaborate”.
CVS Configuration – Install CVS
Use rpm or up2date or yum command to install cvs:# rpm -ivh cvs*
OR# up2date cvs
OR# yum install cvs
Create a CVS user# useradd cvs
Above command will create a user cvs and group cvs with /home/cvs home directory.
# passwd cvs
Configure CVS
Open /etc/profile and append following line:# vi /etc/profile
Append following line:export CVSROOT=/home/cvs
Save the file and exit to shell promot.
Make sure your /etc/xinetd.d/cvs looks as follows:# less /etc/xinetd.d/cvs
Output:
service cvspserver { disable = no socket_type = stream wait = no user = cvs group = cvs log_type = FILE /var/log/cvspserver protocol = tcp env = '$HOME=/home/cvsroot' bind = 192.168.1.100 log_on_failure += USERID port = 2401 server = /usr/bin/cvs server_args = -f --allow-root=/home/cvsroot pserver }
Note: Replace 192.168.1.100 with your actual server IP address.
Restart xinetd:# service xinetd restart
Add users to this group (see this howto for more info)# adduser username -g cvs
Client configuration
# passwd username
Finally user can connect to this CVS server using following syntax:
$ export CVSROOT=:pserver:vivek@192.168.1.100:/home/cvs
$ cvs loginWhere,
- vivek – username
- 192.168.1.100 – CVS server IP
See also:
- CVS web site and documentation
🐧 8 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
thank you
very helpful, thanks!
some of the points you are missing vivak
you didnt specified how to create repository,initilazing the cvs repository and import already existing projects
any way nice artical
I am sory to ask again the same thing as i had asked for the CVS client installation on Linux i have already CVS server installed on one linux machine now i want to install CVS client on another linux machine please furnish a step by step guideline to acheive this.
Waiting for reply.
Regards,
Ghulam Mohmad
hey thanx for this document!!!!
i have configured cvs successfully…. and its running on port 2401 by default..
when i tried to connect ….ex.
cvs -d :pserver:username@server_name:/usr/local/cvsroot login
i got
:unrecognized auth response from host usage: options …..
please help me !!!!!
any idea why this happens ?
username is system account has rights to access cvs repository …
Yes a very helpful steps to configure to CVS in linux. But now i want to configure my other linux machine as a CVS client. For that what will be the steps and where can be the software obtained.
cvs login: authorization failed: server 172.16.3.29 rejected access to /home/cvsrep for user cvs
Plz resolve the Issue
Article was of great help. Thank you very much for sharing it. I would like to point out that, I couldn’t connect using pserver as the connection type instead I could manage connecting to server using extssh.