Setup a SVN server in minutes
Posted by admin on May 15th, 2009 filed in SubversionHere are the steps
1. Create a repository
# mkdir /svn_repos 2. Securing the SVN repository # vim /svn_repos/
Append the lines to the end of the file, anon-access = none Setting up Authentication # vim /svn_repos/
*Note the password is in plaintext. Please make sure that you setup a strong password 3. Host the SVN repository on the web # svnserve -d 4. Accessing the Repository from a remote location svn://hostname/svn_repos/
Pre-Requisites Note: “/” in front of “mysuperproject” that is the physical path on the unix file system. if the svn repo is created at “/svn/mynewrepo” then the valid url will be svn://mysvnrepository.com/svn/mynewrepo -Admin
# cd /svn_repos
# mkdir -p /
# svnadmin create /svn_repos/
auth-access = write
password-db = passwd
# add users in the format : user = password
username = password
* Port 3690 must be open
* You must provide the complete url to access the svn repository. For example, if the domain name is mysvnrepository.com and the project name is /mysuperproject the valid svn url will be
svn://mysvnrepository.com/mysuperproject
Leave a Comment