I don't get cvs
by DME · in General Discussion · 06/09/2003 (2:59 pm) · 25 replies
Well I have been asking arounda few days with help on CVS I can't seem to figure it out. I've read tutorials and asked around but I'm just having no luck. Lots of people say it's not that hard, I'm sure im missing something though. So lets start with my computer.
I want to SETUP a CVS server, not access a cvs client
My computer is a P 4 2.6 with 512 memory it is running Xp HOME, I have installed win cvs and I've installed cvsnt, my partition is NTFS.
Now some people say I need xp pro, is that true? Some people say my computer needs to be setup as a web server or a server of some type, is that true?
If someone can take me through how to do this it would be nice, I've read a bunch of tutorials but its just not working.
I want to SETUP a CVS server, not access a cvs client
My computer is a P 4 2.6 with 512 memory it is running Xp HOME, I have installed win cvs and I've installed cvsnt, my partition is NTFS.
Now some people say I need xp pro, is that true? Some people say my computer needs to be setup as a web server or a server of some type, is that true?
If someone can take me through how to do this it would be nice, I've read a bunch of tutorials but its just not working.
#2
do you have any specific questions???
06/09/2003 (6:24 pm)
it was all explained pretty step by step by step on the cvsnt.org site, I don't see how it can get any clearer than those instructions.do you have any specific questions???
#3
The instructions are really easy to a point, then it's, for this and this do this and for that and that do that but don't do that for this cause them will happen.
I think the major problem is I'm not a programmer I'm setting this up for my programmers but I have never looked at CVS or code before in my life.
06/09/2003 (6:46 pm)
Well I install cvsnt, I click on control panel, go to add a repository and I get an error but then it seems to work after. Then I get to the part in the instructions where is starts rambling on for hours about all these obscure protocols.. And Im just sitting there wondering wtf are they talking about. The instructions are really easy to a point, then it's, for this and this do this and for that and that do that but don't do that for this cause them will happen.
I think the major problem is I'm not a programmer I'm setting this up for my programmers but I have never looked at CVS or code before in my life.
#4
without any specific questions, you aren't likely to get any specific answers.
Someone put in a tremendous amount of effort to write the beginners guide, no one is going to post anything near that consice on a forum.
If you can't follow/understand those instructions you probably have something wrong with your OS installation.
06/09/2003 (10:53 pm)
if this is not enough, nobody here will be able to post anything any easier to understand unfortunately.without any specific questions, you aren't likely to get any specific answers.
Someone put in a tremendous amount of effort to write the beginners guide, no one is going to post anything near that consice on a forum.
If you can't follow/understand those instructions you probably have something wrong with your OS installation.
#5
06/10/2003 (9:15 am)
Ya I think your right. I just wanted to check, so cvs will work with XP home and I don't need anything else installed no server software or anything just cvsnt?
#7
SSPI works over TCP/IP so it can more easily traverse firewalls. Like :ntserver: the :sspi: protocol does not need a login,instead the login you did when you started your workstation is used with this protocol.
Limiting user access with sspi
When used normally sspi will accept connections from all system users that authenticate against the system (local or domain). Often this is not really what we want, instead we want to use the same mechansism as is used with :pserver:. Here the CVSROOT/passwd file limits the logins accepted by CVSNT to those mentioned in the file.
With :sspi: this is quite possible, you only have to list the account login names that you want to give CVS access in the passwd file. You also have to set the parameter
SystemAuth = No
in the CVSROOT/config file.
Note that in this case there is no need for entering passwords into the passwd file. SSPI uses the system login and the passwd file is only used as a list of accepted users. So simply issuing this command when logged in as a CVS administrator will work
cvs passwd -a newuser
(press enter twice to tell CVSNT that no password is used)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Now I have no CVSroot file on my system, I have no passwd file. CVSNT is installed on my machine, it is running in my control panel, so where are these elusive files that I should be using that do not exist.
06/11/2003 (12:04 am)
Okay here the step im atSSPI works over TCP/IP so it can more easily traverse firewalls. Like :ntserver: the :sspi: protocol does not need a login,instead the login you did when you started your workstation is used with this protocol.
Limiting user access with sspi
When used normally sspi will accept connections from all system users that authenticate against the system (local or domain). Often this is not really what we want, instead we want to use the same mechansism as is used with :pserver:. Here the CVSROOT/passwd file limits the logins accepted by CVSNT to those mentioned in the file.
With :sspi: this is quite possible, you only have to list the account login names that you want to give CVS access in the passwd file. You also have to set the parameter
SystemAuth = No
in the CVSROOT/config file.
Note that in this case there is no need for entering passwords into the passwd file. SSPI uses the system login and the passwd file is only used as a list of accepted users. So simply issuing this command when logged in as a CVS administrator will work
cvs passwd -a newuser
(press enter twice to tell CVSNT that no password is used)
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Now I have no CVSroot file on my system, I have no passwd file. CVSNT is installed on my machine, it is running in my control panel, so where are these elusive files that I should be using that do not exist.
#8
not supposed to have one according to what you posted.
the passwd file is only used with pserver, which is the easiest way to get it to work.
06/11/2003 (5:13 am)
CVSROOT is not a file it is a directory.Quote:Note that in this case there is no need for entering passwords into the passwd file
not supposed to have one according to what you posted.
the passwd file is only used with pserver, which is the easiest way to get it to work.
#9
Did you want help? That's why I asked about the error... ;)
If you are missing the cvsroot directory then you didn't create your repository properly (actually cvsnt didn't). You probably got an error like 'unable to create repository...'. You need to delete the repository from the cvsnt config in control panel and reboot. Then recreate the repository, this time it should work.
If you still have problems:
The only other trouble with cvsnt I've had was when I had an older cvs install already on the machine. To get it working I:
1 - Uninstalled everything cvs.
2 - Deleted ALL cvs directories I created.
3 - Reinstalled cvsnt.
4 - Rebooted (cvs directory is added to the path).
5 - Started up the service.
6 - Created a repository.
Test connecting to the service at this point before doing anything fancy.
Btw: I use sspi with encryption and it works great. You can setup accounts in win2k that can't login or access anything on the network, cvs only seems to authenticate with the user name and password, not work under the users account (as far as I can tell).
Hope this helps...
John.
06/11/2003 (9:44 am)
Brice,Did you want help? That's why I asked about the error... ;)
Quote:
I have no CVSroot file on my system
If you are missing the cvsroot directory then you didn't create your repository properly (actually cvsnt didn't). You probably got an error like 'unable to create repository...'. You need to delete the repository from the cvsnt config in control panel and reboot. Then recreate the repository, this time it should work.
If you still have problems:
The only other trouble with cvsnt I've had was when I had an older cvs install already on the machine. To get it working I:
1 - Uninstalled everything cvs.
2 - Deleted ALL cvs directories I created.
3 - Reinstalled cvsnt.
4 - Rebooted (cvs directory is added to the path).
5 - Started up the service.
6 - Created a repository.
Test connecting to the service at this point before doing anything fancy.
Btw: I use sspi with encryption and it works great. You can setup accounts in win2k that can't login or access anything on the network, cvs only seems to authenticate with the user name and password, not work under the users account (as far as I can tell).
Hope this helps...
John.
#10
Now for users I'm using sspi with encryption. It says to create user name and password, I'm not sure how to do this with sspi so using windows XP home I went into control panel and users I created 2 more accounts with passwords and admin privileges, Is that right? Or do you create user names and passwords with the program somehow?
06/11/2003 (11:55 am)
Thanks for all the help guys I think I'm getting closer, I uninstalled CVSNT then reinstalled it and created the repo again.. This time I have CVSROOT. It says it's running.Now for users I'm using sspi with encryption. It says to create user name and password, I'm not sure how to do this with sspi so using windows XP home I went into control panel and users I created 2 more accounts with passwords and admin privileges, Is that right? Or do you create user names and passwords with the program somehow?
#11
Other than login types, there really is nothing to setting up the server. Install software, create repository. Occasionally I've had to create 2 to get one working. If you get any kind of error your first time, just create another one. It seems to be much easier to erase the bad one _after_ you've created a working one, than it is to try and start over the minute you have a problem.
06/11/2003 (1:12 pm)
Probably the most confusing part of any CVS instruction, is where it trys to explain 3-4 different login methods. Choose only 1, and completely ignore all other instructions. For a first timer, choose pserver. It is incredibly easy to use, and it will rely on NT (or XP) for logins and passwords. I'm sure you already know how to create users on your machine. Most instructions will warn you many times about the inherent security risks in pserver, ignore those as well. Its not that easy to hack into one, and it's even more doubtful someone would even want to.Other than login types, there really is nothing to setting up the server. Install software, create repository. Occasionally I've had to create 2 to get one working. If you get any kind of error your first time, just create another one. It seems to be much easier to erase the bad one _after_ you've created a working one, than it is to try and start over the minute you have a problem.
#13
If SSPI is to diffuclty to create user accounts and passwords I'll just reinstall cvsnt again
PS Ya I wish I had an etxra computer to put red hat on =)
06/11/2003 (1:17 pm)
doh it said pserver was a secruity hole and to disable it you delete it which I did =P If SSPI is to diffuclty to create user accounts and passwords I'll just reinstall cvsnt again
PS Ya I wish I had an etxra computer to put red hat on =)
#14
there is nothing really wrong with pserver that is what garagegames along with thousands more cvs sites, I am sure if it was this huge security risk no one would use it.
06/11/2003 (2:52 pm)
as it says in the instructions you have to run a command line program to create the users.there is nothing really wrong with pserver that is what garagegames along with thousands more cvs sites, I am sure if it was this huge security risk no one would use it.
#15
This is a step that is only needed if you plan on using the pserver or sserver protocol with this CVS server, and you want to add usernames who are not part of the standard NT user list. If your users are all on Windows PCs pserver is recommended you use SSPI instead because it integrates much better with Windows NT. If you decide to go with SSPI then you can skip the discussion on how to add and manage users in this section.
Open a command window and do the following (replace itemswith the real values from your system).
th - removed a section about adding your own username - this would be better handled by setting SystemAuth=Yes (which I think is the default?)
set cvsroot=:sspi::/TEST
cvs passwd -r -a
You will now be asked to enter a password for this user. Enter the same password twice. Now the CVSROOT/passwd file will be created and the user you entered will be added to the list in this file.
I tired the command, it says access denied, I disabled all 3rd party programs, I completely shared out the folder, I log in as an administrator in safe mode, same thing, access denied. I go to the folder and I can add and remove stuff in it. So access is actually not denied. Any ideas?
06/12/2003 (10:04 am)
Okay here I am again. I reinstalled CVSNT again set it all up and it's running. I got the cvsroot again and all seems to be fine. I am on this part of the instructions nowThis is a step that is only needed if you plan on using the pserver or sserver protocol with this CVS server, and you want to add usernames who are not part of the standard NT user list. If your users are all on Windows PCs pserver is recommended you use SSPI instead because it integrates much better with Windows NT. If you decide to go with SSPI then you can skip the discussion on how to add and manage users in this section.
Open a command window and do the following (replace items
th - removed a section about adding your own username - this would be better handled by setting SystemAuth=Yes (which I think is the default?)
set cvsroot=:sspi:
cvs passwd -r
You will now be asked to enter a password for this user. Enter the same password twice. Now the CVSROOT/passwd file will be created and the user you entered will be added to the list in this file.
I tired the command, it says access denied, I disabled all 3rd party programs, I completely shared out the folder, I log in as an administrator in safe mode, same thing, access denied. I go to the folder and I can add and remove stuff in it. So access is actually not denied. Any ideas?
#16
06/12/2003 (11:38 am)
I *think* I read somewhere last time I set it up that with the current version of cvsnt the users have to be part of the standard NT user list no matter what protocol you use. You used to could just use a "passwd" file (lowest security) but I don't think that is valid anymore.
#17
06/12/2003 (12:06 pm)
Users have to be part of a NT user list? So I go to control panel, users, and create users or is there another way to do that?
#18
06/12/2003 (1:28 pm)
You create the users in control panel like you just described and then add them to the cvs user list with the cmd-line commands you mentioned above. I *think* the passwords have to match so you are likely to not want to make the new users admins of your machine.
#19
06/12/2003 (4:18 pm)
With pserver and everything else left at its default setting, you need to do nothing but add the users to your system via the control panel. You don't need to tell cvs that you've done that, it uses the same password file windows does.
#20
I did this on an administrator account windows xp home (NTFS Par)
created 2 folders c:\cvs and c:\cvs temp
I download and install CVSNT 2.0.4 full install
My repository is going to be test in c:\cvs so I put in the path in cvsnt and clicked apply
I go to advance and point my temp directory to cvstemp
I look in my computer in the c:\cvs\test folder there is now a cvsroot folder with various files in it.
I go to control panel, then users accounts, I create a new account and password with admin privileges.
I reboot my computer I give my programmer my IP address the user name and password of the account I created and the path c:\cvs\test he tries to connect and it says no repository there.
I even started and stopped the service it says it's running.
I am missing something here. If you have set this up before I would appreciate the help. Maybe I gave him the wrong path? maybe it should be c:\cvs\test\cvsroot? I don't know I'm lost.
06/16/2003 (12:19 pm)
Back again, thought I had everything setup, but no. My programmer is getting a error no repository found. So here is what I didI did this on an administrator account windows xp home (NTFS Par)
created 2 folders c:\cvs and c:\cvs temp
I download and install CVSNT 2.0.4 full install
My repository is going to be test in c:\cvs so I put in the path in cvsnt and clicked apply
I go to advance and point my temp directory to cvstemp
I look in my computer in the c:\cvs\test folder there is now a cvsroot folder with various files in it.
I go to control panel, then users accounts, I create a new account and password with admin privileges.
I reboot my computer I give my programmer my IP address the user name and password of the account I created and the path c:\cvs\test he tries to connect and it says no repository there.
I even started and stopped the service it says it's running.
I am missing something here. If you have set this up before I would appreciate the help. Maybe I gave him the wrong path? maybe it should be c:\cvs\test\cvsroot? I don't know I'm lost.
Torque 3D Owner Robert Blanchet Jr.
www.flipcode.com/articles/article_cvsintro.shtml