unable to use x forwading from cygwin shell

View: New views
10 Messages — Rating Filter:   Alert me  

unable to use x forwading from cygwin shell

by mnedai :: Rate this Message:

| View Threaded | Show Only this Message

1. installed cygwin on xp sp2
2. started shell
3. ssh -Y -p 22 oracle@sand1
4. export DISPLAY=localhost:0.0
5. no error (just exit code) application did not start
6. $ net helpmsg 53

The network path was not found.

7. run cygcheck -s -v -r > cygcheck.out
cygcheck.out

Re: unable to use x forwading from cygwin shell

by Brett Serkez-2 :: Rate this Message:

| View Threaded | Show Only this Message

Try -X instead of -Y...

On Wed, Jul 30, 2008 at 12:56 PM, mnedai <mnedai@...> wrote:

>
> 1. installed cygwin on xp sp2
> 2. started shell
> 3. ssh -Y -p 22 oracle@sand1
> 4. export DISPLAY=localhost:0.0
> 5. no error (just exit code) application did not start
> 6. $ net helpmsg 53
>
> The network path was not found.
>
> 7. run cygcheck -s -v -r > cygcheck.out
> http://www.nabble.com/file/p18720084/cygcheck.out cygcheck.out
> --
> View this message in context: http://www.nabble.com/unable-to-use-x-forwading-from-cygwin-shell-tp18720084p18720084.html
> Sent from the cygwin-xfree mailing list archive at Nabble.com.
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://x.cygwin.com/docs/
> FAQ:                   http://x.cygwin.com/docs/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Re: unable to use x forwading from cygwin shell

by Larry Hall (Cygwin X) :: Rate this Message:

| View Threaded | Show Only this Message

mnedai wrote:
> 1. installed cygwin on xp sp2
> 2. started shell
> 3. ssh -Y -p 22 oracle@sand1
> 4. export DISPLAY=localhost:0.0
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Don't do this.  'ssh -X' and 'ssh -Y' set DISPLAY properly if the X-server
is running on your local system.

> 5. no error (just exit code) application did not start
> 6. $ net helpmsg 53
>
> The network path was not found.

Sounds like the classic symptom of a missing needed DLL.  Run
'cygcheck ssh' on your local system to find the DLL(s) that's missing.
Then install the package(s) with the needed DLL(s).

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 429-6305 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Re: unable to use x forwading from cygwin shell

by mnedai :: Rate this Message:

| View Threaded | Show Only this Message

Larry, thanks a lot. I read your answers to the other similar posting, and this is the reason I collected the information below.
I'm trying to figure out how to map dlls to the packages, but this is what what I got when runnning:
mchapiro@ciber-2863399a4 ~
$ cygcheck ssh
Found: C:\cygwin\bin\ssh.exe
C:\cygwin\bin\ssh.exe
  C:\cygwin\bin\cygcrypto-0.9.8.dll
    C:\cygwin\bin\cygwin1.dll
      C:\WINDOWS\system32\ADVAPI32.DLL
        C:\WINDOWS\system32\ntdll.dll
        C:\WINDOWS\system32\KERNEL32.dll
        C:\WINDOWS\system32\RPCRT4.dll
          C:\WINDOWS\system32\Secur32.dll
  C:\cygwin\bin\cygminires.dll
  C:\cygwin\bin\cygz.dll

Larry Hall (Cygwin X) wrote:
mnedai wrote:
> 1. installed cygwin on xp sp2
> 2. started shell
> 3. ssh -Y -p 22 oracle@sand1
> 4. export DISPLAY=localhost:0.0
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Don't do this.  'ssh -X' and 'ssh -Y' set DISPLAY properly if the X-server
is running on your local system.

> 5. no error (just exit code) application did not start
> 6. $ net helpmsg 53
>
> The network path was not found.

Sounds like the classic symptom of a missing needed DLL.  Run
'cygcheck ssh' on your local system to find the DLL(s) that's missing.
Then install the package(s) with the needed DLL(s).

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 429-6305 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

Re: unable to use x forwading from cygwin shell

