Installing subversion

December 15, 2006 by gregg Leave a reply »

1. If you want to use Apache 2.2.x with Trac + Subversion get 1.3.2, you’ll need this binary: http://www.tomdonovan.net/download/mod_dav_svn-1.3.2.x-w32.zip

2. http://trac.edgewall.org/wiki/TracOnWindows#Method2:UsingInstallers – follow it verbatim – does not explicitly say the obvious – get subversion command line tools – http://subversion.tigris.org/files/documents/15/35379/svn-1.4.2-setup.exe3. Python info here – http://www.imladris.com/Scripts/PythonForWindows.html

3. I did not set up Trac + Apache yet because I chose to install Subverion 1.4.2 (many bug fixes compared to 1.3.2) was used. Its some work to get Apache and TRac working am using Trac standalone – set up here

4. Until I get the Apache Trac working, I’ll use the tracd web daemon – here’s the script I use to start it -

#!/bin/bash
#
# the below command should be on one line
#
C:/Python24/python.exe c:/Python24/Scripts/tracd.py -p8000 \
c:/Python24/Scripts/trac/projects

5. Commands that work:

# mkidr c:\svn
# svn create c:\SVN\repos
# /cygdrive/c/Python24/Scripts/trac.sh
# svn import vtiger file:///c:/SVN/projects -m "Initial import"

* Note: / and \ and how they are used. the svn import wants forward slashes…

6. Security – secure a repository by editing the /conf/svnserve.conf file. Mine looks like this:

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = none
auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = ../../Another-repo-dir/conf/accounts
### The authz-db option controls the location of the authorization

Then entries in the accounts file look like:

name = password
johnny = PaSSWerde
geri = MillWaukEE
  • del.icio.us
  • Digg
  • Slashdot
  • Technorati
  • MisterWong
  • Reddit
Advertisement:

Leave a Reply


Mochabomb is Digg proof thanks to caching by WP Super Cache