Subversion/Configuration

HomePage | Subversion | RecentChanges | Preferences

1. Minimal Subversion repository setup and configuration
1.1. Create a repository
1.2. Set up passwd
1.3. Set up authz
1.4. Set up svnserve.conf
2. Start svnserve
3. Use the repo

1. Minimal Subversion repository setup and configuration

1.1. Create a repository

  cd /path/to/svn_data/repos
  svnadmin create myrepo

1.2. Set up passwd

/path/to/repos/myrepo/conf/passwd
[users]
myname = mypasswd

Define a list of users and passwords.

1.3. Set up authz

/path/to/repos/myrepo/conf/authz

[/]
* =
myname = rw

The above config means

1.4. Set up svnserve.conf

/path/to/repos/myrepo/conf/svnserve.conf

[general]
anon-access=none
auth-access=write
password-db=passwd
authz-db=authz
realm=My Repository

The above config means:

2. Start svnserve

   svnserve -d -r /path/to/svn_data

This will cause svnserve to listen on 3690 (may need to open the port or configure a firewall rule to restrict access as necessary.)

3. Use the repo

The URL to the repository created above is:

svn://localhost/repos/myrepo

You can now add or import projects, create a 'current' svn:externals definition, etc.


HomePage | Subversion | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited October 5, 2006 9:10 pm by WendySmoak (diff)
Search: