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)