Linux – Setup a Subversion Server

These are my notes on what worked for me on my Fedora core 6 with svn lib already installed by the package manager:

1. Create a Repository

svnadmin create /svnrepos

2. Create a SVN User

vi /svnrepos/conf/svnserve.conf

In that file add these three lines:

anon-access = none
auth-access = write
password-db = passwd

Create a password file:

vi /svnrepos/conf/passwd

In that file add a line for your user:

# add users in the format : user = password
username = mypassword

3. Import Your Project
(assuming you’ve put your project files in /projects/prj1)

svn import /projects/prj1 file:///svnrepos/prj1

4. Start the SVN Server as Daemon

svnserve -d

Done! You should now have a svn server running with one project named myrailsproject.

Try checking it out of the repository:

svn co svn://192.168.0.1/svnrepos/proj1

Since we set anon-access to none you should be prompted for username and password which you created in the file /svnrepos/conf/passwd.

Leave a Reply

Your email address will not be published. Required fields are marked *

*