Mail Archives: cygwin/2008/04/23/00:50:51
--_7034c14e-8978-4179-bc9b-22959f2b0c67_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Charles Wilson wrote:
> Karl M wrote:
>> Just a comment...keychain is pretty heavy for what you get in Cygwin. I =
had problems a long time ago with a slow laptop running XP SP2 with Cygwin =
windows taking a long time to open if I kicked off several at once, particu=
larly at boot time.
>>
>> My solution was to launch ssh-agent as a service (one for each user that=
wants it). That service spawns the agent and updates the user environment =
in the registry so that other processes can find the ssh-agent process/sock=
et. The advantages are that it is fast and the agent survives a logout (onl=
y rekey for a reboot is desired).
>>
>> I had thought about offering it as a package, but there was insufficient=
interest. Your are welcome to it if you are interested. It has been rock s=
olid for years.
>
> That sounds like a useful alternative.
>
It is three bash script files and one C program (just compile it with gcc).=
The shell scripts (1) install the service, (2) are the service under cygru=
nsrv and (3) is the commands to add to your bash_profile. If you use a diff=
erent shell, they will need syntax tweaking. The C program provides access =
to sending a Windows API call to broadcast a message for WM_SETTINGCHANGE. =
This is needed because the user can log in before the service is started in=
XP. I think that this all worked on WIN2k when last I tried it, but it has=
been a long time since I touched a WIN2k box. I have no experience with Vi=
sta :.).
Overall, it is fast and simple.
Enjoy,
...Karl
_________________________________________________________________
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Default.aspx?Locale=
=3Den-US?ocid=3DTAG_APRIL
--_7034c14e-8978-4179-bc9b-22959f2b0c67_
Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="secret-agent-service-install"
IyEvYmluL2Jhc2gKIyBzZWNyZXQtYWdlbnQtc2VydmljZS1pbnN0YWxsIHNl
cnZpY2UtbmFtZSB1c2VyLW5hbWUKCmlmIFsgIn4kMSIgPSAifiIgXTsgdGhl
bgogIGVjaG8gQSBzZXJ2aWNlIG5hbWUgaXMgcmVxdWlyZWQuCiAgZXhpdCAx
CmZpCgppZiBbICJ+JDIiID0gIn4iIF07IHRoZW4KICBlY2hvIEEgdXNlciBu
YW1lIGlzIHJlcXVpcmVkLgogIGV4aXQgMQpmaQoKZWNobyBVbmluc3RhbGxp
bmcgdGhlIHNlY3JldC1hZ2VudCBzZXJ2aWNlLCAkMS4KY3lncnVuc3J2IC0t
cmVtb3ZlICQxCgplY2hvIEFkZGluZyB0aGUgXCJMb2cgb24gYXMgYSBTZXJ2
aWNlXCIgcmlnaHQgZm9yICQyLgplZGl0cmlnaHRzIC1hIFNlU2VydmljZUxv
Z29uUmlnaHQgLXUgIiQyIgoKZWNobyBJbnN0YWxsaW5nIHRoZSBzZWNyZXQt
YWdlbnQgc2VydmljZSwgJDEuCmN5Z3J1bnNydiAtLWluc3RhbGwgJDEgXAog
IC0tYXJncyAnL2Jpbi9zZWNyZXQtYWdlbnQtc2VydmljZScgXAogIC0tZGlz
cCAiU2VjcmV0IEFnZW50ICQyIiBcCiAgLS1kZXNjICJDcmVhdGVzIGFuIHNz
aC1hZ2VudCBwcm9jZXNzIGZvciAkMi4iIFwKICAtLXBhdGggJy9iaW4vYmFz
aCcgXAogIC0tc2h1dGRvd24gXAogIC0tdXNlciAiJDIiCgplY2hvIFN0YXJ0
aW5nIHRoZSBzZWNyZXQtYWdlbnQgc2VydmljZSwgJDEuCmN5Z3J1bnNydiAt
LXN0YXJ0ICQxCg==
--_7034c14e-8978-4179-bc9b-22959f2b0c67_
Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="secret-agent-service"
IyEvYmluL2Jhc2gKIyBMYXVuY2ggdGhlIHNzaC1hZ2VudCBmcm9tIGEgc2Vy
dmljZSBzbyBpdCBzdXJ2aXZlcyBsb2dvZmYuCgojIFdoZW4gdGhlIHNlcnZp
Y2Ugc3RvcHMsIGtpbGwgdGhlIHNzaC1hZ2VudC4KdHJhcCAic3NoLWFnZW50
IC1rOwogIGV4aXQgMCIgVEVSTQoKIyBDbGVhbiB1cCBvbGQgZmlsZXMgdGhh
dCBtYXkgYmUgbGVmdCBiZWhpbmQgYWZ0ZXIgYSBjcmFzaC4KIyAgIFRoZSBm
aWxlIHBlcm1pc3Npb25zIG1ha2UgdGhpcyBzYWZlIHRvIGRvIGluIGEgbXVs
dGktdXNlcgojICAgZW52aXJvbm1lbnQsIGJ1dCAiL3RtcCIgbXVzdCBiZSBs
b2NhbCB0byB0aGlzIGhvc3QuCnJtIC1yZiAvdG1wL3NzaC0qCgojIExhdW5j
aCB0aGUgc3NoLWFnZW50LgpldmFsICQoc3NoLWFnZW50KQoKIyBQcm92aWRl
IHRoZSBzc2gtYWdlbnQgc29ja2V0IElEIHZpYSB0aGUgcmVnaXN0cnkgYW5k
IGJyb2FkY2FzdAojICAgdGhlIGNoYW5nZSBpbiBjYXNlIHRoZSB1c2VyIGlz
IGxvZ2dlZCBiZWZvcmUgd2UgZmluaXNoLgojICAgRG8gbm90IHByb3ZpZGUg
dGhlIHNzaC1hZ2VudCBQSUQgdG8gbWluaW1pemUgdGhlIHJpc2sgb2YKIyAg
IGFjY2lkZW50YWxseSBraWxsaW5nIHRoZSBzc2gtYWdlbnQuCnJlZ3Rvb2wg
LXMgc2V0IC9IS0VZX0NVUlJFTlRfVVNFUi9FbnZpcm9ubWVudC9TU0hfQVVU
SF9TT0NLICRTU0hfQVVUSF9TT0NLCnJlZ3Rvb2wgcmVtb3ZlIC9IS0VZX0NV
UlJFTlRfVVNFUi9FbnZpcm9ubWVudC9TU0hfQUdFTlRfUElECnNlbmRjaGVu
dgoKIyBXYWl0IHF1aWV0bHkgdW50aWwgdGhlIHNlcnZpY2UgaXMgc3RvcHBl
ZC4Kd2hpbGUgdHJ1ZTsgZG8KICBzbGVlcCAyNGggJgogIHdhaXQKZG9uZQo=
--_7034c14e-8978-4179-bc9b-22959f2b0c67_
Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bash_profile_addition"
c3NoLWFkZCAtbCA+L2Rldi9udWxsIDI+JjEKaWYgWyAkPyAtZXEgMSBdOyB0
aGVuCiAgc3NoLWFkZApmaQo=
--_7034c14e-8978-4179-bc9b-22959f2b0c67_
Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="sendchenv.c"
Ly8gTm90aWZ5IGFsbCB3aW5kb3dzIHRoYXQgZW52aXJvbm1lbnQgdmFyaWFi
bGVzIG1heSBoYXZlIGNoYW5nZWQuCgojaW5jbHVkZSA8d2luZG93cy5oPgoK
aW50IG1haW4oKQp7CiAgRFdPUkQgZHdSZXR1cm5WYWx1ZTsKICAKICBpZiAo
U2VuZE1lc3NhZ2VUaW1lb3V0KEhXTkRfQlJPQURDQVNULCBXTV9TRVRUSU5H
Q0hBTkdFLCAwLAogICAgICAoTFBBUkFNKSAiRW52aXJvbm1lbnQiLCBTTVRP
X0FCT1JUSUZIVU5HLCA1MDAwLCAmZHdSZXR1cm5WYWx1ZSkpCiAgICByZXR1
cm4gMDsKICBlbHNlCiAgICByZXR1cm4gMTsKfQo=
--_7034c14e-8978-4179-bc9b-22959f2b0c67_
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--_7034c14e-8978-4179-bc9b-22959f2b0c67_--
- Raw text -