Configure the SVN (subversion) server on Ubuntu

Source: Internet
Author: User
Tags svn client

Today, the company has only one day of servers, installed ubuntu9.04, and turned it into ubuntu9.10 with a testing mentality to see what new performance improvements those new inner nuclear energy provide. After configuration, you are ready to build the svn server on it. I used to do this in windows. Ubuntu Linux should be simpler than windows.

1. First install the Subversion software:

 
Sudo apt-Get install Subversion

2. Create a repository

 
Svnadmin create/var/SVN

/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.

 
# Remove # [general] # [general] # anonymous access permission, which can be read, write, or none. The default value is readanon-access = none # authenticate user permissions, it can be read, write, none. The default value is writeauth-access = write # Password Database path. Remove the previous # 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.

 
[Users] svnuser = password‑z = symbol Z

Note 1. be sure to remove the # above [users]. Otherwise, SVN can only Log On As an anonymous user, and the client will not display a logon window. Unless your anon is not none, an error will be returned. 2. the passwords here are not encrypted, and I cannot use the passwords generated by using htpasswd according to some tutorials.

5. Stop the svn Server:

Killall svnserve

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

 
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, use "Listen-host" to specify the IP address of the listener. we can access the svn server through SVN: // 10.19.3.103 on the svn 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.