Most of subversion users are familier with Tortoise SVN which removes the need of using svn command line tool. Tortoise is a great tool. It helps a lot as a visual replacement of svn client. What if you want to setup a subversion server in your machine so that developers can work remotely? follow these steps
Before that, download the SVNService from http://gda.utp.edu.co/pub/svn/
1. Create the subversion working directoty by svnadmin tool
Example : svnadmin create “c:\projects\myproject”
2. add authentication setings in your project
open your working directory, such as “c:\projects\myproject” and open the conf/svnserve.conf file. Add the following lines
[general]
anon-access = read
auth-access = write
password-db = passwd
for the settings above, anonymous users will get the read-only access to the repository. If you want authenticated read access, make it as shown below.
[general]
auth-access = read
auth-access = write
password-db = passwd
3. add credentials
open conf/passwd file with notepad and add the username and password in following format
[users]
user1 = pass1
user2 = pass2
4. Install the subversion service and run it
svnservice -install -d -r “c:\projects\myproject”
OR
4. run the server simply
svnserve -d -r “c:\projects\myproject”
Now you can access your subversion repository remotely as “svn://your_server_ip/”
Thats it.