It is found that the CVS configured according to some articles on the Internet always has nosuchrepository problems. The following is a summary. As long as you configure the configuration step by step, there is absolutely no problem. The test passed in Ubuntu9.04. 1. Networking, configure Ubuntu9.04 source, execute: shell & gt; sudoapt-getinstallcvs2.shell & gt; sudoapt-getinstallcvsd. The repositor
It is found that CVS configured according to some articles on the Internet always has the no such repository problem. The following is a summary. As long as you configure the configuration step by step, there is absolutely no problem. The test passed in Ubuntu 9.04.
1. connect to the Internet, configure the Ubuntu 9.04 source, and execute: shell> sudo apt-get install cvs
2. shell> sudo apt-get install cvsd. At this time, I will ask you about the repository location. I will configure it by default without modification. We suggest you do not change it, if you are not clear about it. ()
3. Create this/myrepos.
Shell> cd/var/lib/cvsd
Shell> sudo mkdir myrepos
4. initialize this/myrepos.
Shell> sudo cvs-d/var/lib/cvsd/myrepos init
5. Set the cvsd user authentication method. The default value is system level. Generally, cvs users are set separately.
Shell> sudo vim/var/lib/cvsd/myrepos/CVSROOT/config
Add the following lines:
SystemAuth = no
PamAuth = no
LockDir =/var/lib/cvsd/tmp/myrepos
Save and exit.
6. Create LockDir
Shell> sudo mkdir/var/lib/cvsd/tmp/myrepos
7. Add a user
# Sudo cvsd-passwd/var/lib/cvsd/myrepos weisong # The user you want to create replaces "weisong"
8. The default cvsd port is 2401. You can change it to another port.
# Sudo vim/etc/cvsd. conf
Listen * 2401
In addition, the default values include:
RootJail/var/lib/cvsd
Repos/myrepos
Note that the Repos path here is relative to RootJail. This is also true by default when cvsd is installed before. You do not need to modify it.
10. shell> sudo chown cvsd: cvsd/var/lib/cvsd-R enables cvsd to run this service. This user has already created it when installing cvsd.
11. Restart cvsd.
Shell> sudo/etc/init. d/cvsd restart
12. Use cvs in eclipse, select the project name, right-click team, and choose share project. The following are some client parameters,
Connection type: pserver
Host: 127.0.0.1 of course, I am using a local host as a server. You can also set
Port: 2401
Repository path:/var/lib/cvsd/myrepos
User: weisong
Password :****
13. Permission control. You can create a readers file under/var/lib/cvsd/myrepos/CVSROOT/and set the read-only username.
Linuxidc Disclaimer: This article only represents the author's personal opinion and has nothing to do with Linux community (Linuxidc. Its originality, as well as the statement text and content in this article have not been confirmed by this site, this article and all or part of the content, the authenticity, integrity, timeliness of this site do not make any warranty or commitment, for your reference only, please verify the relevant content on your own.