Jorge1
November 12, 2004, 12:26pm
1
Hello !
I´m a beginner about cvs.
I want to use Eclipse´s cvs, but when I add a new repositorie, the system
can´t locale host. I think I haven´t configure a cvs server. How can I
configure a cvs server? Do I need something else (software)? Where can I
find information about my problem? and about the use of Eclipse´s cvs too.
Note: My computer is in a intranet and I want to use it as a server cvs and
as a client cvs too. Besides there are some computers that will work as
client cvs.
Thanks and greetings, Jorge.
Jorge1
November 17, 2004, 5:43pm
2
Hi,
Finally I configure my cvs server in my machine under a shell (without gui)
with cvs command. For this:
I created a repository in /usr/local/cvsroot
I have changed the owner and permissions of this
I have created a file (/usr/local/cvsroot/CVSROOT/passwd) containing
this:
anonymous:
or
jorge::cvs (and I have created an new user cvs)
I have added a line in /etc/services:
cvspserver 2401/tcp #CVS PServer
I have added a line in /etc/inetd.conf
cvspserver stream tcp nowait cvs /usr/bin/cvs
cvs --allow-root=/usr/local/cvsroot pserver
I launch the daemon inetd
Then I try to connect with this line:
cvs -d :pserver:anonymous@pc1:/usr/local/cvsroot login
or
cvs -d :pserver:jorge@pc1:/usr/local/cvsroot login
and I introduce the password (empty) and the server produce an error
of authentification.
I think it happen because I have problems with passwords, but I´m not sure.
I don´t know how I can introduce an encrypt password in this file. What
utility is necesary to do this?
Have I configure wrong the cvs server?
Can you help me, please? I´m completely lost.
Thanks, Jorge.
Jorge wrote:
Hi,
Finally I configure my cvs server in my machine under a shell (without gui)
with cvs command. For this:
[…]
I have created a file (/usr/local/cvsroot/CVSROOT/passwd) containing
this:
anonymous:
or
jorge::cvs (and I have created an new user cvs)
[…]
Then I try to connect with this line:
cvs -d :pserver:anonymous@pc1:/usr/local/cvsroot login
or
cvs -d :pserver:jorge@pc1:/usr/local/cvsroot login
and I introduce the password (empty) and the server produce an error
of authentification.
I don’t think Eclipse requires CVS passwords, but you can create them
easily enough… try this Perl script:
#!/usr/bin/perl
srand(time());
my $randletter = “(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))”;
my $salt = sprintf ("%c%c", eval $randletter, eval $randletter);
my $plaintext = shift;
my $crypttext = crypt ($plaintext, $salt);
print “${crypttext}\n”;
run it with the desired password as the first and only argument, then
stick that in the CVS passwd file between the user ID and user-to-run-as.
Another thing to check… did you create the CVS user?
Your CVS login lines look OK; perhaps the CVS Bubbles site (use Google
to find “CVS Bubbles”) has an article about setting up anonymous CVS access?
–
Chris Herborth (cherborth@qnx.com )
Never send a monster to do the work of an evil scientist.