Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Setup Using svnserver


On a laptop (Ganesha) update documents (e.g., myproject) from a SVN server running on Belinos (117.11). On Belinos run the svnserver as a normal user with:

belinos$ svnserver -d

Then on Ganesha (117.9) check out the project with:

ganesha$ svn co svn://belinos/var/svn/myproject/trunk

Notice authorization errors on commit!

$ svn commit -m "Add a note"
svn: Commit failed (details follow):
svn: Authorization failed

Edit the file /var/svn/myproject/conf/svnserve.conf to change the defaults. First, everyone has read access to the project, so fix that:

[general]
anon-access = none

The on Ganesha (117.9):

$ svn commit -m "Add a note"
svn: Commit failed (details follow):
svn: No access allowed to this repository

Introduce a passwd file to use, and stick with the default:

password-db = passwd

Now:

$ svn commit -m "Add a note"
Authentication realm: <svn://belinos:3690> a3ga432d-g81e-1310-b159-ac818d885622
Password for 'kayon':

This does not accept any of the passwords typed since we've not yet set up the file. So create the passwd file:

[users]
kayon = mysecret

Now it all works:

$ svn commit -m "Add a note"
Authentication realm: <svn://belinos:3690> a3ga432d-g81e-1310-b159-ac818d885622
Password for 'kayon':
Sending        Makefile
Transmitting file data .
Committed revision 21.

Now that this works set things up to work systemwide as a server.


Copyright © 1995-2018 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of the open source software Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.