Cryptic CVS Setup
The following is a little cryptic, being notes I made for myself
as I was settiing up a server.
On CVS server machine
-
Create
cvs
user in
/etc/passwd;
home dir will be CVS repository.
-
Also create the directory if not done above.
adduser cvs
will do all the above, except the password.
There should be an invalid password; nobody will use this ID.
-
cd
to CVS repository.
-
Use
cvs init
command to make the repository.
-
Create cvs password/user mapping file. Run the
cvspwd
program in
the CVSROOT directory of the repository! Map all users to real
user cvs (though I think this unnecessary if server runs as user cvs)
-
cvspwd was from GlassFish Networking, but the address no longer works
-
Add cvspserver line to
/etc/services,
set as
cvspserver 2401/tcp
-
The CVS server needs to be enabled, and the steps differ based
upon whether your system uses ineted or xinetd.
- Inetd Systems
- Add cvspserver line to
/etc/inetd.conf.
I use the line
cvspserver stream tcp nowait cvs /usr/bin/cvs cvs --allow-root=/home/cvs pserver
- Xinetd Systems
- For xinetd users, copy the following into the file
/etc/xinted.d/cvspserver:
# default: on
# description: The cvs server allows access to a CVS repository.
service cvspserver
{
enable = yes
socket_type = stream
wait = no
user = cvs
server = /usr/bin/cvs
server_args = --allow-root=/home/cvs pserver
log_on_failure += USERID
only_from = 192.168.0.0/20
}
-
Restart
inetd
or
xinetd
to use new facility.
-
telnet <server machine> 2401
to verify server is working!
Server Repository Layout
-
Create the top level directories on the server. Owner + permissions
set too.
-
Add entries for the top level directories in modules file
-
To add further structure, check out a module,
-
cd
into that directory, add directories, files etc.
-
Use
cvs add
to put those into the repository.
-
On client side, create this directory layout.
All on the client side
-
Create the directory in the CVS tree to which the source will be added.
-
Find the virgin source, NOT in the above location.
-
Use this to import the sources:
cd <directory with source to add>
cvs import -m "Import of mswordview v0.5.7" external/MSwordview/mswordview MS_WORD_VIEW WORD_VIEW_0_5_7
where the last two are tags (strings, I suspect).
-
Then go to CVS tree, and
cvs update
to get the source.
Version: $Revision: 1.2 $;
Updated at 17:54 EST on Sat May 27, 2006
Copyright (C) 2000 - 2006, Lindsay Harris