- - - - -

Getting Subversion (SVN) up and running


  • Please log in to reply
32 replies to this topic

#1 chuyskywalker

chuyskywalker

    Tiny Orange

  • Members
  • Pip
  • 4 posts

Posted 09 March 2005 - 09:18 PM

First let me start with a disclaimer: I am new to Subversion. I really love it, but I'm new. As such, I probably won't know answers to all the odd problems that prop up, but here is how I got it working. And btw, a big thanks to [ASO] Tim for the help.

Before even thinking about it

I am assuming you have a little expereience with subversion already. That's where I started. You should already be familiar with connecting to repositories and comitting, etc.

Additionally, I am on WinXP and using TortoiseSVN.

Gettin ready

Get SSH access for your hosting account. You'll need to ask ASO to allow you to have SSH access as you need this both to setup repositories and to ues them.

Additionally, if you are working from TortoiseSVN, you need to change a setting in it.

1. Right-click your desktop
2. TortoiseSVN -> Settings
3. Network Tab -> SSH client
4. Browse to where you installed Tsvn and choose TortoisePlink.exe (typically C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe)

This step will allow Tsvn to establish svn+ssh connections, which is required for when using repositories on your hosting account.

Let's begin

Log into your account via SSH. (If you need a SSH client, try Putty for windows - it es ze bezt.)

Now, there's a few steps to do here that will create a repository. I'm just going to list them and hope that you know enough to figure out what's going on wink.gif

CODE
mkdir svn
mkdir svn/my-first-repo
svnadmin create --fs-type fsfs svn/my-first-repo


Connecting!

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 "my-first-repo-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:

CODE
svn+ssh://YOURUSERNAME@YOURHOST/home/YOURUSERNAME/svn/my-first-repo


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/my-first-repo 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.

Have fun!

And let me know if I typo'ed in this or something ;D





#2 blakeseely

blakeseely

    Small Orange

  • Members
  • PipPip
  • 15 posts

Posted 26 August 2005 - 08:04 PM

QUOTE(chuyskywalker @ Mar 9 2005, 7:18 PM)
Log into your account via SSH. (If you need a SSH client, try Putty for windows - it es ze bezt.)

Now, there's a few steps to do here that will create a repository. I'm just going to list them and hope that you know enough to figure out what's going on wink.gif

CODE
mkdir svn
mkdir svn/my-first-repo
svnadmin create --fs-type fsfs svn/my-first-repo



Did you have to manually build/install Subversion before you could use svnadmin or does ASO already have it? I tried running it, but it said that the command could not be found...

#3 jaseone

jaseone

    Massive Orange

  • Members
  • PipPipPipPipPipPipPip
  • 2,193 posts

Posted 26 August 2005 - 08:55 PM

It might not be in your path try /usr/local/bin/svnadmin, if not there then raise a ticket to get ASO to install svn on your server.
Jason Bainbridge
An Aussie geek stuck in Texas
Road Show Blondes - Follow the Road Show as we drive from Houston to New York City to raise awareness and money for suicide prevention with The Jed Foundation.

#4 blakeseely

blakeseely

    Small Orange

  • Members
  • PipPip
  • 15 posts

Posted 27 August 2005 - 12:33 AM

QUOTE(jaseone @ Aug 26 2005, 6:55 PM)
It might not be in your path try /usr/local/bin/svnadmin, if not there then raise a ticket to get ASO to install svn on your server.

View Post



Mmmm, you're right. It's in /usr/local/bin/ . I'll add it to my path and give it a shot. I added a .bash_profile to my home directory:

PATH=$PATH:/usr/local/bin
export PATH



that fixed it.

#5 blakeseely

blakeseely

    Small Orange

  • Members
  • PipPip
  • 15 posts

Posted 27 August 2005 - 01:27 AM

Well, still having a few problems:

From my home machine, I'm getting authentication errors - problems with a public key. When I try the url svn+ssh://username@blakeseely.com/home/username/svnrepository/  when logged in from my ASO account, I get the following message:

"The authenticity of host 'blakeseely.com' can't be established. RSA key fingerprint is <fingerprint>. Are you sure you want to continue connecting?"

From the shell, I can type yes and get through. From my home machine, I assume that's what's causing the authentication errors.

