Installation of CVS Server
Most of the latest Linux distro comes with cvs installed.
Only you have to make some adjustment to make it running.
Check in your machine by typing:
$which cvs
If it returns some path then its there so please skip first two steps.
1. Take the rpm version of cvs server from
http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/
2. run the command as su
( I stored downloaded rpm at /home/sanjay/)
$rpm -ivh /home/sanjay/cvs-1.11.x-x.i386.rpm
It will install cvs at /usr/bin
Alternatively cvs can be installed via yum
$ yum install cvs
3. Create cvsroot directory
$mkdir /home/sanjay/projects
4. Set environment variable CVSROOT in root's .bash_profile
$ vi .bash_profile
(in .bash_profile file add lines)
CVSROOT=/home/sanjay/projects
export CVSROOT
(After saving & exiting the file run the command
$ source .bash_profile (to make the changes permanent)
5. Initialize CVSROOT
$ cvs -d /home/sanjay/projects init
It will create one directory named CVSROOT inside /home/sanjay/projects
6. Edit /etc/xinetd.conf file
Add following entry at the last:
service cvspserver
{
socket_type = stream
protocol = tcp
wait = no
user = root
env = HOME=/home/sanjay/projects
server = /usr/bin/cvs
server_args = --allow-root=/home/sanjay/projects pserver
disable = no
}
7. restart xinetd server
$ service xinetd restart
8. Add one user/group cvs, who owns the /home/sanjay/projects directory
$ adduser cvs
9. Give ownership of /home/sanjay/projects directory to this cvs user
chown cvs:cvs /home/sanjay/projects/
10. Give right permissions to the directory
$ chmod -R 2775 /home/sanjay/projects/
11. Add exiting user to the cvs group so they can access the repository
$ usermod -G cvs vivek
(assuming vivek user is already there)
12. Adding module to repository
Create folder say moodle inside /home/sanjay/projects/
and put all the projects file there
Like :
$mkdir /home/sanjay/projects/moodle
14. moodle will become the module inside repository that we can checkout and can checkin our files.
No comments:
Post a Comment