Sorry, I haven't set up a pserver. But by ssh is real easy (nobody uses rsh any more).
Say you have some files that you want to put under CVS control. (Create for demo as follows.)
Code:
mkdir original
cd original
echo 'Hello $Id: $' > foo
The
$Id: $ invites CVS to put identifying info here; it's not required.
Now suppose you want to put your repository in
~/cvsroot on the machine
thathost, into which you can
ssh (for convenience, without password). First set two environment variables:
Code:
export CVSROOT=:ext:thathost:~/cvsroot
export CVS_RSH=ssh
That's for
bash;
csh and
sh are different. If you're on the same machine, drop
:ext:thathost: (and CVS_RSH isn't necessary then). Now we're ready:
Code:
cvs init
cvs import -m "Sample project" myproj jantman start
cd ..
cvs checkout myproj
First
init creates the repository; you only have to do this once. Then you
import the current directory (and anything below) as project
myproj. Next get out of
original, and check out a working copy (which you'll find in
./myproj).
For practicing, I suggested
~/cvsroot so you don't need root access. For real, you may want to use something more generic, particularly if you work together with others.
To keep this short, I left many questions open. Please follow up and ask!