Browse
 
Tools Add
Rss Categories
-->

Ubuntu - Install Subversion - SVN

Reference Number: AA-04999 Created: 2013-08-30 22:25 Last Updated: 2013-08-30 22:25 0 Rating/ Voters

Apache Subversion (often abbreviated SVN, after the command name svn) is a software versioning and revision control system distributed under an open source license. Developers use Subversion to maintain current and historical versions of files such as source code, web pages, and documentation.

Install Subversion on Ubuntu 12.04

#Run the following cmd

sudo apt-get install subversion libapache2-svn

# Create the subversion repository in a location ( we're going to pick /svn )

sudo svnadmin create /svn

# Edit the configuration file for the subversion webdav module. You can use whichever editor you like.

nano /etc/apache2/mods-enabled/dav_svn.conf

# Comment out the <Location /svn> line. It specifies the root directory where subversion will be accessible from, for instance: http://www.server.com/svn. Also comment out the 'Dav svn' line to enable the repository.

<Location /svn>

DAV svn


# Set the SVNPath line to the same directory you created the repository with the svnadmin command.

SVNPath /svn


# Comment out the following 3 lines to enable Basic Authentication

AuthType Basic
AuthName “Subversion Repository”
AuthUserFile /etc/apache2/dav_svn.passwd

# Create a user on the repository use, the following command:

sudo htpasswd -cm /etc/apache2/dav_svn.passwd <username>

Please note that you should only use the -c option the FIRST time that you create a user. After that  use the -m option, which specifies MD5 encryption of the password, but doesn’t recreate the file.

#Restart Apache

sudo /etc/init.d/apache2 restart


# Go to http://IPAddress/svn in your browser

# If you want to enable authentication for all users, comment out the  AuthUserFile line in the conf file. Restart apache after changing this line.

Require valid-user

# If you refresh it again in your browser, you will be prompted for user credentials.





Rss Comments
  • There are no comments for this article.
Info Add Comment
Nickname: Your Email: Subject: Comment:
Enter the code below: