odyniec.net

Setting Up an Ubuntu Subversion Server

A few days ago, my friend asked me to help him configure Subversion on his Ubuntu server, so that he and his fellow programmers could use it for their projects. Being the helpful chap that I am, I wrote up some instructions for him, and then I thought I might as well write a step-by-step tutorial on this subject. So here it is — my tutorial on setting up an Ubuntu-based Subversion server.

8 Responses to “Setting Up an Ubuntu Subversion Server”

  1. Lorello says:

    Hi, the init script linked in the official ubuntu documentation was broken, I’ve linked your tutorial and your init-script, I hope is not a problem.

    https://help.ubuntu.com/community/Subversion?action=diff&rev2=60&rev1=59

  2. Michal Wojciechowski says:

    @Lorello:
    Not a problem at all, I’m glad my tutorial can be helpful to the community.

  3. John Rees says:

    Hi Michal,
    I’d like to thank you for this excellent article on Setting Up an Ubuntu Subversion Server. I am relatively experienced with UNIX sysadmin but I have searched in vain for information about setting up a subversion server.

    We have had subversion running on an old Windows server but wanted to migrate to Ubunbtu. This is pretty much the best set of instructions out there. Thanks

  4. Michal Wojciechowski says:

    @John:
    Thanks, I’m happy you found it useful.

  5. Banani says:

    Hi Michal,
    Thanks for writing such a good tutorial! I have setup subversion using this tutorial.
    One thing I have noticed, when an user( who doesn’t have account on the server where svnserve is configured) try to checkout from remote location gets ‘URL doesn’t exit’ error. Although authentication of the user is sucessful. Like below
    user1@ubuntu-8:~$ svn checkout svn://ip-address/usr/local/svn/svn-repos/proj-test –username user1
    Authentication realm: My First Repository
    Password for ‘user1′:
    svn: URL ’svn://ip-addess/usr/local/svn/svn-repos/proj-test’ doesn’t exist
    Looking for the solution. Thanks.

  6. Michal Wojciechowski says:

    @Banani:
    With the svn protocol, the path is relative to the repositories directory, not the filesystem root. Use “svn://ip-address/proj-test” and it should work.

  7. Banani says:

    Thanks, Michal for this prompt reply.
    I have tried “svn://ip-address/proj-test”. Still getting the same.
    svn: URL ’svn://ip-address/proj-test’ doesn’t exist

  8. Chris says:

    Hi Michal!

    Thanks for the complete and clear guide to setting up the SVN server! Works like a charm!

    Extra thanks for the init.d script.

Leave a Reply