Could someone tell me exactly what the "pserver" mode is, in regards to CVS? The term "pserver" is used frequently, but I've yet to find an explanation of what it actually is. If "pserver" is a special mode, then I assume there is a default mode as well. If so, what is the difference between the two?
pserver
is a method for giving remote access to CVS repository. Basically you run cvs
as a server listening on port 2401.
The "default" mode would be local access, where a developer has an account on the system hosting the CVS repository and accesses its directory and files directly. So for a local repository CVSROOT
would just be directory:
CVSROOT=/opt/path/to/my/repo
Although, if you like you can explicitly state this this is a local
respository:
CVSROOT=:local:/opt/path/to/my/repo
For a pserver
connection we have to specify some more, the host the repository is running on, our username, and the path to the repo on that host:
CVSROOT=:pserver:username@hostname:/opt/path/to/my/repo
A better mode for remote access for a CVS repository would be ext
which can used to access a repository via SSH.
CVSROOT=:ext:username@hostname:/opt/path/to/my/repo
CVS_RSH=ssh
It's an insecure way to remotely access a CVS repository that's great for anonymous access.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With