1st May 2005 Ian Wells
CVS is installed as default on SME Server, but it does need to be configured before use.
This HowTo shows how to make use of CVS, and
how to install a WWW interface to the CVS repositories.
Instructions are given for installation of ViewCVS
and CVSweb.
I have also written installation guides for the Windows clients
TortoiseCVS and WinCVS.
This HowTo has been tested on SME Server versions 5.x and 6.x.
The CVS documents on e-smith.org, written by Dan York and Michael Soulier, are no longer referenced as they are sadly no longer available.
Initially set up the CVS ibay and user access, this is a summary from on Dan York's earlier document.
Group = Everyone User access, Write = Group, Read = Everyone Public access = No access Dynamic = disabled
#cvs -d /home/e-smith/files/ibays/cvsroot/files/ init
# db accounts setprop username Shell /bin/bash # signal-event user-modify username
I have written simple installation guides for two popular clients.
The client that I normally use is TortoiseCVS, and I have also managed to use WinCVS.
When using CVS it is recommended to use SSH to communicate to the CVS Server.
It is then useful to use a Public-Private Key pair for authentication.
There is a new guide to SSH Public-Private Keys,
how to generate them, and how to install them onto the server and clients.
A WWW interface allows you to browse the file hierarchy of the CVS repositories, to view each file's revision history and display diffs between versions. Two very similar interfaces are described below, to allow a choice.
The latest stable version in May 2005 is 3.0.5, but I currently use 2.0.6 due to its ease of installation.
CVSweb 2.0.6 only requires two files on the server. To work with SME Server only a one line change is needed to each file.
# tar xvzf cvsweb-2.0.6.tar.gz
for ("$mydir/cvsweb.conf", '/etc/cvsweb.conf') {
@CVSrepositories = ( 'local' => ['Local Repository', '/home/e-smith/files/ibays/cvsroot/files'],
# cp cvsweb.cgi /home/e-smith/files/ibays/ibayname/cgi-bin/
# cp cvsweb.conf /etc
http://yourserver/ibayname/cgi-bin/cvsweb.cgi/
# tar xvzf viewcvs-0.9.2.tar.gz
# ./viewcvs-install
When prompted, enter /opt/viewcvs as the installation directory
cvs_roots = Development : /home/e-smith/files/ibays/cvsroot/files/
# cp cgi/* /home/e-smith/files/ibays/ibayname/cgi-bin/
http://yourserver/ibayname/cgi-bin/viewcvs.cgi/
Common Problem: The following error is seen,
Forbidden
You don't have permission to access /ibayname/cgi-bin/viewcvs.cgi/ on this server.
This is due to the permissions to ibayname which needs to be changed from the Server Manger.
Public access = Local Network (no password) or any value apart from No access.
Dynamic = enabled
Copyright © 2005
Ian Wells : The original can be found from http://www.wellsi.com/sme
: Please send additions & corrections to me.
Permission
is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.2 or any later
version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Text and no Back-Cover Text. A copy of the
GNU Free Documentation License is available from the Free Software
Foundation at http://www.fsf.org/copyleft/fdl.html.