README-windows.txt
branchwindows
changeset 349 b271be84da5e
parent 348 b155c43eaa56
equal deleted inserted replaced
348:b155c43eaa56 349:b271be84da5e
    19 - python
    19 - python
    20   
    20   
    21 Note that even if you've already got them installed in Windows, Python and
    21 Note that even if you've already got them installed in Windows, Python and
    22 Mercurial still need to be installed in Cygwin.
    22 Mercurial still need to be installed in Cygwin.
    23 
    23 
    24 2) Open a new Cygwin terminal as Adminstrator (right click on "Cygwin Terminal"
    24 2) Open a new Cygwin terminal as Adminstrator (under Windows 7, that's right
    25 start menu option and pick "Run as administrator")
    25 click on "Cygwin Terminal" start menu option and pick "Run as administrator")
    26 
    26 
    27 3) Run "ssh-host-config -y" and "cygrunsrv -S sshd" to get sshd running. We need
    27 3) Run "ssh-host-config -y" and "cygrunsrv -S sshd" to get sshd running. We need
    28 this because there's no proper su in Cygwin (see
    28 this because there's no proper su in Cygwin (see
    29 http://cygwin.com/faq-nochunks.html#faq.using.su for why this is)
    29 http://cygwin.com/faq-nochunks.html#faq.using.su for why this is)
    30 
    30 
    31 3) Goto the mercurial-server folder and "make setup-windows"
    31 3) Goto the mercurial-server folder and "sh windows.sh setup-windows"
    32 
    32 
    33 4) Run "passwd hg" and set the password for the hg user. 
    33 4) Run "passwd hg" and set the password for the hg user (created by
       
    34 setup-windows), then "mkpasswd -l > /etc/passwd" to add them to the Cygwin user
       
    35 database
    34 
    36 
    35 5) Following the example from the main mercurial-server documentation (in that the server
    37 5) Run "sh windows.sh inituser-windows" to finish setting up the hg user
    36 is called 'jeeves', your username is 'jay' and the client is called 'spoon'),
    38 
    37 but with a few differences for Cygwin, we can now get you initial access. We
    39 5) Following the example from the main mercurial-server documentation (in that
    38 assume that you've generated a key with PuTTYgen
    40 the server is called 'jeeves', your username is 'jay' and the client is called
       
    41 'spoon'), but with a few differences for Cygwin, we can now get you initial
       
    42 access. We assume that you've generated a key with PuTTYgen
    39 (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) and then
    43 (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) and then
    40 copied the contents of the "public key" box into a file called my-key.
    44 copied the contents of the "public key" box into a file called my-key. Run the
       
    45 following, altered as appropriate for your local system:
    41 
    46 
    42 jay@jeeves:~$ mkdir -p /etc/mercurial-server/keys/root/jay
    47   mkdir -p /etc/mercurial-server/keys/root/jay
    43 jay@jeeves:~$ cp my-key /etc/mercurial-server/keys/root/jay/spoon
    48   cp my-key /etc/mercurial-server/keys/root/jay/spoon
    44 jay@jeeves:~$ chown hg /etc/mercurial-server/keys/root/jay/spoon
    49   chown hg /etc/mercurial-server/keys/root/jay/spoon
    45 jay@jeeves:~$ ssh hg@localhost /usr/share/mercurial-server/refresh-auth
    50   ssh hg@localhost /usr/local/share/mercurial-server/refresh-auth
    46 
    51 
    47 The rest of the instructions in the normal mercurial-server documentation should
    52 The rest of the instructions in the normal mercurial-server documentation should
    48 now work. Note that although it's possible to add keys/access info to
    53 now work. Note that although it's possible to add keys/access info to
    49 /etc/mercurial-server it's much easier to do things via the hgadmin repository,
    54 /etc/mercurial-server it's much easier to do things via the hgadmin repository,
    50 and doing things via /etc should probably be limited to only if you mess up the
    55 and doing things via /etc should probably be limited to only if you mess up the