Your SlideShare is downloading. ×
introduction to CVS
introduction to CVS
introduction to CVS
introduction to CVS
introduction to CVS
introduction to CVS
introduction to CVS
introduction to CVS
introduction to CVS
introduction to CVS
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

introduction to CVS

465

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
465
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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

×