CVS server on Ubuntu
Install CVS files:sudo apt-get install cvs
Install the CVS server:
sudo apt-get install cvsd
When prompted in the cvsd installation process for Repository, type in “/cvsrepo”.
Now that the cvsd installation in complete goto /var/lib/cvsd
or seeking for a change(or if there is a new version of cvs updated):
sudo cvsd-buildroot /var/lib/cvsd
If the folder cvsrepo does not exist, then create it ..
sudo mkdir cvsrepo
sudo chown -R cvsd:cvsd cvsrepo
and then initilize the repository
sudo cvs -d /var/lib/cvsd/cvsrepo init
create a user and password
sudo cvsd-passwd /var/lib/cvsd/cvsrepo +username
sudo vi //var/lib/cvsd/cvsrepo/CVSROOT/config
Change "SystemAuto=no"
Test
cvs -d :pserver:username@localhost:/cvsrepo login
cvs -d :pserver:username@localhost:/cvsrepo checkout .
23 Comments:
have the same problem.
when I do
apt-get install cvsd
forgot to type /cvsrepo
I tried to apt-remove cvsd
rm -r /var/lib/cvsd
and try reinstall cvsd with
apt-get install cvsd
it does not ask me for repository directory again
nrecognized auth response from localhost: cvs [pserver aborted]: /cvsroot: no such repository
can any one help? Thanks!
use apt-get remove --purge cvsd
and redo the whole stuff
it worked!
Thanks to the excellent post!
deben utilizar dpkg-reconfigure cvsd
esto funciona :-)
saludos desde Chile
You do not have to reinstall.
Just change or add the last line in
/etc/cvsd/cvsd.conf to reflect your repo(s).
sudo vi /etc/cvsd/cvsd.conf
Go to the end of the file.
Repos /cvsrepo1
Repos /cvsrepo2
then restart cvsd
sudo /etc/init.d/cvsd restart
- Carlitos :]
Great guide - nice and simple.
One thing:
Change "SystemAuto=no"
should be:
Change "SystemAuth=no"
Mic
I'm not one to normally comment but I wanted to express my gratitude for these simple and straightforward instructions. I don't know for how long I have gotten the "No Such Repository" error. The instructions and followup comments helped me to resolve my issues.
Thanks SKP.
As i understood you must add cvsrepo to your /etc/cvsd/cvsd.conf file, to access it by pserver
Very simple and easy guide! Thank you.
But it reports "permission denied" error when I try to commit files:
cvs commit: failed to create lock directory for `/cvsrepo/CVSROOT' (/cvsrepo/CVSROOT/#cvs.history.lock): Permission denied
cvs commit: failed to obtain history lock in repository `/cvsrepo'
so,
cd /var/lib/cvsd/cvsrepo
sudo chown -R cvsd:cvsd CVSROOT/
I guess you should init respository before change owner:
sudo cvs -d /var/lib/cvsd/cvsrepo init
and then initilize the repository
sudo chown -R cvsd:cvsd cvsrepo
Thank you
This comment has been removed by the author.
Yeah. Very good instructions.
Still does not get me anywhere.
Tried everything, I still get:
> cvs login -d ":pserver:me@myrepo"
cvs login: can only use `login' command with the 'pserver' method
cvs [login aborted]: CVSROOT: me@myrepo"
And yes, all cvs commands work if I leave the ":pserver:" out from cvs commmand, so CVSROOT variable is correct.
Also:
~ ps -ef |grep cvs
cvsd 20386 1 0 21:44 ? 00:00:00 /usr/sbin/cvsd -f /etc/cvsd/cvsd.conf
With all these problems, it makes you wonder why you don't just use SVN:
svnadmin create .
svnserve -d -r .
Excellent walkthrough very simple to follow. I appreciate that is was so easy. Well done.
This comment has been removed by the author.
After going through the steps I am still getting the following error:
cvs login: authorization failed: server localhost rejected access to /apps/cvs for user
This has started after some recent cvs update in herdy heron
Any idea?
Perfect walkthrough,
If you are running Jaunty Jackalope (or next versions when they come)
you may encounter error connection refused when trying to connect.
Main cause is different security in new version of system.
Fix: edit config for cvsd
sudo gedit /etc/cvsd/cvsd.conf
change line: Listen * 2401
to this: Listen 0.0.0.0 2401
then just restart cvsd:
sudo /etc/init.d/cvsd restart
Thanks for the guide. I am totaly new to ubuntu and CVS. I get the following message when i follow the instructions.
hans@hans-desktop:/var/lib/cvsd$ cvs -d :pserver:peter@localhost:/cvsrepo login
Logging in to :pserver:peter@localhost:2401/cvsrepo
CVS password:
cvs [login aborted]: connect to localhost(127.0.0.1):2401 failed: Connection refused
hans@hans-desktop:/var/lib/cvsd$
What am i doing wrong?
Regards Hans
Hans,
If your cvs repo folder is "/var/lib/cvsd/cvsrepo", than the last lines of your config file "/etc/cvsd/cvsd.conf" should look like this:
Listen 0.0.0.0 2401
Repos /cvsrepo
Regards,
Balázs
when i m taking checkout i m getting below error
root@cvstest:~# cvs -d :pserver:nikhilv@localhost:/cvsroot checkout external
cvs server: cannot find module `external' - ignored
cvs [checkout aborted]: cannot expand modules
kinldy help
after reading so many tutorials, without a doubt is the best I read and left everything working to perfection.
thanks for everything ;)
I get cvs
[login aborted]: connect to localhost(127.0.0.1):2401 failed: Connection refused
What have I done wrong, and what can I do?
Thanks
same problem as above...
connection refused!
In my installation: I got an error during checkout.
Fatal error, aborting
cvsd: no such system user
I did the following copy:
cp -ar /lib /var/lib/cvsd
(refer: https://bugs.launchpad.net/ubuntu/+source/cvsd/+bug/801675)
then it worked.
Post a Comment
<< Home