martes, 7 de mayo de 2013

Installing SVN on Windows Server 2008, 2003 – Standalone

Extraido de

http://www.commonj.com/blogs/2009/07/02/installing-svn-on-windows-2003-server-standalone/

In this post I will detail in the most simple and clear way I can how I installed SVN (http://subversion.tigris.org/) on Windows Server 2003/ Vista. There are few more “How-To” posts I saw and used, but I decided to post my experience step by step. I hope to contribute some additional information and tips.
1. Download and Install SVN. I downloaded Setup-Subversion-1.5.6.msi installer from: http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91&expandFolder=91&folderID=74.
After download complete, DblClick the msi file. I left all defaults suggested and just Next , Next, Next…
2. After Installation, check that the svn bin folder path was appended to PATH environment variable.
3. Add a new environemtn variable: SVN_EDITOR=c:\windows\notepad.exe
4. Now,  Let’s create a repository. Open your command line screen (simply run –> cmd) and execute the following command: svnadmin create c:/repo
5. Change the following config file located at: c:/repo/conf
At svnserve.conf uncomment:
[general]
anon-access = read
auth-access = write
password-db = passwd
6. Change passwd file located at  located at: c:/repo/conf. Add a user by adding a row like the following:
roded = rodedpassword
7.  The passwd file from section 6 contains users and their password. In order to give a security meanning you should uncomment authz-db = authz at svserve.conf file.
7.1 Now edit authz file, You will add a group, assign permisssions to the group, assign repository path permissions by adding repository path and the group.
It should look like this:
[groups]
developers=roded
[/]
@developers = rw
8. It’s time to start the subversion server by entering the following command line:
svnserve –daemon –root “C:\repo”
(NOTE – the command above has two minus signs prior daemon and root )
9.  Now,  from a second command line window execute the following command:
svn mkdir svn://localhost/myproject
You should see the following messages at the command line window:
“C:\Users\rodedh>svn mkdir svn://localhost/myproject
Log message unchanged or not specified
(a)bort, (c)ontinue, (e)dit :
c
Committed revision 1.”
You might be asked for credentials at the first time:
Authentication realm:  MyRepository
Password for 'Administrator': your_windows_for_that_user_password
Authentication realm:  MyRepository
Username: roded
Password for 'roded': rodedpassword
10. Now , if you closed the window from section 8, open it again. In order to check your most basic installation exeucte the follwing command:
svn ls svn://localhost/
You should see the  project created at section 9 (myproject) listed.
11. Finally, after testing and validating everything goes as expected you might want to install the SVN server execution (rather than strting it from the command line) as a service. So, here is the command line:
sc create Subversion binpath= "C:\Program Files\Subversion\bin\svnserve.exe --service --root c:\repo" displayname= "Subversion" depend= Tcpip
Continue to : Installing and First Use of Tortoise SVN Post
References:
1. Greate Reference. I mainly used this one while installing my SVN: http://blogs.vertigosoftware.com/teamsystem/archive/2006/01/16/Setting_up_a_Subversion_Server_under_Windows.aspx
2. http://life.mysiteonline.org/archives/67-Installing-and-Setting-up-Subversion-SVN-Under-Windows-XP.html

No hay comentarios: