Set up the native SVN server tutorial on Ubuntu in Linux

Source: Internet
Author: User
Tags mkdir svn

Steps for the setup local SVN server:

1. Add "Subversion" group and add user account to this group;

2. Create SVN repository directory;

$ sudo mkdir/home/svn
$ cd/home/svn
$ sudo mkdir myproject
$ sudo chown-r root:subversion myproject
3. Create SVN repository;

$ sudo svnadmin create/home/svn/myproject
4. Give group members the appropriate permissions for all files newly added to the file warehouse:

$ sudo chmod-r g+rws myproject
If the above command runs before the SVN file warehouse is created, you may encounter the following error in subsequent check in: Can ' t open '/home/svn/myproject/db/txn-current-lock ': Permission Denied5. Start Local SVN server

$ svnserve-d-R/HOME/SVN
6. Visit svn

$ svn Co svn://localhost/myproject use the command line to manipulate SVN is omnipotent, but not intuitive. This requires an easy-to-use, easy to install, lightweight Web client.

By comparison, VIEWVC was selected. Although the VIEWVC interface is simple, it can be run directly from an external Web server, which is

I need that.

1. Installation
Installing VIEWVC from apt source on Ubuntu automatically installs Apache, so I choose to download the source code viewvc-1.1.12.tar.gz myself to VIEWVC.

After you unpack, run sudo viewvc-install and install to/usr/local/viewvc-1.1.12 by default.

2. Configure
Under/usr/local/viewvc-1.1.12, there is a configuration file viewvc.conf, each of which is uniquely detailed with help information. I have modified the following:

Root_parents =/OPT/SVN:SVN

Root_parents is the upper directory of the repository. All repository in the directory will be displayed on the GUI. If you need to configure each repository directory, you should use the Svn_roots configuration entry.

Allowed_views = Annotate, diff, markup, roots

User-visible view, using the default configuration.

3. Run

Execute sudo/usr/local/viewvc-1.1.12/bin/standalone.py can start VIEWVC, the default port is 49132. (plus-p <port> parameters can change the default port)

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.