views:

381

answers:

5

I want to set up an svn repository on my Ubuntu desktop that may be accessed from the outside (over the internet). Any recommended tutorials? I have looked around but get stuck with most of them...

+3  A: 

This guide from the Ubuntu docs will tell you how to get Apache and Subversion set up using mod_svn_dav and svn+ssh. The packages make it virtually painless.

Andrew Noyes
Of course, you don't need to setup both. It depends on who will be accessing it. svn+ssh:// is probably the best option. It uses an optimized custom protocol, with ssh transport security.
Matthew Flaschen
+1  A: 

Can you show some of the tutorials and where you get stuck? We can probably point you to the same tutorials, but it'd help to know where you're having trouble.

I think there are two issues you're likely to have:

  • Port forwarding enables you to get access to services running on your computer from the internet. The usually involve setting up your router and/or negotiating with your ISP.
  • Apache SVN setup involves modules like webdav and other things. If you're just getting up and running, perhaps you should just use svn+ssh?

That said, give us a little more information and you're sure to find lots of help.

Stefan Mai
As a start I am getting "localhost uses an invalid security certificate" when I test the setup using https://localhost/
Added an exception to Firefox, and now get 493 - forbidden
Got it to work.
A: 

I think you'd be best served to separate those tasks and look for tutorials on each.

Setup Subversion and apache:

One example tutorial

Once you have svn working internally, work on the firewall part. I have no idea what kind of firewall you are behind but if it's linux, then try:

ubuntu port forward to apache

Tim Hoolihan
A: 

Here is one from AlphaZarro.

Also, the SVN book is a great source of information.

Tim Henigan
Thanks - this one solved my problem.
A: 

I don't think this tutorial is particularly difficult to follow.

It can get complicated when you start adding security features, but basic out-of-the-box, its very easy.

You will need to install Apache, then subversion. You will need to configure Apache to serve a 'website' with the subversion directives added to it, and you will possibly have to set up your network to allow outside communication to your desktop (are you behind a NAT firewall for example). It might be worth getting some free subversion server hosting.

gbjbaanb