Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
noresm:svnnorstorehowto [2014-12-18 17:05:38] ingo.bethke@gmail.com |
noresm:svnnorstorehowto [2022-05-31 09:29:32] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| ===== How it works ===== | ===== How it works ===== | ||
| - | NorStore uses the [[http:// | + | NorStore uses the [[http:// |
| - | For every new repository, an svnmerge demon is started as background process on the NorStore node noresg.norstore.uio.no. The svn repository recieves the URL < | + | On the NorStore node '' |
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - | To administer svn repositories on NorStore, following prerequisites must be fulfilled: | + | To create and manage a repository, you need a user account at NorStore |
| - | * you must have a user account at NorStore | + | |
| - | * your NorStore | + | The creator of a repository has the full flexibility to grant remote read/write access to external users. Once the repository is create, the use of the repository does not require a NorStore account. The repository creator can define svn users (consisting of a user-name with corresponding password) which in general have no relation to NorStore user accounts. |
| - | | + | |
| - | + | To start and stop the svn server, | |
| - | Users that fulfill these prerequisites can take local ns2345k | + | |
| + | ===== Start/stop server | ||
| + | |||
| + | Log on to '' | ||
| + | |||
| + | To take all svn repositories | ||
| + | svnserve -d -r /projects/NS2345K/svn --log-file | ||
| + | |||
| + | An svnserve demon has now been started as a background process on noresg.norstore.no. The process id is logged in ''/ | ||
| + | |||
| + | To take all repositories offline again, do | ||
| + | kill `cat / | ||
| ===== Creating a new repository ===== | ===== Creating a new repository ===== | ||
| Line 24: | Line 35: | ||
| Create a new svn repository with | Create a new svn repository with | ||
| svnadmin create testrepo | svnadmin create testrepo | ||
| - | where '' | + | where '' |
| - | The new repository is now set up in ''/ | + | The new repository is now set up in ''/ |
| ===== Customizing access rights ===== | ===== Customizing access rights ===== | ||
| - | Edit '' | + | Edit '' |
| - | To grant anonymous | + | The default is read/ |
| - | # anon-access | + | |
| - | to | + | To limited |
| - | anon-access | + | |
| - | + | ||
| - | To grant write access to authenticated users, change | + | |
| # auth-access = write | # auth-access = write | ||
| to | to | ||
| - | auth-access = write | + | auth-access = read |
| - | + | ||
| - | **IMPORTANT**: | + | |
| + | To grant anonymous read, change | ||
| + | # anon-access = none | ||
| + | to | ||
| + | anon-access = read | ||
| + | | ||
| The users of the repository are defined in '' | The users of the repository are defined in '' | ||
| [users] | [users] | ||
| harry = harryssecret | harry = harryssecret | ||
| sally = sallyssecret | sally = sallyssecret | ||
| + | guestuser = friendly | ||
| + | The user customisation is activated in '' | ||
| + | # password-db = passwd | ||
| + | to | ||
| + | password-db = passwd | ||
| - | Further fine tuning of access rights can be done in '' | + | Further fine tuning of access rights can be done in '' |
| + | [/] | ||
| + | harry = rw | ||
| + | guestuser = r | ||
| + | gives '' | ||
| + | # authz-db = authz | ||
| + | to | ||
| + | authz-db = authz | ||
| + | |||
| + | ===== Remote access ===== | ||
| + | |||
| + | After taking the repository online, the URL of the repository '' | ||
| + | |||
| + | To checkout the repository, do | ||
| + | svn co svn:// | ||
| + | |||
| + | Change directory to '' | ||
| + | cd testrepo | ||
| + | |||
| + | Create a dummy file and mark it for adding | ||
| + | echo test > README | ||
| + | svn add README | ||
| + | |||
| + | Commit the repository | ||
| + | svn commit -m "my commit message" | ||
| + | |||