Project

General

Profile

UsingRepositories » History » Version 16

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