In order to setup a Concurrent Versioning System (CVS) server on the system, follow these steps:
- Make a cvs user with a home directory as well as create a new group called cvs:
groupadd cvs
useradd cvs -g cvs - Create repository # cvs -d /usr/local/cvsroot init *** (my changes)
Change owner and group of repository and all files to cvs:
chown -R cvs.cvs /usr/local/cvsroot *****(my chages)
- Set the CVSROOT variable. This will be /home/cvs since a cvs user was created and its home directory will be used. Set this variable in /etc/profile by adding the the following to the end of the file:
export CVSROOT=/home/cvs
- Then set the permissions for /usr/bin/cvs so it can be executed at startup:
chmod 2755 /usr/bin/cvs
- Finally, add the following to the file /etc/xinetd.d/cvspserver
service cvspserver
Note: On the line that states the bind IP address: "bind = 10.10.10.10", replace "10.10.10.10" with the IP address to be used.
{
disable = no
socket_type = stream
wait = no
user = cvs
group = cvs
log_type = FILE /var/log/cvspserver
protocol = tcp
env = '$HOME=/home/cvs'
bind = 10.10.10.10
log_on_failure += USERID
port = 2401
server = /usr/bin/cvs
server_args = -f --allow-root=/usr/local/cvsroot pserver
} - Make sure restart service : service xinetd restart or /etc/rc.d/rc5.d/S56xinetd restart
- Check the CVS using the following command telnet 2401 or check port open with Brut (port scanning tool)
- Add the users allowed to access the cvs into the cvs group by doing the following:
make passwd file in usr/local/cvsroot/CVSROOT/passwd
add user with htpasswd command & make sure with cvs group. passwd file format is username:passwd:group
- To access this CVS server from another computer, do the following:
export CVSROOT=:pserver:abc
@*.*.*.* :/usr/local/svcroot
cvs login
Another command which i used.
import project (1st time)
#cvs -d /usr/local/cvsroot import samba(my e.g) samba21072008 start
#ls -l /usr/local/current/samba
now move or delete project (samba) to avoide bypass.
#pwd
/etc/samab/
#cd ..
#cvs co samba
now u can work on /etct/samba
after do chages in any files run
#cvs checkout samba
#cvs update
# cvs commit ( for parmament save and add ur comment)
for see changes u can use this command.
#cvs -nq update
How add dir and files in cvs.
suppose u work in /etc/samba/
#mkdir new
#cvs add new
Message show /usr/local/cvsroot/samaba/new added to repository.
For add any file.
# cd new
#touch a.text
#cvs add a.txt (use * for multiple text file)
#cvs update
#cvs commit (add ur comment)
now your text file sucessfully added in repository.
help full links are ( www.in.redhat.com,http://www.taursys.com/howto/cvs/,http://www.idevelopment.info/)
0 comments:
Post a Comment