Page 1 of 1

Getting subversion to work

Posted: Mon Oct 09, 2006 12:29 am
by davidtee1
Hi group. Not sure this is the right forum, but I'll try anyway.

I've got svn working fine around the office on our LAN with a Linux / Apache server and mix of Linux and Windows clients.

I'm now trying to install it on our main server so I can share access with offsite developers. I've downloaded and installed it OK and managed to create a respository. I've set up the user accounts and have run svnserve using:

svnserve -d -r /home/default/hostname.com/user/htdocs/svn

where "svn" is the repository.

I'm now trying to connect and checkout using the Tortoise client with "svn://hostname.com/svn" .

I get the error "Can't connect to host....". I'm not quite sure what is going on.

I could be that the svn:: port is not open / listenting (I don't know how to fix this) or it may be something else.

Any hints and help gratefully received.

Cheers,


David

Posted: Mon Oct 09, 2006 1:54 am
by Chris Corbyn
Do you have SSH running. I've only ever used SVN over HTTP or SSH as a method of transport. Try this:

Code: Select all

svn co ssh+svn://hostname.tld/svn
You could also set apache up with mod_svn to stream this too.

Posted: Mon Oct 09, 2006 5:24 am
by davidtee1
I have just tried this method. It's asking for a password for a null username. So I add a username into the url and it asks for the password. I enter the correct password and it then complains that there is no repository at the location I use.

There is one there because it works fine from the console using localhost.

I'm quite a Linux novice and I think there is quite a lot in the background that I have to get right; users, permissions, ownership of directories where the repository lives etc etc.

Still baffled!


D

Posted: Mon Oct 09, 2006 7:00 am
by Chris Corbyn
davidtee1 wrote:I have just tried this method. It's asking for a password for a null username. So I add a username into the url and it asks for the password. I enter the correct password and it then complains that there is no repository at the location I use.

There is one there because it works fine from the console using localhost.

I'm quite a Linux novice and I think there is quite a lot in the background that I have to get right; users, permissions, ownership of directories where the repository lives etc etc.

Still baffled!


D
Sorry, change the "/svn" part to the absolute path of the repository (e.g. /var/svn/<project> )