Apollo Connecting the World

Diligence and Intelligence

Archive for the ‘CVS’ Category

Set Up CVS Server on Linux

leave a comment »

Assumption: server: s.com   client: c.com
Goal: user mike can use the CVS on s.com (assumption: mike has an account as “mike” on s.com)

1. install cvs and xinetd on the server
$yum install cvs
$yum install xinetd

NOTE: check whether cvs (or xinetd) has been installed:
$rpm -qa | grep cvs

2. set up cvs group and user on the server:
$groupadd cvs
$useradd -g cvs -G cvs -d /home/cvsroot cvsroot
$passwd cvsroot # set up password for cvsroot

Add mike to the cvs group:
$usermod -a -G mike cvs

Check whether mike is in the cvs group:
$groups mike

3. change owner of /home/cvsroot if necessary, chmod for /home/cvsroot:
$chown -R cvsroot:cvs /home/cvsroot
$chmod -R 775 /home/cvsroot

Read the rest of this entry »

Written by apollozhao

2011/01/06 at 16:35

Posted in CVS, CVS, Linux, Project Management

Tagged with , , ,

Checkout CVS folder from server

leave a comment »

If you are engaged in a large project, and feel difficult to maintain the different versions of the large number of files, you can use CVS to manage the project.

This article is to show how to checkout a folder from a CVS server, under Linux.

1. Set the environment. In ~/.bashrc, append the following code:
export CVSROOT

CVSROOT=:ext:aaa@  # is the CVS server which have the cvs folder
export CVSROOT

2. suppose you want to checkout the folder “myProject” on the CVS server (/var/cvsroot/myProject) into your machine, and store the folder under ~/FROMCVS (that is, store as ~/FROMCVS/myProject)
open a terminal, cd to ~/FROMCVS, type the command:
cvs checkout myProject
(NOTE: you should have an account on the CVS server first)

OK. Take a look at the folder, you will see what you want to download from the server.

[1] CVS使用简介 http://doc.linuxpk.com/3701.html

Written by apollozhao

2010/03/03 at 13:02