Setting up svn on FreeBSD server
by Vijay Kiran
- Check if you have svn and svnserver commands.
whereis svn
whereis svnserve
- Create directory for SVN repositories. (e.g. mkdir /svn)
- Initialize the svn repositories.
svnadmin create /svn
- Edit the /svn/svnserve.conf file and add these lines
[general]
anon-access = read
user-access=write
password-db = passwd
- Edit passwd file add these lines
[users]
user = password
- Start the server using
svnserve -d -r /svn –listening-port 3690 –listening-host YOUR_IP_ADDRESS
Now, you can access SVN from svn://YOUR_IP_ADDRESS:3690/svn and username (user) and password (password). Use any tool like tortoise SVN or Subclipse (Eclipse plugin).
caution: Make sure you don’t have any spaces before the [general] and [users] in the respective files.
