Project

General

Profile

Linux » History » Version 7

Marc Mengel, 06/10/2011 10:03 AM

1 1 Marc Mengel
h1. Linux
2 1 Marc Mengel
3 1 Marc Mengel
There are numerous graphical front ends to the various packages on Windows; regardless which
4 1 Marc Mengel
front-end you choose, you will need to configure the back-end part below.
5 1 Marc Mengel
6 1 Marc Mengel
h2. Front ends
7 1 Marc Mengel
8 1 Marc Mengel
* http://www.tortoisecvs.org/
9 1 Marc Mengel
* http://code.google.com/p/tortoisegit/
10 1 Marc Mengel
* http://tortoisesvn.tigris.org/
11 1 Marc Mengel
* http://www.eclipse.org/
12 4 Marc Mengel
* http://cola.tuxfamily.org/
13 1 Marc Mengel
14 1 Marc Mengel
h2. Back Ends
15 1 Marc Mengel
16 1 Marc Mengel
For write access to  repositories on cdcvs, I am currently recommending that users use a kerberized ssh, 
17 1 Marc Mengel
which comes stock with Fermi Linux, or has to be installed on some older Linuxes.
18 1 Marc Mengel
19 1 Marc Mengel
I recommend for your $HOME/.ssh/config:
20 1 Marc Mengel
21 1 Marc Mengel
  host *.fnal.gov
22 1 Marc Mengel
   GSSAPIAuthentication yes
23 1 Marc Mengel
   GSSAPIDelegateCredentials yes
24 1 Marc Mengel
  host cdcvs.fnal.gov
25 1 Marc Mengel
   ForwardX11 = no
26 2 Marc Mengel
   # ForwardAgent = yes # only if you're using ssh keys, and not kerberos
27 1 Marc Mengel
   GSSAPIAuthentication yes
28 1 Marc Mengel
   GSSAPIDelegateCredentials yes
29 1 Marc Mengel
30 6 Marc Mengel
Also, make sure your kerberos tickets are forwardable:
31 6 Marc Mengel
32 7 Marc Mengel
<pre>
33 6 Marc Mengel
  $ klist -f
34 6 Marc Mengel
  Ticket cache: FILE:/tmp/krb5cc_1733_m02jhk
35 6 Marc Mengel
  Default principal: mengel@FNAL.GOV
36 6 Marc Mengel
  
37 6 Marc Mengel
  Valid starting     Expires            Service principal
38 6 Marc Mengel
  06/10/11 09:51:47  06/11/11 11:51:46  krbtgt/FNAL.GOV@FNAL.GOV
39 6 Marc Mengel
	renew until 06/17/11 09:51:46, Flags: FRIA
40 7 Marc Mengel
</pre>
41 1 Marc Mengel
42 7 Marc Mengel
Note the "F" in the Flags: section.  If that isn't happening, check your 
43 7 Marc Mengel
/etc/krb5.conf under libdefaults and appdefaults:
44 1 Marc Mengel
45 7 Marc Mengel
<pre>
46 7 Marc Mengel
[libdefaults]
47 7 Marc Mengel
        ...
48 7 Marc Mengel
        forward = true
49 7 Marc Mengel
        forwardable = true
50 7 Marc Mengel
...
51 7 Marc Mengel
[appdefaults]
52 7 Marc Mengel
        kinit = {
53 7 Marc Mengel
                forwardable = true
54 7 Marc Mengel
                 ...
55 7 Marc Mengel
        
56 7 Marc Mengel
      pam = {
57 7 Marc Mengel
                debug = false
58 7 Marc Mengel
                forwardable = true
59 7 Marc Mengel
  
60 7 Marc Mengel
</pre>
61 1 Marc Mengel
h2. Check if it works:
62 1 Marc Mengel
63 1 Marc Mengel
try to login on the server with  ssh:
64 1 Marc Mengel
65 1 Marc Mengel
   ssh p-project@cdcvs.fnal.gov echo hi
66 1 Marc Mengel
67 5 Marc Mengel
(where "project" is your project name). You should get 
68 1 Marc Mengel
69 1 Marc Mengel
   Only 'lscvs' and 'cvs' commands are allowed
70 1 Marc Mengel
71 1 Marc Mengel
h2. CVS
72 1 Marc Mengel
73 1 Marc Mengel
Set CVS_RSH to /usr/bin/ssh in your environment.
74 1 Marc Mengel
75 1 Marc Mengel
    export CVS_RSH=/usr/bin/ssh
76 1 Marc Mengel
77 3 Marc Mengel
or for tcsh/csh
78 1 Marc Mengel
79 1 Marc Mengel
    setenv CVS_RSH /usr/bin/ssh
80 1 Marc Mengel
 
81 1 Marc Mengel
h2. Subversion
82 1 Marc Mengel
83 1 Marc Mengel
Subversion just uses ssh automagically.
84 1 Marc Mengel
85 1 Marc Mengel
h3. Git
86 1 Marc Mengel
87 1 Marc Mengel
Git just uses ssh automagically.