Project

General

Profile

Windows » History » Version 30

Marc Mengel, 08/27/2010 10:17 AM

1 1 Marc Mengel
h1. Windows
2 1 Marc Mengel
3 26 Marc Mengel
[ Please help debug these instructions! Send comments/corrections! ]
4 26 Marc Mengel
5 5 Marc Mengel
There are numerous graphical front ends to the various packages on Windows; regardless which
6 5 Marc Mengel
front-end you choose, you will need to configure the back-end part below.
7 5 Marc Mengel
8 5 Marc Mengel
h2. Front ends
9 5 Marc Mengel
10 5 Marc Mengel
* http://www.tortoisecvs.org/
11 5 Marc Mengel
* http://code.google.com/p/tortoisegit/
12 5 Marc Mengel
* http://tortoisesvn.tigris.org/
13 29 Marc Mengel
* http://www.eclipse.org/  [Note that Eclipse's Git backend currently ignores GIT_SSH...]
14 10 Marc Mengel
* http://www.wincvs.org/
15 10 Marc Mengel
* http://cola.tuxfamily.org/
16 5 Marc Mengel
17 5 Marc Mengel
h2. Back Ends
18 5 Marc Mengel
19 15 Marc Mengel
For write access to  repositories on cdcvs, I am currently recommending that users use the old GetCert bundle and the ssh in there if you want an old, tried and true setup.
20 1 Marc Mengel
21 1 Marc Mengel
Then there are a few steps to get things setup:
22 14 Marc Mengel
23 25 Marc Mengel
# Install the contents of kca.zip (linked at the bottom of this page)  in C:\PROGRA~1\KCA
24 28 Marc Mengel
# Create some environment variables
25 1 Marc Mengel
## (local) KRB5CCNAME = FILE:C:\Users\yourUsername\AppData\Local\Temp\krb5_cc_cache
26 29 Marc Mengel
  Notes: 
27 29 Marc Mengel
    Requires full read/write access. 
28 29 Marc Mengel
    There may also be an issue with spaces in the file name and/or path.
29 29 Marc Mengel
    The FILE: part really goes in there, not just the pathname, and it must be upper case.
30 25 Marc Mengel
## (system) KRB5_CONFIG = C:\PROGRA~1\KCA\krb5.conf
31 25 Marc Mengel
## (system) CVS_RSH = C:\PROGRA~1\KCA\ssh.exe
32 1 Marc Mengel
## (system) GIT_SSH = C:\PROGRA~1\KCA\ssh.exe
33 28 Marc Mengel
## (system) SVN_SSH = C:\PROGRA~1\KCA\ssh.exe
34 23 Marc Mengel
** Right-click My Computer, and then click Properties.
35 23 Marc Mengel
** Click the Advanced tab.
36 23 Marc Mengel
** Click Environment variables.
37 23 Marc Mengel
** Click one the following options, for either a user or a system variable:
38 23 Marc Mengel
*** Click New to add a new variable name and value.
39 23 Marc Mengel
*** Click an existing variable, and then click Edit to change its name or value.
40 23 Marc Mengel
*** Click an existing variable, and then click Delete to remove it.
41 14 Marc Mengel
# Changes to NetID manager  see "NetIDSetup.jpg":https://cdcvs.fnal.gov/redmine/attachments/81/NetIDSetup.jpg
42 14 Marc Mengel
## Open Network Identity Manager
43 1 Marc Mengel
## Double click your default identify (username@FNAL.GOV)
44 1 Marc Mengel
## Click "Identify configuration"
45 1 Marc Mengel
## Select the Kerberos V5 tab
46 29 Marc Mengel
## Change the Credential cache location to the value of the KRB5CCNAME environment variable set in step 2.1 above (including the FILE: part).  See screen shot example.
47 2 Marc Mengel
## Close all open windows then renew your the credentials for username@fnal.gov.
48 2 Marc Mengel
## Verify your tickets by opening a DOS window and entering klist.  See screen shot example.
49 12 Marc Mengel
50 1 Marc Mengel
h2. Check if it works:
51 2 Marc Mengel
52 16 Marc Mengel
try to login on the server with  ssh. In a cmd.exe window:
53 16 Marc Mengel
<pre>
54 29 Marc Mengel
%CVS_RSH% p-project@cdcvs.fnal.gov echo hi
55 16 Marc Mengel
</pre>
56 3 Marc Mengel
(where "project" is your project name). You should get 
57 3 Marc Mengel
58 3 Marc Mengel
   Only 'lscvs' and 'cvs' commands are allowed
59 1 Marc Mengel
60 3 Marc Mengel
h2. CVS
61 1 Marc Mengel
62 21 Marc Mengel
The CVS_RSH environment variable should make :ext: CVSROOT's work in WinCVS, TortiseCVS, etc.
63 3 Marc Mengel
64 22 Marc Mengel
h2. GIT
65 22 Marc Mengel
66 22 Marc Mengel
The GIT_SSH environment variable should make ssh:/... repository paths work with Git tools.
67 22 Marc Mengel
68 30 Marc Mengel
The only exception known at the moment is Eclipse's Git backend, which ignores GIT_SSH.  If you're using Git from Eclipse, we can setup ssh public key access for you.  We also have a bug report in with the Eclipse Git backend asking that they fix this.
69 30 Marc Mengel
70 1 Marc Mengel
h2. Subversion
71 2 Marc Mengel
72 3 Marc Mengel
Configure Subversion to use plink/ssh  for “svn+ssh” uri.
73 2 Marc Mengel
74 2 Marc Mengel
    * Edit the file c:\Documents and Settings\user\Application Data\Subversion\config
75 8 Marc Mengel
      (with your username for "user")
76 2 Marc Mengel
    * Locate the section named [tunnels]
77 9 Marc Mengel
    * Add the following line :
78 3 Marc Mengel
79 3 Marc Mengel
      ssh=c:/path/to/ssh.exe
80 3 Marc Mengel
81 6 Marc Mengel
82 6 Marc Mengel
h3. Related files