public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* More newbie questions, SSH and paths
@ 2002-04-23 20:13 B. Joshua Rosen
  2002-04-24  1:19 ` Andrew Markebo
  0 siblings, 1 reply; 4+ messages in thread
From: B. Joshua Rosen @ 2002-04-23 20:13 UTC (permalink / raw)
  To: cygwin

I've got SSH partially working, I can log into the Win2K box but X
forwarding isn't working. I've enabled X forwarding in the
/etc/ssh_config and /etc/sshd_config files but when I ssh -X into the
box and then try to launch Xemacs nothting happens. Does anyonw have any
suggestions?

I'm also am having a path problem. I've set the path in my .cshrc file
but it doesn't seem to work. Below I've echoed the $path env variable,
you can see that the first that the local directory is the first thing
in the path. When I do a which emacs it doesn't find it even though a
link is in my home directory.

echo $path
. /cygdrive/c/Program Files/XEmacs/bin/i686-pc-cygwin /usr/bin /usr/bin
/cygdrive/c/WINNT/system32 /cygdrive/c/WINNT
/cygdrive/c/WINNT/System32/Wbem /usr/local/bin
/cygdrive/c/WINNT/System32 /cygdrive/c/Program\
Files/XEmacs/bin/i686-pc-cygwin

/home/bjrosen> which xemacs
xemacs: Command not found.

/home/bjrosen> ls
xemacs.exe


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: More newbie questions, SSH and paths
  2002-04-23 20:13 More newbie questions, SSH and paths B. Joshua Rosen
@ 2002-04-24  1:19 ` Andrew Markebo
  2002-04-24  8:45   ` Marcos Lorenzo de Santiago
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Markebo @ 2002-04-24  1:19 UTC (permalink / raw)
  To: B. Joshua Rosen; +Cc: cygwin

/ "B. Joshua Rosen" <bjrosen@polybus.com> wrote:
| I've got SSH partially working, I can log into the Win2K box but X
| forwarding isn't working. I've enabled X forwarding in the
| /etc/ssh_config and /etc/sshd_config files but when I ssh -X into the
| box and then try to launch Xemacs nothting happens. Does anyonw have any
| suggestions?

Throw -d at the ssh client and you can see what happens, which machine
do you ssh from, which machine do you try to run xemacs on? What is
the value of DISPLAY in that shell you try to fire it up from?

(BTW xemacs does not need to mean Emacs for X11, it is an emacs called
xemacs, and well this compilation could be missing X11 support)

| I'm also am having a path problem. I've set the path in my .cshrc file
| but it doesn't seem to work. Below I've echoed the $path env variable,

Well, default cygwin business is done through bash, not csh, and
.cshrc is only read by csh-shells.. normal for bash is to set the path
in your ~/.profile. Or set some cshell (csh/tcsh) as your shell.

| /home/bjrosen> which xemacs
| xemacs: Command not found.
| 
| /home/bjrosen> ls
| xemacs.exe

You need to have ./ in the path. Or run ./xemacs.

        /Andy

-- 
 The eye of the beholder rests on the beauty!



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: More newbie questions, SSH and paths
  2002-04-24  1:19 ` Andrew Markebo
@ 2002-04-24  8:45   ` Marcos Lorenzo de Santiago
  2002-04-24 11:27     ` Andrew Markebo
  0 siblings, 1 reply; 4+ messages in thread
From: Marcos Lorenzo de Santiago @ 2002-04-24  8:45 UTC (permalink / raw)
  To: Andrew Markebo; +Cc: B. Joshua Rosen, cygwin

On 24 Apr 2002, Andrew Markebo wrote:

     > / "B. Joshua Rosen" <bjrosen@polybus.com> wrote:
     > | I've got SSH partially working, I can log into the Win2K box but X
     > | forwarding isn't working. I've enabled X forwarding in the
     > | /etc/ssh_config and /etc/sshd_config files but when I ssh -X into the
     > | box and then try to launch Xemacs nothting happens. Does anyonw have any
     > | suggestions?
     >
     > Throw -d at the ssh client and you can see what happens, which machine

or maybe with -v (verbose instead of debug?)

     > do you ssh from, which machine do you try to run xemacs on? What is
     > the value of DISPLAY in that shell you try to fire it up from?
     >
     > (BTW xemacs does not need to mean Emacs for X11, it is an emacs called
     > xemacs, and well this compilation could be missing X11 support)

I guess DISPLAY variable is not needed when using ssh with forwarding
option enabled (this is in Linux at least).

     >
     > | I'm also am having a path problem. I've set the path in my .cshrc file
     > | but it doesn't seem to work. Below I've echoed the $path env variable,
     >
     > Well, default cygwin business is done through bash, not csh, and
     > .cshrc is only read by csh-shells.. normal for bash is to set the path
     > in your ~/.profile. Or set some cshell (csh/tcsh) as your shell.
     >
     > | /home/bjrosen> which xemacs
     > | xemacs: Command not found.
     > |
     > | /home/bjrosen> ls
     > | xemacs.exe
     >
     > You need to have ./ in the path. Or run ./xemacs.

I think you're wrong, maybe a 'which xemacs.exe' will do what you want.
Remember cygwin != linux.


rgrds,
m4c.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: More newbie questions, SSH and paths
  2002-04-24  8:45   ` Marcos Lorenzo de Santiago
@ 2002-04-24 11:27     ` Andrew Markebo
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Markebo @ 2002-04-24 11:27 UTC (permalink / raw)
  To: Marcos Lorenzo de Santiago; +Cc: B. Joshua Rosen, cygwin


|      > do you ssh from, which machine do you try to run xemacs on? What is
|      > the value of DISPLAY in that shell you try to fire it up from?
|      >
|      > (BTW xemacs does not need to mean Emacs for X11, it is an emacs called
|      > xemacs, and well this compilation could be missing X11 support)
| 
| I guess DISPLAY variable is not needed when using ssh with forwarding
| option enabled (this is in Linux at least).

Yes it is needed, but sshd sets it automagically.

|      > | /home/bjrosen> which xemacs
|      > | xemacs: Command not found.
|      > |
|      > | /home/bjrosen> ls
|      > | xemacs.exe
|      >
|      > You need to have ./ in the path. Or run ./xemacs.
| 
| I think you're wrong, maybe a 'which xemacs.exe' will do what you want.
| Remember cygwin != linux.

hmm but bash in cygwin, it is almost the same as bash in linux.. and
well my bashes automagically convert ls to ls.exe if I try it.. or did
I miss something?

        /Andy

-- 
 The eye of the beholder rests on the beauty!

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-24 17:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-23 20:13 More newbie questions, SSH and paths B. Joshua Rosen
2002-04-24  1:19 ` Andrew Markebo
2002-04-24  8:45   ` Marcos Lorenzo de Santiago
2002-04-24 11:27     ` Andrew Markebo

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).