Project

General

Profile

Windows » History » Version 33

Marc Mengel, 02/02/2012 03:55 PM

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 31 Marc Mengel
For write access to  repositories on cdcvs, I am currently recommending that users use Putty 0.62 (or newer)
20 31 Marc Mengel
in concert witht NetIDManager and Keberos for Windows.
21 1 Marc Mengel
22 1 Marc Mengel
Then there are a few steps to get things setup:
23 14 Marc Mengel
24 31 Marc Mengel
# Install the appropriate Putty installer (either 32 or 64 bit, at the bottom of this page).
25 31 Marc Mengel
# Startup PuTTY from that installation
26 31 Marc Mengel
# Select *Session* and set the hostname to: cdcvs.fnal.gov
27 31 Marc Mengel
# Expand *SSH* and under that expand *Auth*, and select GSSAPI
28 31 Marc Mengel
#* Check the box labelled: *Allow GSSAPI credential delegation*
29 31 Marc Mengel
#* Ensure that *MIT Kerberos GSSAPI* is first in the *Preference order for GSSAPI libraries"* box.
30 33 Marc Mengel
# Select Session again.  In the empty *Saved Sessions* box, enter *cdcvs.fnal.gov* and click  *Save*.
31 31 Marc Mengel
# Create some environment variables:
32 31 Marc Mengel
## (system) CVS_RSH = C:\Program Files\PuTTY\plink.exe
33 31 Marc Mengel
## (system) GIT_SSH = C:\Program Files\PuTTY\plink.exe
34 31 Marc Mengel
## (system) SVN_SSH = C:\Program Files\PuTTY\plink.exe
35 32 Marc Mengel
##* Right-click My Computer, and then click Properties.
36 32 Marc Mengel
##* Click the Advanced tab.
37 32 Marc Mengel
##* Click Environment variables.
38 32 Marc Mengel
##* Click one the following options, for either a user or a system variable:
39 32 Marc Mengel
##** Click New to add a new variable name and value.
40 32 Marc Mengel
##** Click an existing variable, and then click Edit to change its name or value.
41 32 Marc Mengel
##** Click an existing variable, and then click Delete to remove it.
42 32 Marc Mengel
# Close all open windows then renew your the credentials for username@FNAL.GOV.
43 12 Marc Mengel
44 1 Marc Mengel
h2. Check if it works:
45 2 Marc Mengel
46 31 Marc Mengel
try to login on the server with  plink.exe. In a cmd.exe window:
47 16 Marc Mengel
<pre>
48 29 Marc Mengel
%CVS_RSH% p-project@cdcvs.fnal.gov echo hi
49 16 Marc Mengel
</pre>
50 3 Marc Mengel
(where "project" is your project name). You should get 
51 3 Marc Mengel
52 31 Marc Mengel
   Only 'lscvs' and 'cvs' commands are allowed (or "hi" if you're a project admin).
53 1 Marc Mengel
54 3 Marc Mengel
h2. CVS
55 1 Marc Mengel
56 21 Marc Mengel
The CVS_RSH environment variable should make :ext: CVSROOT's work in WinCVS, TortiseCVS, etc.
57 3 Marc Mengel
58 22 Marc Mengel
h2. GIT
59 22 Marc Mengel
60 22 Marc Mengel
The GIT_SSH environment variable should make ssh:/... repository paths work with Git tools.
61 22 Marc Mengel
62 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.
63 30 Marc Mengel
64 1 Marc Mengel
h2. Subversion
65 2 Marc Mengel
66 3 Marc Mengel
Configure Subversion to use plink/ssh  for “svn+ssh” uri.
67 2 Marc Mengel
68 2 Marc Mengel
    * Edit the file c:\Documents and Settings\user\Application Data\Subversion\config
69 8 Marc Mengel
      (with your username for "user")
70 2 Marc Mengel
    * Locate the section named [tunnels]
71 9 Marc Mengel
    * Add the following line :
72 3 Marc Mengel
73 3 Marc Mengel
      ssh=c:/path/to/ssh.exe
74 3 Marc Mengel
75 6 Marc Mengel
76 6 Marc Mengel
h3. Related files