noresm:svnnorstorehowto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
noresm:svnnorstorehowto [2014-12-19 12:46:17]
ingo.bethke@gmail.com
noresm:svnnorstorehowto [2022-05-31 09:29:32] (current)
Line 9: Line 9:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-To create and manage a repository, you need a user account at NorStore and to be member in the ns2345k project. +To create and manage a repository, you need a user account at NorStore which is member of the ns2345k project. 
            
 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.       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, 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 ''noresg.norstore.no'' via ssh. 
 +
 +To take all svn repositories online, do 
 +  svnserve -d -r /projects/NS2345K/svn --log-file /projects/NS2345K/svn/svnserve.log --pid-file /projects/NS2345K/svn/svnserve.pid
 +
 +An svnserve demon has now been started as a background process on noresg.norstore.no. The process id is logged in ''/projects/NS2345K/svn/svnserve.pid''
 +
 +To take all repositories offline again, do 
 +  kill `cat /projects/NS2345K/svn/svnserve.pid`
  
 ===== Creating a new repository ===== ===== Creating a new repository =====
Line 52: Line 64:
 to to
   password-db = passwd   password-db = passwd
- 
  
 Further fine tuning of access rights can be done in ''testrepo/conf/authz''. E.g.,  Further fine tuning of access rights can be done in ''testrepo/conf/authz''. E.g., 
-  [/projects/NS2345K/svn/testrepo]+  [/] 
 +  harry = rw 
   guestuser = r   guestuser = r
-limits the access of the user ''guest-user'' to read-only access. The ''authz'' customisation is activated in ''svnserve.conf'' by uncommenting +gives ''harry'' read/write access but limits the access of ''guestuser'' to read-only. The ''authz'' customisation is activated in ''svnserve.conf'' by uncommenting 
   # authz-db = authz   # authz-db = authz
 to to
Line 69: Line 81:
   svn co svn://noresg.norstore.no/testrepo   svn co svn://noresg.norstore.no/testrepo
      
-Change directory to ''testrepo'' with+Change directory to ''testrepo'' 
   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 with +Commit the repository 
   svn commit -m "my commit message"          svn commit -m "my commit message"       
      
-===== Start/stop of server  ===== 
- 
-Log on to ''noresg.norstore.no'' via ssh.  
- 
-To take all svn repositories online, do  
-  svnserve -d -r /projects/NS2345K/svn --log-file /projects/NS2345K/svn/svnserve.log --pid-file /projects/NS2345K/svn/svnserve.pid 
- 
-An svnserve demon has now been started as a background process on noresg.norstore.no. The process id is logged in ''/projects/NS2345K/svn/svnserve.pid'' 
- 
-To take all repositories offline again, do  
-  kill `cat /projects/NS2345K/svn/svnserve.pid` 
  • noresm/svnnorstorehowto.1418993177.txt.gz
  • Last modified: 2022-05-31 09:23:24
  • (external edit)