Note:For Windows Vista and above use Admin mode to run command Command Prompt.
To Install Subversion and Tortoise SVN you need to setup a server and a client(They both can be same computer).
#Setting up Server:-
At server runs a software called as subversion.Download latest release from
http://subversion.apache.org/download/#recommended-release
and install the same
Creating a repository:
At the command prompt(use admin mode for Vista and above) fire the following command
svnadmin create C:\MyRepo
where c:\Myrepo is the path to your repository you can change it to your taste
Modifying security and Authentication:
Navigate to your directory(c:\MyRepo in my case) you will find a bunch of folders over there.
Open "Conf" folder.
Open "svnserve.conf" and uncomment(remove # before) following lines
[general]
anon-access=read
auth-access=write
password-db=passwd
save the file and open "passwd" file in same folder.
$username=$password
In this format start entering usernames & password under [Users]
eg. John=testing
save it once you are done configuring Now its time to create a windows service as follows
Creating a windows service:
SC create svnserve binpath= "c:\Program Files\subversion\bin\svnserve.exe --service --root \"C:\MyRepo\"" displayname="Subversion" depend=tcpip start=auto.
click on start->run open services.msc find "Subversion" service and start the same
[If it fails check the path of svnserve.exe in your case also check the repository folder is same as created.Check the properties of the service it should show thw path to svnserve.exe check that path and path of that service under subversion in program files].
#At the client
At the client we need a client software to communicate with subversion service.
We will be using Tortoise SVN you can use plugin's available for your IDE's and many more available online
Download Tortise SVN from
http://tortoisesvn.net/downloads.html
And install the same once done right click on your desktop go to Tortoise-Svn->Repobrowser and enter url as follows
SVN://ip of your server
for same machine's as server and client use svn://localhost
If it connects BINGO! successfully connected if not check folder repository again
No comments:
Post a Comment