: HOWTOSubversion

Welcome :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Subversion over SSH

A guide from the ASO forums and Tim's WebSVN wiki page, i take no credit for it

Before we start



Creating a repository

This is a guide on how I did it, you may want to create your own structure.

Create svn folder in your home folder
    $ cd ~
    $ mkdir svn


Give the repo an SVN filesystem
    $ svnadmin create --fs-type fsfs svn


Then we need to hack bash a little to let us use SSH to login (and use pico of vi to edit)
    $ cd ~
    $ mv .bashrc .bashrc_old
    $ cp /etc/bashrc .bashrc
    $ vi .bashrc


Then find the line containing:
mesg y


Replace it with:
tty -s
if [ $? -eq 0 ]; then
mesg y
fi


That's it for repo creation!

Connecting

This section was stolen from the forums, i don't take credit

The setup is pretty easy. Really, a few commands and you're done. This part, however, took a while to figure out.
Thankfully, the hard parts I've already got worked out for you.

Make a new folder on your desktop, let's call it "svn". Right click it and select "TortoiseSVN -> SVN Checkout" (or "SVN Checkout" if it isn't in the submenu.)

The program will ask you for the "URL of repository", you will supply:

svn+ssh://YOURUSERNAME@YOURHOST/home/YOURUSERNAME/svn


The program will ask you for your password, you give it, and ta-da! You're ready to go!

The break down of this URL:

svn+ssh://** The protocol.
YOURUSERNAME@YOURHOST Come on now, seriously.
/home/YOURUSERNAME/svn The absolute path to your repository.

The "repo" is an absolute path from the root of your system all the way up to the repository folder that we made in the last step.

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.7919 seconds