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-16 17:48:21] ingo.bethke@gmail.com | noresm:svnnorstorehowto [2022-05-31 09:29:32] (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Subversion | + | ====== Subversion how-to | 
| ===== How it works ===== | ===== How it works ===== | ||
| - | NorStore uses the [[http:// | + | NorStore uses the [[http:// | 
| - | For every new repository, an svnmerge demon is started on the NorStore node noresg.norstore.uio.no as a background process. The repository has 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 user account must be member | + | The creator of a repository | 
| - | * your NorStore user account must have access to noresg.norstore.uio.no | + | |
| - | + | To start and stop the svn server, your NorStore user must in addition have access to noresg.norstore.no. Currently, this group contains following people: Alf Grini, Ingo Bethke, Thierry Toutain and Martin King. | |
| - | Otherwise, the repository | + | |
| + | ===== Start/stop server | ||
| + | |||
| + | Log on to '' | ||
| + | |||
| + | To take all svn repositories online, do | ||
| + | svnserve -d -r / | ||
| + | |||
| + | 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 ===== | ||
| + | |||
| + | Log on to '' | ||
| + | |||
| + | Change directory to ''/ | ||
| + | |||
| + | Create a new svn repository with | ||
| + | svnadmin create testrepo | ||
| + | where '' | ||
| + | |||
| + | The new repository is now set up in ''/ | ||
| + | |||
| + | ===== Customizing access rights ===== | ||
| + | |||
| + | Edit '' | ||
| + | |||
| + | The default is read/write access for authenticated users and no access for anonymous. | ||
| + | |||
| + | To limited access to read for authenticated users, change | ||
| + | # auth-access = write | ||
| + | to | ||
| + | auth-access = read | ||
| + | |||
| + | To grant anonymous read, change | ||
| + | # anon-access = none | ||
| + | to | ||
| + | anon-access = read | ||
| + |  | ||
| + | The users of the repository are defined in '' | ||
| + | [users] | ||
| + | harry = harryssecret | ||
| + | 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 '' | ||
| + | [/] | ||
| + | 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" | ||
| + |  | ||