Getting subversion to work

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
davidtee1
Forum Newbie
Posts: 18
Joined: Fri Jun 10, 2005 2:41 am

Getting subversion to work

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
davidtee1
Forum Newbie
Posts: 18
Joined: Fri Jun 10, 2005 2:41 am

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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> )
Post Reply