Razor Code
Rambling about code since quite recently

Topics

User Functions





    Don't have an account yet? Sign up as a New User
    Lost your password?

Events

There are no upcoming events

Older Stories

Sunday 14-Sep

  • ACM ICPC 2008 (0)

  • Monday 11-Aug

  • NZ Programming Comp (0)

  • Sunday 27-Jul

  • Blast from the past (0)

  • Monday 21-Jul

  • Timetable generator again (0)

  • Tuesday 08-Jul

  • Hosting (2)

  • Saturday 05-Apr

  • Sparse Volume (0)

  • Friday 28-Mar

  • Carmack (0)

  • Tuesday 04-Mar

  • Back to Uni (0)
  • Dell Kill Switch Direct (0)

  • Monday 18-Feb

  • Lappy (0)

  •  Svn hosting    
     Author: 
     Dated:  Tuesday, October 14 2008 @ 12:10 AM NZDT
     Viewed:  248 times  
    ProgrammingI figured out how to set up a subversion repository on my web host today. It was a bit tricky, because I use shared hosting which has no provisions for svn whatsoever. However, it turns out that ssh access to your server is all you really need to set it up. Host Monster does provide ssh access if you send them a photo of some ID, so it was all good.

    I looked at a few ways of setting it up. I don't have permission to run long term processes on the server, so a typical svn server went out the window immediately. The apache version it runs doesn't have the svn extension thing, so there goes that option. All that's left is svn+ssh, which works by logging into the server remotely and running a temporary svn server process. The first slight issue was that (unsurprisingly) the server didn't have svn installed, and I don't have permission to install anything. Not a problem, I figured I could edit the .bashrc (the server runs some obscure version of linux) and add the bin directory of svn to the path. That way any ssh login can automatically run the svn commands, even though they're not installed in a normal place. That's all fine, but I then needed some svn binaries that would run on an obscure version of 64bit linux. Easiest way of getting that sort of thing is to compile on the target hardware. So I checked if the server had any compilers installed, and indeed it did (of course, I mean it's linux). So I downloaded the svn sourcecode, uploaded it to the server, tried to build it, and found that I needed a couple of apache libraries. I did the same upload-the-source-and-compile trick to them, and installed them to my home directory. From there I could build and install svn. It went without a hitch, and I created a test repository. It took me a bit longer to figure out how to access the repo using svn+ssh, but I got it working (it's a bit cumbersome though). Having added a feature to my hosting, I was stoked.

    Maybe I should have just suggested Host Monster add svn serving to their package.



    Trackback

    Trackback URL for this entry: http://razorcode.net/trackback.php/SvnHosting

    No trackback comments for this entry.
    Svn hosting | 0 comments | Create New Account
    The following comments are owned by whomever posted them. This site is not responsible for what they say.