Darwinbots Forum

General => Off Topic => Topic started by: Botsareus on April 02, 2012, 03:56:29 PM

Title: Need help setting up SmartSVN server
Post by: Botsareus on April 02, 2012, 03:56:29 PM
We are running Ubuntu.
My Instructor needs me to work on a group project.
We have no source version control software, so I suggested SmartSVN.
We installed smartSVN.

The problem is, I have no idea how to set up the server side for SmartSVN...
Can anyone help?
Title: Re: Need help setting up SmartSVN server
Post by: Shasta on April 02, 2012, 07:08:45 PM
It is honestly not worth setting up a server unless you already know how. I would recommend one of the existing hosting providers like GitHub (supports git) or BitBucket (supports git and mercurial). BitBucket allows for free private repositories which is pretty cool.

Note that both of those only support distributed version control systems, so if you are not familiar with them there will be a bit of a learning curve.
Title: Re: Need help setting up SmartSVN server
Post by: Numsgil on April 02, 2012, 10:31:24 PM
You can also try google code ]clicky (http://code.google.com/hosting/).  I've never used it, though; I always just bit the bullet and paid for hosting (or got Shasta to set things up).
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 03, 2012, 02:41:47 PM
k, w'ill try



One more question for Shasta:

Will it be any easier to setup a server for a private network???
Title: Re: Need help setting up SmartSVN server
Post by: Shasta on April 04, 2012, 12:51:11 AM
Well, you technically don't need a central server for Git or Mercurial... but that probably isn't what you are asking. SVN is pretty much set up in one of two ways, being served though mod_dav in apache or over ssh. It isn't too bad as far as setup goes, but you will need a machine that can run it, and there are other things to take into consideration like permissions for the repositories.
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 06, 2012, 12:11:06 PM
We don't really need ssh, Can I get some external documentation to setup apache? (mod_dav as far as I understand is automatically included with SmartSVN) :lazy:
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 07, 2012, 03:45:55 PM
eh, never mind, it was fairly easy to find. If I have any trouble with this setup I'll let you know.
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 10, 2012, 03:28:41 PM
We are having the following problems:

Quote
  • Do we need to set up a local repository? If so, what files do we use for  svnadmin and svnserve?
  • After we find the svnadmin and svnserve files, what location do we use for the local repository, hostname/port?

plz help
Title: Re: Need help setting up SmartSVN server
Post by: Numsgil on April 10, 2012, 04:11:26 PM
Not sure what you mean by local repository.  Definitely you have to set up a server with SVN, and everyone on the team will need internet access to the server.  That's the advantage of something like git, where each local copy is its own repository.

Assuming you have a server of some sort, you can install SVN on to it thusly: (for windows (http://willperone.net/Code/svnserver.php).  A Linux install is similar.

And of course, a hosted repository like on google code does all the work of setting up the servers for you.
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 16, 2012, 03:12:47 PM
Ubontu on LAN:

We need the executable files (RED)
So we decided to follow the link (GREEN)

Unfortunately, there was no executable files in the package, I believe we have to extract them somehow... how???
Title: Re: Need help setting up SmartSVN server
Post by: Numsgil on April 16, 2012, 04:04:24 PM
I don't know.
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 17, 2012, 02:40:14 PM
 :blink: I hope Shasta knows...
Title: Re: Need help setting up SmartSVN server
Post by: Shasta on April 17, 2012, 08:15:18 PM
Install the subversion package for ubuntu. Should be something like:

Code: [Select]
apt-get install subversion

this will install the executables you need. They will probably end up in /usr/bin
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 19, 2012, 02:56:56 PM
lol, we always had the files in the user/bin folder we just never checked there...

We still have some problems:

When I setup a local repository I get this:
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 19, 2012, 02:58:31 PM
When the guy I am working with tries to connect to it we get this (the IP is correct):
Title: Re: Need help setting up SmartSVN server
Post by: Numsgil on April 19, 2012, 04:48:15 PM
You have to make sure the server is accepting connections on the appropriate port, that you aren't behind a firewall, etc.
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 20, 2012, 04:03:36 PM
We where considering that, not sure how I change the port on my side (the local repository side) though...
Title: Re: Need help setting up SmartSVN server
Post by: Numsgil on April 20, 2012, 08:50:08 PM
In windows 7 if you type "firewall" in the start menu you can pull up the inbuilt firewall and make sure a hole is poked through for your SVN server.

Are you sure the two computers can find each other?  If you're using a school network they often stick students behind a variety of different firewalls and routers to keep the student computers protected from each other.  Can you connect with each other using any other P2P applications (such as telnet)?
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 21, 2012, 01:12:34 PM
I will ask the network admin for an open port on Monday.

What I was worried about: I am not sure if Smart SVN listens on all ports...

I will let you know if it worked.
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 23, 2012, 03:04:01 PM
(I Changed the port btw)

lol, now I am getting a completely bizarre error:
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 24, 2012, 04:26:52 PM
I hope Shasta knows what to do...
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 27, 2012, 02:54:50 PM
that's it, I give up...

Hey, Thank you for your help anyway, at-least I learned some stuff about Linux.
Title: Re: Need help setting up SmartSVN server
Post by: Shasta on April 27, 2012, 07:59:02 PM
Sorry man, been pretty busy this week. No idea what is causing your problems though, most likely something specific to your network. That last error is really weird too.
Title: Re: Need help setting up SmartSVN server
Post by: Botsareus on April 28, 2012, 03:09:36 PM
Yea, I know. The way our network is structured is a pain. We will figure something out.