* cygwin
@ 2000-05-30 19:40 Dietmar Lettau
2000-05-31 0:48 ` cygwin Heinz-Juergen Oertel
2000-05-31 3:38 ` BASH and OpenSSH problems Pierre Muller
0 siblings, 2 replies; 6+ messages in thread
From: Dietmar Lettau @ 2000-05-30 19:40 UTC (permalink / raw)
To: cygwin
Hi,
I use cygwin with w98.
My question: how to install a thing like "/etc/profiles" or ~/.bashrc ?
I want automatically some aliases to be loaded at startup.
The bash uses c:\ as root (I assume: there lies the .bash_history), but
it won't help when I place a '.bashrc' there (written with lower case).
Please excuse my bad english,
greetings
Dietmar
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: cygwin
2000-05-30 19:40 cygwin Dietmar Lettau
@ 2000-05-31 0:48 ` Heinz-Juergen Oertel
2000-05-31 3:38 ` BASH and OpenSSH problems Pierre Muller
1 sibling, 0 replies; 6+ messages in thread
From: Heinz-Juergen Oertel @ 2000-05-31 0:48 UTC (permalink / raw)
To: 'Cygwin mailing list'
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]
Dietmar Lettau wrote:
>
> Hi,
>
> I use cygwin with w98.
> My question: how to install a thing like "/etc/profiles" or ~/.bashrc ?
> I want automatically some aliases to be loaded at startup.
>
> The bash uses c:\ as root (I assume: there lies the .bash_history), but
> it won't help when I place a '.bashrc' there (written with lower case).
>
> Please excuse my bad english,
>
> greetings
> Dietmar
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
for using these files (.profile, .bashrc) in a "home"
you must have a HOME variable set with your home-path.
mkdir /home
mkdir /home/dietmar
cp .bashrc /home/dietmar
HOME must e set before calling bash, e.g. in a startup.bat (cygnus.bat)
set HOME c:\home\dietmar
works for me with cygwin b20.1
--
with best regards / mit freundlichen GrüÃen
Heinz-Jürgen Oertel
===========================================
Heinz-Jürgen Oertel
port GmbH phone +49 345 77755-0
Regensburger Str. 7c fax +49 345 77755-20
D-06132 Halle/Saale mailto:oe@port.de
Germany http://www.port.de
===========================================
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* BASH and OpenSSH problems
2000-05-30 19:40 cygwin Dietmar Lettau
2000-05-31 0:48 ` cygwin Heinz-Juergen Oertel
@ 2000-05-31 3:38 ` Pierre Muller
2000-05-31 4:21 ` Corinna Vinschen
2000-05-31 5:19 ` Pierre Muller
1 sibling, 2 replies; 6+ messages in thread
From: Pierre Muller @ 2000-05-31 3:38 UTC (permalink / raw)
To: 'Cygwin mailing list
I am trying to use ssh-agent for Corrina's latest port
with bash 2.04.
I am working on a Win95 machine and I also installed crypt and login package
as recommended.
Using ssh-agent does not set the SSH_AUTH_SOCK and
SSH_AGENT_PID env variables !
Do I miss something here ??
BASH is expected to be SH compatible so -c or -k option will probably not
be better !
Even setting these values by hand does not help
Each time I connect to the remote CVS server I need to give my passphrase
again.
Even worse at exit of BASH, ssh-agent is not being killed and
I need to kill it with Crtl-Alt-Suppr :(
Is this a known bug ?
Ouput of cygwin -s -v
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed May 31 12:23:45 2000
Win95 Ver 4.0 build 67109975 B
Path: /usr/bin
/usr/bin
/usr/local/bin
/usr/bin
/usr/bin
/USR/LOCAL/BIN
/cygdrive/c/WINDOWS
/cygdrive/c/WINDOWS/COMMAND
SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS
HOME = `/home/muller'
PWD = `/home/muller'
!C: = `C:\WINDOWS'
!D: = `D:\cygwin\home\muller'
BIBINPUTS = `.;c:/tex/texmf/bibtex/bib'
BSTINPUTS = `.;c:/tex/texmf/bibtex/bst'
CMDLINE = `d:\cygwin\bin\bash.exe'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
CVSROOT = `:ext:muller@sourceware.cygnus.com:/cvs/src'
CVS_RSH = `ssh'
DVIFONTS = `d:\tex\texmf\fonts\pk\cx'
EDITEUR = `d:\tex\texmex\texmex.exe'
GUTBS = `d:\tex\texmf'
GUTSL = `c:/tex/texmf'
HOSTNAME = `LAOCOON'
HOSTTYPE = `i586'
MACHTYPE = `i586-pc-cygwin32'
MAKETEXPK = `C:\WINDOWS\COMMAND.COM /E:4096 /C d:\tex\texmf\bin\maketexp %n
%d %b %m'
MFBASES = `.;c:/tex/texmf/ini'
MFINPUTS = `.;c:/tex/texmf/fonts/src//'
MFPOOL = `c:/tex/texmf/ini'
OLDPWD = `/home/muller/gdb/src/gdb'
OSTYPE = `cygwin32'
PROMPT = `$p$g'
SHELL = `/bin/sh'
SHLVL = `1'
SSH_AGENT_PID = `1002'
SSH_AUTH_SOCK = `/tmp/ssh-jOMu1001/agent.1001'
SSH_SET_ENV = `SSH_AUTH_SOCK=/tmp/ssh-jOMu1001/agent.1001; export
SSH_AUTH_SOCK;
SSH_AGENT_PID=1002; export SSH_AGENT_PID;
echo Agent pid 1002;'
TEMP = `C:\WINDOWS\TEMP'
TERM = `cygwin'
TEXCONFIG = `c:/tex/texmf/ps'
TEXFONTS = `d:\tex\texmf\fonts\tfm'
TEXFORMATS = `.;c:/tex/texmf/frm/french/tex--xet'
TEXGUT = `c:/tex/texmf'
TEXINPUTS =
`.;c:/tex/texmf/tex//;c:/tex/texmf/generic/french//;c:/tex/texmf/latex//'
TEXPOOL = `c:/tex/texmf/ini/tex--xet'
TEXROOT = `d:\tex\texmf;d:\tex\texmf\tex\\;d:\tex\texmf\latex\\'
TEXTFM = `d:\tex\texmf\fonts\tfm'
TEXVFONTS = `d:\tex\texmf\fonts\vf'
TFMFONTS = `.;c:/tex/texmf/fonts/tfm/'
TMP = `C:\WINDOWS\TEMP'
VISION = `d:\tex\dviwin\dviwin2.exe'
VOIR = `d:\tex\dviwin'
WINBOOTDIR = `C:\WINDOWS'
WINDIR = `C:\WINDOWS'
WIN_GUT = `d:\tex\wingut'
_ = `/bin/cygcheck'
TZ = `HPM-1HPM-2,M3.5.0/2,M10.5.0/3'
Use `-r' to scan registry
a: fd FAT 1Mb 76% CP UN
c: hd FAT32 2003Mb 81% CP UN PEARL
d: hd FAT32 4869Mb 51% CP UN DISK_D
e: cd N/A N/A
d:\cygwin\bin /usr/bin user binmode
d:\cygwin\lib /usr/lib user binmode
d:\djgpp\gnu /usr/src/gnu user textmode
d:\cygwin / user binmode
d:\cvs /usr/local/cvs user textmode
Found: d:\cygwin\bin\bash.exe
Found: \bin\bash.exe
Warning: d:\cygwin\bin\bash.exe hides \bin\bash.exe
Found: d:\cygwin\bin\cat.exe
Found: d:\cygwin\bin\cpp.exe
Found: d:\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: d:\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: d:\cygwin\bin\gcc.exe
Found: d:\cygwin\bin\gdb.exe
Found: d:\cygwin\bin\ld.exe
Found: d:\cygwin\bin\ls.exe
Found: d:\cygwin\bin\make.exe
Found: d:\cygwin\bin\sh.exe
Found: \bin\sh.exe
Warning: d:\cygwin\bin\sh.exe hides \bin\sh.exe
569k 2000/05/15 d:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2000/5/15 5:48
115k 1999/09/14 d:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=1999/9/14 4:46
63k 1999/09/14 d:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=1999/9/14 4:47
474k 1999/09/14 d:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=1999/9/14 4:31
19k 1999/09/14 d:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
24k 1999/09/14 d:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=1999/9/14 4:31
768k 1999/09/14 d:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=1999/9/14 4:36
Use -h to see help about each section
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BASH and OpenSSH problems
2000-05-31 3:38 ` BASH and OpenSSH problems Pierre Muller
@ 2000-05-31 4:21 ` Corinna Vinschen
2000-05-31 5:19 ` Pierre Muller
1 sibling, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2000-05-31 4:21 UTC (permalink / raw)
To: Pierre Muller; +Cc: 'Cygwin mailing list
Pierre Muller wrote:
>
> I am trying to use ssh-agent for Corrina's latest port
> with bash 2.04.
>
> I am working on a Win95 machine and I also installed crypt and login package
> as recommended.
???
I never mentioned that crypt and login are needed to
work with ssh. They are needed for the inetutils package.
> Using ssh-agent does not set the SSH_AUTH_SOCK and
> SSH_AGENT_PID env variables !
>
> Do I miss something here ??
Definitely. When you start ssh-agent, you'll have to redirect
it's output to `eval' to get it working. ssh-agent only writes
the environment settings to stdout. The same is true for
`ssh-agent -k'.
Furthermore ssh-agent has no initial private keys. You'll have
to add them using `ssh-add' after starting ssh-agent. You can get
it a bit more convenient with an alias, eg.:
alias startssh='eval `ssh-agent`; ssh-add'
alias stopssh='eval `ssh-agent -k`'
or by doing that in your profile.
> Even worse at exit of BASH, ssh-agent is not being killed and
> I need to kill it with Crtl-Alt-Suppr :(
>
> Is this a known bug ?
No, it's the way described above and it's intentionally.
Corinna
--
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BASH and OpenSSH problems
2000-05-31 3:38 ` BASH and OpenSSH problems Pierre Muller
2000-05-31 4:21 ` Corinna Vinschen
@ 2000-05-31 5:19 ` Pierre Muller
2000-05-31 6:51 ` Corinna Vinschen
1 sibling, 1 reply; 6+ messages in thread
From: Pierre Muller @ 2000-05-31 5:19 UTC (permalink / raw)
To: cygwin
At 13:17 31/05/00 +0200, Corinna Vinschen wrote:
>Pierre Muller wrote:
>>
>> I am trying to use ssh-agent for Corrina's latest port
>> with bash 2.04.
>>
>> I am working on a Win95 machine and I also installed crypt and login
package
>> as recommended.
>
>???
>I never mentioned that crypt and login are needed to
>work with ssh. They are needed for the inetutils package.
Whoops, sorry, I mixed bothg :(
>> Using ssh-agent does not set the SSH_AUTH_SOCK and
>> SSH_AGENT_PID env variables !
>>
>> Do I miss something here ??
>
>Definitely. When you start ssh-agent, you'll have to redirect
>it's output to `eval' to get it working. ssh-agent only writes
>the environment settings to stdout. The same is true for
>`ssh-agent -k'.
I am not very familair with UniXy Shells but I didn't find any mention of
this
in the man page !
>Furthermore ssh-agent has no initial private keys. You'll have
>to add them using `ssh-add' after starting ssh-agent. You can get
>it a bit more convenient with an alias, eg.:
>
> alias startssh='eval `ssh-agent`; ssh-add'
> alias stopssh='eval `ssh-agent -k`'
I did that , it works correctly for setting the env variables,
but I still obtain the following output from ssh-add:
Could not open a connection to your authentification agent
ssh-agent is still running it has the correct PID (the value of
SSH_AGENT_PID)
HOME env var is also set.
Any idea what is still wrong ??
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BASH and OpenSSH problems
2000-05-31 5:19 ` Pierre Muller
@ 2000-05-31 6:51 ` Corinna Vinschen
0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2000-05-31 6:51 UTC (permalink / raw)
To: Pierre Muller; +Cc: cygwin
Pierre Muller wrote:
> At 13:17 31/05/00 +0200, Corinna Vinschen wrote:
> >Definitely. When you start ssh-agent, you'll have to redirect
> >it's output to `eval' to get it working. ssh-agent only writes
> >the environment settings to stdout. The same is true for
> >`ssh-agent -k'.
>
> I am not very familair with UniXy Shells but I didn't find any mention of
> this
> in the man page !
Nope. Look at the SYNOPSIS section. There's the example using `eval'.
> >Furthermore ssh-agent has no initial private keys. You'll have
> >to add them using `ssh-add' after starting ssh-agent. You can get
> >it a bit more convenient with an alias, eg.:
> >
> > alias startssh='eval `ssh-agent`; ssh-add'
> > alias stopssh='eval `ssh-agent -k`'
>
> I did that , it works correctly for setting the env variables,
> but I still obtain the following output from ssh-add:
>
> Could not open a connection to your authentification agent
Good news: I can reproduce that. Bad news: It's only on W9X
and I don't know why. I will investigate that.
Corinna
--
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-05-31 6:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-30 19:40 cygwin Dietmar Lettau
2000-05-31 0:48 ` cygwin Heinz-Juergen Oertel
2000-05-31 3:38 ` BASH and OpenSSH problems Pierre Muller
2000-05-31 4:21 ` Corinna Vinschen
2000-05-31 5:19 ` Pierre Muller
2000-05-31 6:51 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).