INTRODUCTION TO  CVS CONCURRENCE VERSION CONTROL
What is CVS
CVS installation <ul><li>Create a repository </li></ul><ul><li>Create group and users </li></ul><ul><li>Set repository per...
1. Create a repository <ul><li>Decide your repository location </li></ul><ul><ul><li>/usr/local/cvsroot </li></ul></ul><ul...
2. Create group and users <ul><li>Create a new group </li></ul><ul><ul><li>groupadd cvs </li></ul></ul><ul><li>Create new ...
3. Set repository permission <ul><li>Set your repository permission for cvs group </li></ul><ul><ul><li>chown –R cvs:cvs /...
4. Download & install cvs <ul><li>Download latest cvs version from </li></ul><ul><ul><li>http://ftp.gnu.org/non-gnu/cvs/ <...
5. Register cvs service <ul><li>Create  cvspserver  service </li></ul><ul><ul><li>vi /etc/xinetd.d/cvspserver </li></ul></...
6. Test your connection <ul><li>Login as cvs user </li></ul><ul><ul><li>su –l cvs </li></ul></ul><ul><li>Test your login <...
7. Commit your source code <ul><li>Using eclipse, commit your source code </li></ul>
Upcoming SlideShare
Loading in …5
×

introduction to CVS

628 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
628
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

introduction to CVS

  1. 1. INTRODUCTION TO CVS CONCURRENCE VERSION CONTROL
  2. 2. What is CVS
  3. 3. CVS installation <ul><li>Create a repository </li></ul><ul><li>Create group and users </li></ul><ul><li>Set repository permission </li></ul><ul><li>Download and install cvs </li></ul><ul><li>Register cvs service </li></ul><ul><li>Test your connection </li></ul><ul><li>Start / commit your source code </li></ul>
  4. 4. 1. Create a repository <ul><li>Decide your repository location </li></ul><ul><ul><li>/usr/local/cvsroot </li></ul></ul><ul><li>set CVSROOT variable (optional) </li></ul><ul><ul><li>export CVSROOT=/usr/local/cvsroot </li></ul></ul><ul><ul><li>Or </li></ul></ul><ul><ul><li>vi /etc/profile </li></ul></ul><ul><ul><li>CVSROOT=/usr/local/cvsroot </li></ul></ul>
  5. 5. 2. Create group and users <ul><li>Create a new group </li></ul><ul><ul><li>groupadd cvs </li></ul></ul><ul><li>Create new user for cvs </li></ul><ul><ul><li>useradd –g cvs –d /home/cvs cvs </li></ul></ul><ul><li>Create user password </li></ul><ul><ul><li>passwd cvs </li></ul></ul>
  6. 6. 3. Set repository permission <ul><li>Set your repository permission for cvs group </li></ul><ul><ul><li>chown –R cvs:cvs /usr/local/cvsroot </li></ul></ul>
  7. 7. 4. Download & install cvs <ul><li>Download latest cvs version from </li></ul><ul><ul><li>http://ftp.gnu.org/non-gnu/cvs/ </li></ul></ul><ul><li>Untar cvs source </li></ul><ul><ul><li>tar –xvf cvs*.tar </li></ul></ul><ul><ul><li>Or </li></ul></ul><ul><ul><li>tar –xzvf cvs*.tar.gz </li></ul></ul><ul><li>Compile & install </li></ul><ul><ul><li>cd /usr/local/cvs </li></ul></ul><ul><ul><li>./configure </li></ul></ul><ul><ul><li>make </li></ul></ul><ul><ul><li>make install </li></ul></ul>
  8. 8. 5. Register cvs service <ul><li>Create cvspserver service </li></ul><ul><ul><li>vi /etc/xinetd.d/cvspserver </li></ul></ul><ul><ul><li>service cvspserver </li></ul></ul><ul><ul><li>{ </li></ul></ul><ul><ul><li> port = 2401 </li></ul></ul><ul><ul><li> disable = no </li></ul></ul><ul><ul><li> socket_type = stream </li></ul></ul><ul><ul><li> protocol = tcp </li></ul></ul><ul><ul><li> wait = no </li></ul></ul><ul><ul><li> user = root </li></ul></ul><ul><ul><li> server = /usr/bin/cvs </li></ul></ul><ul><ul><li> server_args = -f --allow-root=/usr/local/cvsroot pserver </li></ul></ul><ul><ul><li>} </li></ul></ul><ul><ul><li>/etc/init.d/xinetd restart (restart xinetd service) </li></ul></ul>
  9. 9. 6. Test your connection <ul><li>Login as cvs user </li></ul><ul><ul><li>su –l cvs </li></ul></ul><ul><li>Test your login </li></ul><ul><ul><li>cvs -d :pserver:cvs@server:/cvs login </li></ul></ul>
  10. 10. 7. Commit your source code <ul><li>Using eclipse, commit your source code </li></ul>

×