Project

General

Profile

UsingRepositories » History » Version 17

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

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