If I type yes to get through, then I get an error that says "svnserve: command not found" (but it's in /usr/local/bin/  which is in my path).

any ideas?

#6 Tony Arnold

Tony Arnold

    Tiny Orange

  • Members
  • Pip
  • 5 posts

Posted 31 August 2005 - 11:16 PM

I get exactly the same error. ASO appear to not be allowing subversion serving from the shared hosting servers sad.gif Everything else is top-notch though smile.gif

#7 Tony Arnold

Tony Arnold

    Tiny Orange

  • Members
  • Pip
  • 5 posts

Posted 31 August 2005 - 11:18 PM

Completely my bad. It's there, just not in my path. w00t smile.gif

#8 jaseone

jaseone

    Massive Orange

  • Members
  • PipPipPipPipPipPipPip
  • 2,193 posts

Posted 31 August 2005 - 11:22 PM

Read this.

In a nutshell the problem is that it isn't opening a shell so the path isn't getting set so it can't find svnserve so you can either try that somewhat messy workaround in the linked article or maybe through a support ticket ASO will be willing to add /usr/local/bin to the system PATH.

Although what happens if you try a symlink in your home directory so:

ln -s /usr/local/bin/svnserve svnserve

Does that work?
Jason Bainbridge
An Aussie geek stuck in Texas
Road Show Blondes - Follow the Road Show as we drive from Houston to New York City to raise awareness and money for suicide prevention with The Jed Foundation.

#9 Tony Arnold

Tony Arnold

    Tiny Orange

  • Members
  • Pip
  • 5 posts

Posted 31 August 2005 - 11:36 PM

Thanks jaseone - that site did the trick - I've now got svn+ssh access wink.gif

#10 blakeseely

blakeseely

    Small Orange

  • Members
  • PipPip
  • 15 posts

Posted 11 September 2005 - 11:56 AM

QUOTE(Tony Arnold @ Aug 31 2005, 9:36 PM) View Post

Thanks jaseone - that site did the trick - I've now got svn+ssh access wink.gif


Tony - what specifically did you do to get it working?

#11 blakeseely

blakeseely

    Small Orange

  • Members
  • PipPip
  • 15 posts

Posted 12 September 2005 - 10:56 AM

QUOTE(blakeseely @ Sep 11 2005, 9:56 AM) View Post

QUOTE(Tony Arnold @ Aug 31 2005, 9:36 PM) View Post

Thanks jaseone - that site did the trick - I've now got svn+ssh access wink.gif


Tony - what specifically did you do to get it working?


OK, I followed the instructions here: Bitworking.org instructions

Edit: after some fooling around I was able to get the multiple-domain version working so I can use regular ssh and svn+ssh in the same account. woo-hoo! Now I can use my hosted account for subversion and access it from both my laptop and my desktop.

#12 Tony Arnold

Tony Arnold

    Tiny Orange

  • Members
  • Pip
  • 5 posts

Posted 12 September 2005 - 04:01 PM

Sorry Blake, I had a chaotic day yesterday and didn't get a chance to reply here or via e-mail - glad to hear you got it all working wink.gif

#13 ctomer

ctomer

    Tiny Orange

  • Members
  • Pip
  • 1 posts

Posted 15 February 2006 - 05:26 PM

Add the following line to ~/.bashrc

PATH=$PATH:.:/usr/local/bin

Very simple and works perfectly.

#14 Mountain/\Ash

Mountain/\Ash

    Small Orange

  • Members
  • PipPip
  • 20 posts

Posted 05 April 2006 - 09:04 AM

Thanks for the instuctions. Sure makes the setup easy.

I have no problems using this from the command line ("Terminal"), but when I try to commit/checkout/update through (SCPlugin v243 or svnX v0.9.6.4) I get the following error constantly:

CODE

Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
svn: Commit failed (details follow):
svn: Connection closed unexpectedly

Process finished with exit status 1.


Also does anyone know how to save the password at the command prompt so that if I am stuck using it I don't need to re-type the [aso] password each time?

#15 floyd

floyd

    disgusting fanboy

  • Members
  • PipPip
  • 11 posts

Posted 08 April 2006 - 02:18 PM

Hi, I'm trying to get this working but I keep getting invalid port number errors...and a bad sound from Tortoise SVN...sort of a *weuiighhwooot*

Any ideas? smile.gif

#16 Kudos

Kudos

    Small Orange

  • Members
  • PipPip
  • 20 posts

Posted 14 April 2006 - 06:35 AM

QUOTE(floyd @ Apr 8 2006, 8:18 PM) View Post

Hi, I'm trying to get this working but I keep getting invalid port number errors...and a bad sound from Tortoise SVN...sort of a *weuiighhwooot*

Any ideas? smile.gif


Go in to your settings and delete the path to putty there, for some reason it'll find it itself.

/k

#17 tom ee

tom ee

    Tiny Orange

  • Members
  • Pip
  • 3 posts

Posted 05 May 2006 - 04:31 PM

/me cries

I've got SSH access, and I've created svn repo in ~/svn/<whatever> with svnadmin ( thanks ASO for installing it all smile.gif )

I'm on WinXP, using TortoiseSVN - it works fine, I use it every day... but I can't connect to my ASO repositories sad.gif

I think the culprit is Plink - I either get

CODE
Error: PROPFIND request failed on '/'  
Error: PROPFIND of '/': 405 Method Not Allowed (http://207.210.105.50)  

connecting with http:// and

CODE
Unable to write to standard output (stderr)

twice after entering my password when I use svn+ssh://, finishing with:

CODE
Error: Connection closed unexpectedly  

I'm not sure how to fix it, with Putty I get the Invalid Port error...

If anybody can shed any light on this, I'll be extremely grateful smile.gif

Edited by tom ee, 05 May 2006 - 04:42 PM.


#18 blakeseely

blakeseely

    Small Orange

  • Members
  • PipPip
  • 15 posts

Posted 05 May 2006 - 06:43 PM

QUOTE(tom ee @ May 5 2006, 2:31 PM) View Post


CODE
Error: Connection closed unexpectedly  

I'm not sure how to fix it, with Putty I get the Invalid Port error...

If anybody can shed any light on this, I'll be extremely grateful smile.gif


I've been getting this error for several days now. I was kinda waiting for this weekend to look at it. I get it both from svn and svk. ASO peeps, any ideas? (WebSVN works fine for me, but I cannot connect to my repository from any other machine...

#19 tom ee

tom ee

    Tiny Orange

  • Members
  • Pip
  • 3 posts

Posted 06 May 2006 - 02:54 PM

using http:// connection, it looks for svn repositories in the public_html folder - so obviously it 404's.

Can't get any joy out of TortoisePlink, keep getting the error "Unable to write to standard output (stderr)", just  when I run it on its own from command line with "TortoisePlink -load ASO" (ASO is my putty saved session).

#20 Kudos

Kudos

    Small Orange

  • Members
  • PipPip
  • 20 posts

Posted 07 June 2006 - 07:52 AM

QUOTE(tom ee @ May 5 2006, 10:31 PM) View Post

/me cries

I've got SSH access, and I've created svn repo in ~/svn/<whatever> with svnadmin ( thanks ASO for installing it all smile.gif )

I'm on WinXP, using TortoiseSVN - it works fine, I use it every day... but I can't connect to my ASO repositories sad.gif

I think the culprit is Plink - I either get

CODE
Error: PROPFIND request failed on '/'  
Error: PROPFIND of '/': 405 Method Not Allowed (http://207.210.105.50)  

connecting with http:// and

CODE
Unable to write to standard output (stderr)

twice after entering my password when I use svn+ssh://, finishing with:

CODE
Error: Connection closed unexpectedly  

I'm not sure how to fix it, with Putty I get the Invalid Port error...

If anybody can shed any light on this, I'll be extremely grateful smile.gif



QUOTE(blakeseely @ May 6 2006, 12:43 AM) View Post

QUOTE(tom ee @ May 5 2006, 2:31 PM) View Post


CODE
Error: Connection closed unexpectedly  

I'm not sure how to fix it, with Putty I get the Invalid Port error...

If anybody can shed any light on this, I'll be extremely grateful smile.gif


I've been getting this error for several days now. I was kinda waiting for this weekend to look at it. I get it both from svn and svk. ASO peeps, any ideas? (WebSVN works fine for me, but I cannot connect to my repository from any other machine...


QUOTE(Kudos @ Apr 14 2006, 12:35 PM) View Post

QUOTE(floyd @ Apr 8 2006, 8:18 PM) View Post

Hi, I'm trying to get this working but I keep getting invalid port number errors...and a bad sound from Tortoise SVN...sort of a *weuiighhwooot*

Any ideas? smile.gif


Go in to your settings and delete the path to putty there, for some reason it'll find it itself.

/k





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users