Project

General

Profile

UsingRepositories » History » Version 21

Laurenz Gamper, 01/22/2013 03:52 AM

1 7 Brian Nord
h1. SVN
2 7 Brian Nord
3 21 Laurenz Gamper
* [[SVN Access|#UsingRepositories]]
4 20 Laurenz Gamper
* SVN Checkout
5 20 Laurenz Gamper
* SVN Introduction
6 20 Laurenz Gamper
* Running the Code
7 20 Laurenz Gamper
8 20 Laurenz Gamper
9 20 Laurenz Gamper
h1(#svn_access). SVN Access
10 20 Laurenz Gamper
11 7 Brian Nord
To Access the DESpec SVN, you need:
12 7 Brian Nord
* a services account
13 7 Brian Nord
* to be a member of the subprojects of DESpec
14 7 Brian Nord
* a kerberos ticket
15 7 Brian Nord
* a svn client
16 7 Brian Nord
17 7 Brian Nord
h2. Recommended SVN Clients
18 7 Brian Nord
19 7 Brian Nord
* Windows: TortoiseSVN http://tortoisesvn.tigris.org/
20 7 Brian Nord
* Mac: Versions http://versionsapp.com/
21 7 Brian Nord
* command line
22 7 Brian Nord
23 7 Brian Nord
24 7 Brian Nord
h2. Services Account at Fermilab
25 7 Brian Nord
26 7 Brian Nord
How to get a services account:
27 7 Brian Nord
https://cdcvs.fnal.gov/redmine/projects/despec/wiki/DESpecwikiAccess
28 7 Brian Nord
29 7 Brian Nord
h2. Member of the Subprojects
30 7 Brian Nord
31 10 Laurenz Gamper
If you would like to have write access, email Brian or Laurenz, so we can add you to the DESpec project. If you don't need write access, look at the section Anonymous SVN.
32 7 Brian Nord
33 7 Brian Nord
h2. Kerberos
34 7 Brian Nord
35 14 Laurenz Gamper
h3. How to set up kerberos
36 14 Laurenz Gamper
37 14 Laurenz Gamper
<pre>
38 14 Laurenz Gamper
$ mv /etc/krb5.conf /etc/krb5.conf.bak
39 14 Laurenz Gamper
$ cd /etc
40 14 Laurenz Gamper
$ wget http://security.fnal.gov/krb5.conf
41 14 Laurenz Gamper
$ echo "host cdcvs.fnal.gov
42 14 Laurenz Gamper
   ForwardX11 = no
43 14 Laurenz Gamper
   GSSAPIAuthentication yes
44 14 Laurenz Gamper
   GSSAPIDelegateCredentials yes" >> ~/.ssh/config
45 14 Laurenz Gamper
$ kinit -f your-fnal-username
46 14 Laurenz Gamper
$ klist
47 14 Laurenz Gamper
</pre>
48 14 Laurenz Gamper
49 14 Laurenz Gamper
The final klist should show your kerberos ticket and the svn can be checked out now using the svn checkout command below.
50 14 Laurenz Gamper
51 15 Laurenz Gamper
52 15 Laurenz Gamper
h3. Links with further documentation
53 13 Laurenz Gamper
54 13 Laurenz Gamper
http://www.fnal.gov/docs/strongauth/macadmin.html#55292
55 7 Brian Nord
http://kb.mit.edu/confluence/display/istcontrib/Acquiring+Kerberos+Tickets+in+Mac+OS+X+10.7+(Lion)+or+OS+X+10.8+(Mountain+Lion)
56 16 Laurenz Gamper
http://fermilinux.fnal.gov/documentation/security/kerberos-newer-linux/
57 1 Brian Nord
58 20 Laurenz Gamper
h1(#svn_access). SVN Intro
59 16 Laurenz Gamper
60 1 Brian Nord
http://svnbook.red-bean.com/en/1.7/svn.tour.cycle.html
61 16 Laurenz Gamper
62 20 Laurenz Gamper
h2. Checkin/Import 
63 1 Brian Nord
64 20 Laurenz Gamper
One need not supply a URL for commit.  SVN automatically contacts external server
65 20 Laurenz Gamper
<pre>
66 20 Laurenz Gamper
svn commit -m "your message"  
67 20 Laurenz Gamper
</pre>
68 20 Laurenz Gamper
69 20 Laurenz Gamper
70 20 Laurenz Gamper
h1(#svn_access). SVN Checkout
71 20 Laurenz Gamper
72 17 Laurenz Gamper
h3. Source Code
73 18 Laurenz Gamper
74 17 Laurenz Gamper
<pre>
75 17 Laurenz Gamper
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/trunk despec
76 17 Laurenz Gamper
</pre>
77 17 Laurenz Gamper
78 19 Laurenz Gamper
h3. Data
79 17 Laurenz Gamper
80 17 Laurenz Gamper
<pre>
81 17 Laurenz Gamper
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/data data
82 17 Laurenz Gamper
</pre>
83 1 Brian Nord
84 10 Laurenz Gamper
h3. Paper
85 1 Brian Nord
86 1 Brian Nord
<pre>
87 1 Brian Nord
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/paper paper
88 9 Brian Nord
</pre>
89 1 Brian Nord
90 1 Brian Nord
91 1 Brian Nord
This will create a directory called despec containing a checkout the complete pipeline.
92 1 Brian Nord
93 1 Brian Nord
h1. Anonymous SVN
94 1 Brian Nord
95 1 Brian Nord
<pre>
96 12 Laurenz Gamper
svn export http://cdcvs.fnal.gov/subversion/simulation_pipeline-main/trunk/ despec
97 1 Brian Nord
</pre>
98 1 Brian Nord
99 1 Brian Nord
h1. Run the Code
100 1 Brian Nord
101 1 Brian Nord
Instructions on how to run the pipeline: [[Run_Pipeline]]
102 8 Brian Nord
103 8 Brian Nord
104 8 Brian Nord
h2. Creating a sub-project repository
105 8 Brian Nord
106 8 Brian Nord
* Creating a Repository in a Sub-Project: see https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/CreatingRepositories
107 8 Brian Nord
* setting up a repository on your local machine (which will then be pushed/pulled to/from the FRedmine (FNAL Redmine) repository you created:
108 8 Brian Nord
109 8 Brian Nord
h3. Example-ish
110 8 Brian Nord
111 8 Brian Nord
* If you have a project "fred" and a "main" repository with no identifier
112 8 Brian Nord
you get put in
113 8 Brian Nord
** /cvs/projects/fred
114 8 Brian Nord
* if you have a project fred and a repository identifier of "joe" you get
115 8 Brian Nord
** /cvs/projects/fred-joe
116 8 Brian Nord
117 8 Brian Nord
* So you can do give them all identifiers, or have one (main) one without;
118 8 Brian Nord
or you can give the Main one an identifier...
119 8 Brian Nord
120 8 Brian Nord
* If there is no "Main" repository, the Repository tab doesn't show up,
121 8 Brian Nord
apparently.
122 8 Brian Nord
123 8 Brian Nord
&nbsp; &nbsp; &nbsp;
124 8 Brian Nord
Also see https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/Subversion for Subversion