Building a CVS server in Ubuntu

Source: Internet
Author: User
It is better to believe in books than to have no books. You have to explore it yourself. After a few days, I felt that all my posts on the Internet were traditional Chinese painting, focusing on freehand writing, refined taste, and confused. So I 'd like to write a little more details. I admire some posts outside China. Even if I ask questions, I can clearly write: What websites have I referred to, how I operate them, and what problems have I encountered ~~ Far away.

1. install cvs. In the new package manager, select CVS (system-system management-New Software Package Manager), select one from the package list on the right, and press CVS on the keyboard, the software package starts with the three letters is located.) Right-click the package and select the tag in the menu for installation. Click the application in the toolbar above. The system automatically downloads the package and installs the package.

2. Install CVSD. Same as above. Select CVSD and install. After 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. In other words, enter/myrepos in this step.

3. Open a command line window and create this/myrepos.
# Cd/var/lib/CVSD
# Sudo mkdir myrepos

4. initialize this/myrepos.
# 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.
# 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

7. Add a user
# Sudo CVSD-passwd/var/lib/CVSD/myrepos cvsuser

8. Edit the CVSD configuration file and configure the damn rootjail.
# 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, if some abnormal network administrators prefer port sealing, you can set the CVSD listening port here. For example, you can change the default port 2401 to 8080.
Listen * 8080

10. Set directory permissions.
# Sudo chown CVSD: CVSD/var/lib/CVSD-R

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

12. Configure and use this CVS server in eclipse or other CVS clients.
Connection Type: pserver
HOST: Your IP
Port: 8080
Repository path:/myrepos
User: cvsuser

In fact, this CVSD installation mainly refers to its README, but it is a compressed file, and it didn't want to be unlocked at first. /Usr/share/doc/CVSD/readme.gz.

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.