Install and configure SVN in Ubuntu

Source: Internet
Author: User
Tags svn client tortoisesvn

Install and configure SVN in Ubuntu

Ubuntu 1204 server
Install SVN

apt-get install subversion

Create SVN Repository

Mkdir-p/home /. svn/test # create a repository directory mkdir-p/home /. svn/test_2svnadmin create/home /. svn/test # create a repository. After execution, the test directory contains the repository-Related File svnadmin create/home /. svn/test_2

Configure and manage SVN

1) Repository configuration file $ depot/conf/svnserve. confanon-access = none # permission settings for anonymous users, which can be read, write, and noneauth-access = write # permission settings for authenticated users, which can be read, write, nonepassword-db = passwd # path of the password database authz-db = authz # path of the authentication rule repository 2) configure the password $ depot/conf/passwd [users] allen = 111111 # allen (User Name) = 111111 (password) 3) configure authentication rules $ depot/conf/authz [groups] harry_and_sally = harry, sally # group name = user 1, user 2 [/] # Start from/home /. start svn/test and ask the root directory. [/] Set the test directory to the root directory harry = rw # the user's permission to the root directory is rwsally = r # the user's permission to the root directory is r [test1: /] # Start from/home /. svn start @ harry_and_sally = rw # all user permissions of the user group are rw

SVN startup, shutdown, and access

Start: svnserve-d-r/home /. svn/test # starts from the test directory, corresponding to [/]. access Method: svn: // ** IP **/svnserve-d-r/home /. svn/test1 # slave. svn directory startup, corresponding to [test1:/]. Access Method: svn: // ** IP **/test1 close: killall svnserve # netstat-at can check whether svn is started # If svn needs to be started, add the startup command to/etc/rc. local (BOOT script )##

SVN client
Install TortoiseSVN http://tortoisesvn.tigris.org/

SVN clientFor more information, see TortoiseSVN.

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.