Ubuntu10.04 install the CVS server

Source: Internet
Author: User
Ubuntu10.04 install the CVS server first with CVS and CVSD. When sudoapt-getinstallcvssudoapt-getinstallcvsd is used to install cvsd, a prompt is displayed for setting the repository location. You only need to enter the location relative to RootJail. RootJail is set in/etc/cvsd. conf. The default RootJail is/var/li.

Install the CVS server in Ubuntu 10.04

Install CVS and CVSD first.

Sudo apt-get install cvs

Sudo apt-get install cvsd

When installing cvsd, you will be prompted to set the repository location. You only need to enter the location relative to RootJail. RootJail is set in/etc/cvsd. conf. The default RootJail is/var/lib/cvsd. That is to say, keep the default value in this step, that is,/myrepos.

2. Open a command line window and create/myrepos.
# Cd/var/lib/cvsd
# Sudo mkdir myrepos

3. initialize this/myrepos.
# Sudo cvs-d/var/lib/cvsd/myrepos init

4. Set the directory owner and its permissions.
# Sudo chown cvsd: cvsd/var/lib/cvsd-R
Grant permissions to the cvsd group and cvsd users. This user is created when installing cvsd with apt. cvsd uses cvsd to run the cvs service by default.

# Sudo chmod-R a + rw/var/lib/cvsd/myrepos
Grant the read and write permissions of all files and folders in the/var/lib/cvsd/myrepos directory to all users (to edit the configuration file)

# Sudo chmod-R a + rw/var/lib/cvsd/tmp
Grant the read and write permissions of all files and folders in the/var/lib/cvsd/tmp directory to all users.

 

5. Set the cvsd user authentication method. The default value is system level. Generally, cvs users are set separately.
# Sudo gedit/var/lib/cvsd/myrepos/CVSROOT/config
Add the following lines:
SystemAuth = no
PamAuth = no
LockDir =/tmp/myrepos
Save and exit. Note that/tmp/myrepos indicates the path relative to RootJail.

6. Create LockDir
# Sudo mkdir/var/lib/cvsd/tmp/myrepos

# Sudo chmod-R a + rw/var/lib/cvsd/tmp/myrepos // Add User Permissions to this directory; otherwise, the submission fails.

7. Add a user
# Sudo cvsd-passwd/var/lib/cvsd/myrepos cvSUSEr
Add User cvsuser. After you press enter, you will be prompted to enter the password. Both the user and password are reported to exist in the passwd file under/var/lib/cvsd/myrepos/CVSROOT.
. You can delete the file and add it again.

8. Edit the cvsd configuration file.
# Sudo gedit/etc/cvsd. conf
The default value is:
RootJail/var/lib/cvsd
Repos/myrepos
Note that the Repos path here is also relative to RootJail.
In addition, the default port is Listen * 2401.

Should be changed to: Listen 0.0.0.0 2401 (this must be changed)


11. Restart cvsd.
# Sudo/etc/init. d/cvsd restart

12. Test cvs

Cvs-d: pserver: cvsuser @ localhost:/myrepos login
Cvs-d: pserver: cvsuser @ localhost:/myrepos checkout

Finally, test CVS in NetBeans.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.