by mnedai :: Rate this Message:

| View Threaded | Show Only this Message

other thing, I use yout method and set up DISPLAY on my local xserver:
$ ssh -X -p 22 oracle@sandbox1
oracle@sandbox1's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Tue Jul 29 14:44:10 2008 from ciber-2863399a4.dcciber.com

sandbox1*sand1-/home/oracle
1001$ xclock &
[1] 30439

sandbox1*sand1-/home/oracle
1002$ connect localhost port 6000: Connection refused
X connection to localhost:10.0 broken (explicit kill or server shutdown).

[1]+  Exit 1                  xclock

sandbox1*sand1-/home/oracle
1002$

ote author="mnedai">
Larry, thanks a lot. I read your answers to the other similar posting, and this is the reason I collected the information below.
I'm trying to figure out how to map dlls to the packages, but this is what what I got when runnning:
mchapiro@ciber-2863399a4 ~
$ cygcheck ssh
Found: C:\cygwin\bin\ssh.exe
C:\cygwin\bin\ssh.exe
  C:\cygwin\bin\cygcrypto-0.9.8.dll
    C:\cygwin\bin\cygwin1.dll
      C:\WINDOWS\system32\ADVAPI32.DLL
        C:\WINDOWS\system32\ntdll.dll
        C:\WINDOWS\system32\KERNEL32.dll
        C:\WINDOWS\system32\RPCRT4.dll
          C:\WINDOWS\system32\Secur32.dll
  C:\cygwin\bin\cygminires.dll
  C:\cygwin\bin\cygz.dll

Larry Hall (Cygwin X) wrote:
mnedai wrote:
> 1. installed cygwin on xp sp2
> 2. started shell
> 3. ssh -Y -p 22 oracle@sand1
> 4. export DISPLAY=localhost:0.0
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Don't do this.  'ssh -X' and 'ssh -Y' set DISPLAY properly if the X-server
is running on your local system.

> 5. no error (just exit code) application did not start
> 6. $ net helpmsg 53
>
> The network path was not found.

Sounds like the classic symptom of a missing needed DLL.  Run
'cygcheck ssh' on your local system to find the DLL(s) that's missing.
Then install the package(s) with the needed DLL(s).

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 429-6305 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Re: unable to use x forwading from cygwin shell

by Larry Hall (Cygwin X) :: Rate this Message:

| View Threaded | Show Only this Message

mnedai wrote:

> other thing, I use yout method and set up DISPLAY on my local xserver:
> $ ssh -X -p 22 oracle@sandbox1
> oracle@sandbox1's password:
> Warning: No xauth data; using fake authentication data for X11 forwarding.
> Last login: Tue Jul 29 14:44:10 2008 from ciber-2863399a4.dcciber.com
>
> sandbox1*sand1-/home/oracle
> 1001$ xclock &
> [1] 30439
>
> sandbox1*sand1-/home/oracle
> 1002$ connect localhost port 6000: Connection refused
> X connection to localhost:10.0 broken (explicit kill or server shutdown).

Sounds like you have a firewall blocking port 6000.

> [1]+  Exit 1                  xclock
>
> sandbox1*sand1-/home/oracle
> 1002$
>
> ote author="mnedai">
> Larry, thanks a lot. I read your answers to the other similar posting, and
> this is the reason I collected the information below.
> I'm trying to figure out how to map dlls to the packages, but this is what
> what I got when runnning:
> mchapiro@ciber-2863399a4 ~
> $ cygcheck ssh
> Found: C:\cygwin\bin\ssh.exe
> C:\cygwin\bin\ssh.exe
>   C:\cygwin\bin\cygcrypto-0.9.8.dll
>     C:\cygwin\bin\cygwin1.dll
>       C:\WINDOWS\system32\ADVAPI32.DLL
>         C:\WINDOWS\system32\ntdll.dll
>         C:\WINDOWS\system32\KERNEL32.dll
>         C:\WINDOWS\system32\RPCRT4.dll
>           C:\WINDOWS\system32\Secur32.dll
>   C:\cygwin\bin\cygminires.dll
>   C:\cygwin\bin\cygz.dll

