JavaScript Required.
We're sorry, but Pega7 doesn't work without JavaScript enabled. Please enable and refresh.
<h2 id="hn_Subversion_over_SSH">Before You Start</h2> <ul> <li> <p>Assume you have some basic knowledge of Subversion and you know how to use it (import, commit, checkout, update, etc)</p> </li> <li> <p>Assume you are using TortoiseSVN to browse repositories</p> </li> <li> <p>Assume you know how to use pico or vi</p> </li> </ul> <h2 id="hn_Creating_a_repository">Creating a Repository</h2> <p>This is a guide on how I did it, you may want to create your own structure.</p> <p>Create svn folder in your home folder:</p> <p>$ cd ~<br /> $ mkdir svn</p> <p>Give the repo an SVN filesystem:</p> <p>$ svnadmin create --fs-type fsfs svn</p> <p>Then we need to hack bash a little to let us use SSH to login (and use pico or vi to edit):</p> <p>$ cd ~<br /> $ mv .bashrc .bashrc_old<br /> $ cp /etc/bashrc .bashrc<br /> $ vi .bashrc</p> <p>Then find the line containing:</p> <p>mesg y</p> <p>Replace it with:</p> <p>tty -s<br /> if [ $? -eq 0 ]; then<br /> mesg y<br /> fi</p> <p>That's it for repo creation!</p> <h2>Connect</h2> <p>The setup is pretty easy. Really, a few commands and you're done.<br /> <br /> Make a new folder on your desktop and call it 'svn'. Right-click it and select 'TortoiseSVN -> SVN Checkout' (or 'SVN Checkout' if it isn't in the sub-menu.)<br /> <br /> The program will ask you for the "URL of repository", you will supply:</p> <p>svn+ssh://YOURUSERNAME@YOURHOST/home/YOURUSERNAME/svn</p> <p>The program will ask you for your password, you give it, and ta-da! You're ready to go!<br /> <br /> The break down of this URL:<br /> <br /> svn+ssh://** <strong>- the protocol</strong><br /> YOURUSERNAME@YOURHOST<strong> - come on now, seriously</strong><br /> /home/YOURUSERNAME/svn<strong> - the absolute path to your repository</strong><br /> <br /> 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.</p>