Difference between revisions of "Sysop SVN"

From A-Eskwiki
Jump to: navigation, search
(Created page with "Op de Sysop SVN staan twee repositories: doc en scripts. == Checkout maken == === Autorisatie === Om checkouts te maken is een aantal stapp…")
 
(Checkout)
Line 16: Line 16:
 
Voeg aan `~/.ssh/config` de volgende regels toe:
 
Voeg aan `~/.ssh/config` de volgende regels toe:
  
  Host svnhost
+
Host svnhost
      Hostname square
+
    Hostname square
      User svnsysop
+
    User svnsysop
      IdentityFile ~/.ssh/id_svn_rsa
+
    IdentityFile ~/.ssh/id_svn_rsa
  
 
Ga naar de map waar je de checkout wil (bijvoorbeld `~/sysop/scripts`) en voer het volgende uit:
 
Ga naar de map waar je de checkout wil (bijvoorbeld `~/sysop/scripts`) en voer het volgende uit:
  
  $ svn checkout svn+ssh://svnhost/var/lib/svn/sysop/trunk/scripts .
+
$ svn checkout svn+ssh://svnhost/var/lib/svn/sysop/trunk/scripts .

Revision as of 12:12, 18 September 2012

Op de Sysop SVN staan twee repositories: doc en scripts.

Checkout maken

Autorisatie

Om checkouts te maken is een aantal stappen vereist. Maak allereerst een speciale ssh-key voor je SVN checkout

 $ ssh-keygen -t rsa -f ~/.ssh/id_svn_rsa

Zet jezelf in `~svnsysop/.ssh/authorized_keys` op square door er de volgende regel aan toe te voegen:

command="svnserve -t --tunnel-user $gebruikersnaam",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty $public-key

Checkout

Voeg aan `~/.ssh/config` de volgende regels toe:

Host svnhost
    Hostname square
    User svnsysop
    IdentityFile ~/.ssh/id_svn_rsa

Ga naar de map waar je de checkout wil (bijvoorbeld `~/sysop/scripts`) en voer het volgende uit:

$ svn checkout svn+ssh://svnhost/var/lib/svn/sysop/trunk/scripts .