Question: How do I setup a Subversion Server?
Subversion is a very popular project management piece of software. Kattare has copies of subversion installed by default on all of our webservers.
We recommend granting access to your subversion repository via the subversion server, svnserve. If you have not yet setup your repository, we'll leave that to a Google search. "subversion setup" or "subversion howto" should result in many, many hits.
Specific to the Kattare servers though, we can assist with the svnserve setup:
- change to your repository's configuration directory:
- Use vi, pico, etc to edit "passwd", it should look something like:
[users] harry = harryspassword sally = sallyspassword
- change permissions on the passwd file:
chmod 600 passwd
- Use vi, pico, etc to edit "svnserve.conf", it should look something like:
[general] anon-access = none auth-access = write password-db = passwd
- Pick a port to run it on. If you have a private tomcat or apache instance, it's probably safe to snag the port it's running on and increment it by one or two. If not, just about anything in the 50000 - 51000 range should be good.
Note: You will need to let email@example.com know the port you assigned so the webserver firewall can be opened up on that port.
- run svnserve:
svnserve -d --listen-port=<port> -r <my_homedirectory>/<svn_root>
Email firstname.lastname@example.org and ask them to setup the boot scripts to start your subversion instance at boot time. Please include the line you used above to start it up.
Keeping in mind that you'll have to specify the username and password as well, your subversion URL for checkout would then be something like: