Online Browsing
-
CVS Web is a web interface into CVS
and allows you to view previous versions, annotations and to compare
versions. Use it to view the CVS repository as it stands today.
Anonymous Access
To check-out code from the CVS repository, use anonymous access.
# set the root
export CVSROOT=:pserver:anonymous@cvs.threebit.net:/cvs/threebit
# login; the password is 'anonymous'
cvs login
# check out a module.
cvs co utils
Developer Access
In order to commit code to a repository you will need to access the CVS
pserver using SSH.
-
Initiate a TCP port forwarding from your local machine to zedd.
ssh -L 2401:localhost:2401 -l username cvs.threebit.net
If the machine you are connecting from already has a CVS server listening
on port 2401, then for now there is nothing you can do unless you
have a version of CVS greater than 1.11p1. This is because CVS clients
older than 1.11p1 do not have the ability to specify the server
port to connect to. Later versions allow you to use
CVS_CLIENT_PORT or CVS_PSERVER_PORT. We will tackle this
one when we come to it.
- Set your CVSROOT to :pserver:username@localhost:/cvs/threebit
export CVSROOT=:pserver:username@localhost:/cvs/threebit
-
This step is required only once.
Add your username to /cvs/threebit/CVSROOT/passwd. The format of the
line is username:cypted_passwd. To generate the encrypted version
of your password, use mkpasswd. You do not need to use the
same password as you use to log into zedd. In fact, using a different
password is optimal as it provides a second level of security against
attacks.
# AS ROOT
CRYPTED_PASSWORD=`mkpasswd YOUR_PASSWORD_HERE 01`
echo YOUR_USERNAME_HERE:$CRYPTED_PASSWORD >> /cvs/threebit/CVSROOT/passwd
-
For each client machine you do this from, you will need to login once
so that CVS can cache your password. This is also the best way to
confirm that your setup is working. Enter the same password as you
supplied to mkpasswd.
cvs login