90.4 Subversion Server Setup

Run a server on belinos as a normal user with:

belinos$ svnserver -d

Then on Ganesha 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:

$ 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.



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0