Project

General

Profile

UsingRepositories » History » Version 15

Laurenz Gamper, 01/15/2013 10:13 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 7 Brian Nord
h2. Checkout
51 7 Brian Nord
52 7 Brian Nord
<pre>
53 10 Laurenz Gamper
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/trunk despec
54 1 Brian Nord
</pre>
55 1 Brian Nord
56 10 Laurenz Gamper
This will create a directory called despec containing a checkout the complete pipeline.
57 1 Brian Nord
58 1 Brian Nord
h2. Checkin/Import 
59 1 Brian Nord
60 9 Brian Nord
One need not supply a URL for commit.  SVN automatically contacts external server
61 1 Brian Nord
<pre>
62 1 Brian Nord
svn commit -m "your message"  
63 1 Brian Nord
</pre>
64 1 Brian Nord
65 1 Brian Nord
h1. Anonymous SVN
66 1 Brian Nord
67 1 Brian Nord
<pre>
68 12 Laurenz Gamper
svn export http://cdcvs.fnal.gov/subversion/simulation_pipeline-main/trunk/ despec
69 1 Brian Nord
</pre>
70 1 Brian Nord
71 1 Brian Nord
h1. Run the Code
72 1 Brian Nord
73 1 Brian Nord
Instructions on how to run the pipeline: [[Run_Pipeline]]
74 8 Brian Nord
75 8 Brian Nord
76 8 Brian Nord
h2. Creating a sub-project repository
77 8 Brian Nord
78 8 Brian Nord
* Creating a Repository in a Sub-Project: see https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/CreatingRepositories
79 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:
80 8 Brian Nord
81 8 Brian Nord
h3. Example-ish
82 8 Brian Nord
83 8 Brian Nord
* If you have a project "fred" and a "main" repository with no identifier
84 8 Brian Nord
you get put in
85 8 Brian Nord
** /cvs/projects/fred
86 8 Brian Nord
* if you have a project fred and a repository identifier of "joe" you get
87 8 Brian Nord
** /cvs/projects/fred-joe
88 8 Brian Nord
89 8 Brian Nord
* So you can do give them all identifiers, or have one (main) one without;
90 8 Brian Nord
or you can give the Main one an identifier...
91 8 Brian Nord
92 8 Brian Nord
* If there is no "Main" repository, the Repository tab doesn't show up,
93 8 Brian Nord
apparently.
94 8 Brian Nord
95 8 Brian Nord
&nbsp; &nbsp; &nbsp;
96 8 Brian Nord
Also see https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/Subversion for Subversion