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-19 12:33:12] ingo.bethke@gmail.com |
noresm:svnnorstorehowto [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 5: | Line 5: | ||
NorStore uses the [[http:// | NorStore uses the [[http:// | ||
- | On the NorStore node '' | + | On the NorStore node '' |
- | ===== Prerequisites | + | ===== Prerequisites ===== |
- | To create and manage a repository, you must | + | To create and manage a repository, you need a user account at NorStore |
- | * have a user account at NorStore | + | |
- | * be member | + | |
- | 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 (an svn user consists | + | 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 |
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. | 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. | ||
+ | |||
+ | ===== 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 ===== | ||
Line 25: | 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 '' |
The default is read/write access for authenticated users and no access for anonymous. | The default is read/write access for authenticated users and no access for anonymous. | ||
Line 50: | Line 60: | ||
sally = sallyssecret | sally = sallyssecret | ||
guestuser = friendly | guestuser = friendly | ||
- | To activate the customisation, edit '' | + | The user customisation |
# password-db = passwd | # password-db = passwd | ||
to | to | ||
password-db = passwd | password-db = passwd | ||
- | |||
Further fine tuning of access rights can be done in '' | Further fine tuning of access rights can be done in '' | ||
- | [/projects/ | + | [/] |
+ | harry = rw | ||
guestuser = r | guestuser = r | ||
- | limits the access of the user '' | + | gives '' |
# authz-db = authz | # authz-db = authz | ||
to | to | ||
authz-db = authz | authz-db = authz | ||
+ | ===== Remote access ===== | ||
- | ===== Taking a repository online/ | + | After taking the repository online, the URL of the repository '' |
- | + | ||
- | Log on to '' | + | |
- | + | ||
- | To take a repository with name '' | + | |
- | svnserve -d -r / | + | |
- | + | ||
- | An svnserve demon has now been started as a background process on noresg.norstore.uio.no. The process id is logged in ''/ | + | |
- | + | ||
- | To take the repository offline again, do | + | |
- | kill `cat / | + | |
- | + | ||
- | + | ||
- | ===== Remote access to repository ===== | + | |
- | + | ||
- | After taking the repository online, the URL of the repository '' | + | |
To checkout the repository, do | To checkout the repository, do | ||
- | svn co svn:// | + | svn co svn:// |
| | ||
- | Change directory to '' | + | Change directory to '' |
cd testrepo | cd testrepo | ||
| | ||
- | Create a dummy file with | + | Create a dummy file and mark it for adding |
echo test > README | echo test > README | ||
+ | svn add README | ||
- | Commit the repository | + | Commit the repository |
svn commit -m "my commit message" | svn commit -m "my commit message" | ||
+ | |