Setting up remote Subversion repository on debian (woody)

First, you need some packages, using backports.org is probably the easiest route.., add this:
deb http://www.backports.org/ woody subversion
deb http://www.backports.org/ woody apache2
to your /etc/apt/sources.list.

Subversion itself is also available at deb http://people.debian.org/~cjwatson/subversion-woody/ ./

apt-get install libapache2-svn subversion subversion-tools apache2-mpm-prefork
svnadmin create /var/lib/svn
chown www-user(or svn-user) /var/lib/svn
enable:
srv:/usr/share/doc/libapache2-svn# htpasswd2 -c /etc/apache2/dav_svn.passwd eyck New password: Re-type new password: Adding password for user eyck
# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual.

# <Location URL> ... </Location>
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as http://hostname/svn/repos
<Location /svn>

# uncomment this to enable the repository
DAV svn

# set this to the path to your repository
SVNPath /var/lib/svn

# The following allows for basic http authentication.  Basic authentication
# should not be considered secure for any particularly rigorous definition of
# secure.

# to create a passwd file
# # rm -f /etc/apache2/dav_svn.passwd
# # htpasswd2 -c /etc/apache2/dav_svn.passwd dwhedon
# New password:
# Re-type new password:
# Adding password for user dwhedon
# #

# Uncomment the following 3 lines to enable Basic Authentication
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd

# Uncomment the following line to enable Authz Authentication
# AuthzSVNAccessFile /etc/apache2/dav_svn.authz

# Uncomment the following three lines allow anonymous read, but make
# committers authenticate themselves

<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>

</Location>

pokurcz eyck 13:47 /fs/ppl/eyck/tmp/q/qq/test >svn import -m 'test log msg svn' . http://svn.eyc/svn/testsvn
Authentication realm:  Subversion Repository
Password for 'eyck': 

Committed revision 1.

pokurcz eyck 13:52 /fs/ppl/eyck/tmp/q/qq/test >svn co http://svn.eyc/svn/testsvn 
Checked out revision 1.

pokurcz eyck 13:53 ..eyck/tmp/q/qq/test/testsvn >mv ../README .



pokurcz eyck 13:53 ..eyck/tmp/q/qq/test/testsvn >svn ci
pokurcz eyck 13:53 ..eyck/tmp/q/qq/test/testsvn >ls
README
pokurcz eyck 13:53 ..eyck/tmp/q/qq/test/testsvn >svn update
At revision 1.
pokurcz eyck 13:53 ..eyck/tmp/q/qq/test/testsvn >ls -al
total 4
drwxr-xr-x    3 eyck     eyck           30 Feb  5 13:53 .
drwxr-xr-x    3 eyck     eyck           20 Feb  5 13:53 ..
drwxr-xr-x    7 eyck     eyck          135 Feb  5 13:53 .svn
-rw-r--r--    1 eyck     eyck           12 Feb  5 13:52 README
pokurcz eyck 13:53 ..eyck/tmp/q/qq/test/testsvn >svn add README 
A         README
pokurcz eyck 13:53 ..eyck/tmp/q/qq/test/testsvn >svn ci        
Adding         README
Transmitting file data .
Committed revision 2.
pokurcz eyck 13:53 ..eyck/tmp/q/qq/test/testsvn >


#####








eyck@gizmo2:~/asleep$ svn -m 'backup import' https://svn.eyc/svn/gizmo/asleep
unknown command: 'https://svn.eyc/svn/gizmo/asleep'
Type 'svn help' for usage.
eyck@gizmo2:~/asleep$ svn import -m 'backup import' https://svn.eyc/svn/gizmo/asleep
Error validating server certificate for 'https://svn.eyc:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: svn.eyc
 - Valid: from Feb  5 14:24:00 2004 GMT until Mar  6 14:24:00 2004 GMT
 - Issuer: unSecurity, Lublin, Lubelskie, PL
 - Fingerprint: 0a:b8:a9:a6:ee:b2:8e:2a:67:d9:d4:8c:0c:38:2a:e3:8a:a0:13:fc
(R)eject, accept (t)emporarily or accept (p)ermanently? p
Authentication realm:  Subversion Repository
Password for 'eyck': 
Adding  (bin)  .asleep.c.swp
Adding  (bin)  apm-sleep
Adding         Changelog
Adding  (bin)  asleep
Adding         asleep.c
Adding         Makefile

Committed revision 11.

###
eyck@gizmo2:~$ svn co https://svn.eyc/svn/gizmo/asleep
A  asleep/.asleep.c.swp
A  asleep/apm-sleep
A  asleep/Changelog
A  asleep/asleep
A  asleep/asleep.c
A  asleep/Makefile
Checked out revision 11.
eyck@gizmo2:~$ ls asleep/
Changelog  Makefile  apm-sleep  asleep  asleep.c



TODO: authz stuff ( great! ) http://svnbook.red-bean.com/book.html

| Setting up remote Subversion repository on debian (woody) | | 2004.02.06-12:12.00

 You are scrupulously honest, frank, and straightforward. Therefore you have few friends.