Friday, 31 October 2008

SVN Setup in Windows XP


1> Install SVN
I have installed “Setup-Subversion-1.5.1.en-us” in C:\Program Files\Subversion
2> Install svnserve as a Windows service
I have downloaded SVNService from this locationhttp://www.stanford.edu/%7Ebsuter/subversion-setup-guide/SVNService.zip
Find “SVNService.exe” file and copy it into Subversion’s bin directory C:\Program Files\Subversion\bin
3> Create SVN Repository and run SVNService
Create a SVN repository (I named it as ‘svn-repos’ in C drive) and run SVNService for that repository, by running this command in command prompt.
SVNService -install -d -r C:\svn-repos
4> Make sure that the Subversion service runs automatically
Go to Control Panel -> Performance and Maintenance -> Administrative Tools -> Computer Management -> Services, you will find service with name “SVNService”.
Go to properties of this service by right click on service and make sure that startup type is “Automatic.”
Now Subversion service runs automatically when the computer turns on.
Click on start if it is first time.
5> Install TortoiseSVN and create a Repository
TortoiseSVN is a convenient client for interacting with a Subversion repository
I have installed “TortoiseSVN-1.4.5.10425-win32-svn-1.4.5” fromhttp://tortoisesvn.net/downloads
Create project(ex:myproject) by creating “myproject” folder inside C:\svn-repos
Right click on myproject folder and you will find TortoiseSVN option in that click on “create repository here…” option and go with default options. Now you have created repository for myproject and inside some folders are created like conf,dav,db,hooks etc…
6> Confirm repository access
For local confirmation run this command
svn info svn://localhost/myproject
for remote confirmation run this command in remote system
svn info svn://ip_address_of_repository_system/myproject
7> Authentication for Repository
If you want you can make authentication for your repository by uncomment these lines
anon-access = read
auth-access = write
password-db = passwd
from conf/svnserve.conf file and uncomment these lines
harry = harryspassword
sally = sallyspassword
from conf/passwd file. You can add new user (username “user1” and password “user1passwd” ) by adding this line
user1 = user1passwd
Finally restart the svnservice
8> Access from remote system using authentication
Assume ip address for repository system has xxx.xx.xxx.xx
For checkout myproject file you have to run this command
svn co svn://xxx.xx.xxx.xx/myproject –username user1 –password user1passwd

No comments:

Post a Comment