Actually, this looks fine.  Given that you got further with your attempt
above, I'm assuming that the original complaint was related to the setting
of DISPLAY before.  If you were missing a DLL here, 'cygcheck' would
complain about the one(s) it wanted but couldn't find.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 429-6305 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Re: unable to use x forwading from cygwin shell

by Sylvain RICHARD-2 :: Rate this Message:

| View Threaded | Show Only this Message

mnedai wrote:

> other thing, I use yout method and set up DISPLAY on my local xserver:
> $ ssh -X -p 22 oracle@sandbox1
> oracle@sandbox1's password:
> Warning: No xauth data; using fake authentication data for X11 forwarding.
> Last login: Tue Jul 29 14:44:10 2008 from ciber-2863399a4.dcciber.com
>
> sandbox1*sand1-/home/oracle
> 1001$ xclock &
> [1] 30439
>
> sandbox1*sand1-/home/oracle
> 1002$ connect localhost port 6000: Connection refused
> X connection to localhost:10.0 broken (explicit kill or server shutdown).
>
> [1]+  Exit 1                  xclock
>
> sandbox1*sand1-/home/oracle
> 1002$
>  
Just to be sure,
- Do you have an X server running before calling ssh? There should be an
X icon in the system tray. How did you start the server (startx,
startxwin.bat/.sh or XWin)?
- Are you calling ssh from an xterm? What does echo $DISPLAY return
before calling ssh? And after?

Best of luck

Sylvain

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Re: unable to use x forwading from cygwin shell

by mnedai :: Rate this Message:

| View Threaded | Show Only this Message

I've installed all the x packages again.
xterm and xclock from the bash cygwin gviving error:
$ Error: Can't open display: localhost:10.0

[1]+  Exit 1                  xclock

Sylvain RICHARD-2 wrote:
mnedai wrote:
> other thing, I use yout method and set up DISPLAY on my local xserver:
> $ ssh -X -p 22 oracle@sandbox1
> oracle@sandbox1's password:
> Warning: No xauth data; using fake authentication data for X11 forwarding.
> Last login: Tue Jul 29 14:44:10 2008 from ciber-2863399a4.dcciber.com
>
> sandbox1*sand1-/home/oracle
> 1001$ xclock &
> [1] 30439
>
> sandbox1*sand1-/home/oracle
> 1002$ connect localhost port 6000: Connection refused
> X connection to localhost:10.0 broken (explicit kill or server shutdown).
>
> [1]+  Exit 1                  xclock
>
> sandbox1*sand1-/home/oracle
> 1002$
>  
Just to be sure,
- Do you have an X server running before calling ssh? There should be an
X icon in the system tray. How did you start the server (startx,
startxwin.bat/.sh or XWin)?
- Are you calling ssh from an xterm? What does echo $DISPLAY return
before calling ssh? And after?

Best of luck

Sylvain

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

Re: unable to use x forwading from cygwin shell

by Larry Hall (Cygwin X) :: Rate this Message:

| View Threaded | Show Only this Message

On 07/30/2008, mnedai wrote:
> I've installed all the x packages again. xterm and xclock from the bash
> cygwin gviving error: $ Error: Can't open display: localhost:10.0 [1]+ Exit
> 1 xclock

Again, I think the question is, have you started the Cygwin-X server?
Without it running on your local machine, you're likely to see allot
of the problems you've been reporting.

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 429-6305 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Re: unable to use x forwading from cygwin shell

by mnedai :: Rate this Message:

| View Threaded | Show Only this Message

Larry, thanks a lot, you saved my time. It's working now. - Michael
Larry Hall (Cygwin X) wrote:
On 07/30/2008, mnedai wrote:
> I've installed all the x packages again. xterm and xclock from the bash
> cygwin gviving error: $ Error: Can't open display: localhost:10.0 [1]+ Exit
> 1 xclock

Again, I think the question is, have you started the Cygwin-X server?
Without it running on your local machine, you're likely to see allot
of the problems you've been reporting.

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 429-6305 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/