Install and configure the svn server in Ubuntu

Source: Internet
Author: User
Tags subversion client

Link: http://blog.csdn.net/max__payne/article/details/3437529

The setting of subversion in Linux is simpler than that in windows. Today, let's take a look at how to install and configure the Subversion server in Ubuntu.

1. First install the Subversion software:

    1. Sudo apt-Get install Subversion

Svnadmin create/var/SVN 2. Create a repository

/Var/SVN is the path of the created warehouse. In theory, it can be any directory.

3. modify the configuration file/var/SVN/CONF/svnserve. conf.

    1. # Remove # Before [general]
    2. [General]
    3. # Anonymous access permission, which can be read, write, or none. The default value is read.
    4. Anon-Access=None 
    5. # Authenticate the user's permissions, which can be read, write, or none. The default value is write.
    6. Auth-Access=Write 
    7. # Remove the path of the password database #
    8. Password-DB=Passwd 

Note: All rows must have the top level; otherwise, an error is returned. Suggestion: to prevent unnecessary errors, we recommend that you overwrite the original content of the file with the content above.

4. modify the configuration file passwd.

    1. [Users]
    2. Svnuser=Password 
    3. Wangkangluo1= 123456

Note:

◆ Be sure to remove the # above [users]. Otherwise, SVN can only Log On As an anonymous user. The logon window will not appear on the client. An error will be returned unless your anon is not none.

◆ The passwords here are not encrypted, and I cannot use the passwords generated by using htpasswd according to some tutorials.

5. Stop the Subversion server:

    1. Killall svnserve

6. Start the Subversion server for a singleCodeWarehouse, start command:

    1. Svnserve-d-r/var/SVN -- listen-host 10.19.3.103

-D Indicates running in the background, and-R specifies the root directory of the server, so that you can directly access the server using SVN: // server IP address.

7. Expansion

If the server has multiple IP addresses,-Listen-host is used to specify the IP address of the listener. www.linuxidc.com we can access the Subversion server through SVN: // 10.19.3.103 In the Subversion client. For Multiple code repositories, we can also use the-r option to specify the server root directory at startup, however, you need to write the relative path of Each repository relative to the svn root directory during access. for example, we have two code repositories:/var/VSS/repo1 and/var/VSS/repo2. We use svnserve-d-r/var/VSS-Listen-host 10.19.3.103 to start them, you can access two projects by using SVN: // 10.19.3.103/repo1 and SVN: // 10.19.3.103/repo2 at the client.

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.