#MacOSX : Subversion Server
You know, Mac OS X is a UNIX system based on FreeBSD, so you can do a lot of NERD things out of the box.
This time you will learn how to setup a Subversion Server:
- Open Terminal app
- Great! Now that you have created the first repository, you need to configure it; type:
You’ll see ### commented lines. The lines with the single “#” comment marks are the ones we need to edit. You’ll want to remove the comments (#) and customize these settings to suit your project’s needs:
- password-db : this specify text file that stores the usernames and passwords of authorized users for your repository. Unless otherwise specified, it will be assumed that this file is stored in your projects “conf” directory. When you create your repository a “passwd” file is created by default.
- realm : realm tells clients what they are connecting to. It’s recommended you customize this to something like <Project Name> Subversion Repository.
- anon-access : this directive indicates what anonymous users are allowed to do with your repository. You should set it to none.
- auth-access : determines what permission level authorized users will have. In almost every case this will be set to write.
- Now you must edit password-db file; you can add as many users to your repository(s) as you want. Add at least one user for yourself so that you can begin committing to your repository:
- Next you need to change permissions on the Repository directory so that svnserveis permitted to make changes to the files stored there:
- Start Subversion Server:
- Check if it works:
- If it works you should have myproject directory in Repository. Well Done.
/Library/Subversion/Repository is just an appropriate example for Repository, but you can choose every other location.
NOTE2: in svnserve.conf and passwd files remove every white spaces at the beginning of non empty lines or it will not work.
NOTE3: if you want allow users to connect from internet you should set port forwarding on TCP port 3690 (svn default).
NOTE4: check Subversion Complete Reference for more info.