This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Problem opening another window.
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: minghai99 at yahoo dot com, cygwin-xfree at cygwin dot com
- Date: Thu, 9 Mar 2006 23:02:05 -0500 (EST)
- Subject: Re: Problem opening another window.
- References: <20060310033624.19068.qmail@web32907.mail.mud.yahoo.com>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
On Thu, 9 Mar 2006, Ming Hai Lim wrote:
> Hi all,
>
> I'm running into some problems opening a window. I
> startx and telnet into a Unix machine, then I issue a
> command which would generate another window. But this
> fails. Can someone please advise? Below are the
> steps I take.
>
> 1) /usr/X11R6/bin/startxwin.bat - Starting on Windows
> NT/2000/XP/2003
> 2) telnet 140.87.21.10
Consider using ssh with X forwarding instead.
> 3) setenv DISPLAY 192.168.1.100:0.0 (its a csh)
Assuming for the moment that 192.168.1.100 (which is a private IP) is
reachable from 140.87.21.10 (unlikely, as you're probably doing some sort
of NAT in between), you'll need to run "xhost + 140.87.21.10" before
telnetting to allow connections from your target machine to your local X
server. However, you're much better off with "ssh -Y", which doesn't need
any extra authorization procedures beyond ssh itself (and will even set
DISPLAY appropriately on the remote machine).
> 4) run command "ade tkvtree ." which if I'm sitting at
> the actual Unix box will pop open another window.
> 5) Get error message: couldn't connect to display
> "192.168.1.100:0.0" at
> /usr/local/nde/ade/bin/perl/cpan_modules/solaris/Tk/MainWindow.pm
> line 55.
> MainWindow->new() at
> /usr/local/nde/ade/bin/perl/TkvtreeMain.pm line 72
>
> I've also tried setting DISPLAY to
> 127.0.0.1:0.0 but got the same error message.
Heh, here you tried to connect to the local X server on the machine you're
telnetting to.
Do try ssh. You don't have to set the DISPLAY on the remote machine, or
run "xhost" locally -- just "ssh -Y 140.87.21.10" and then "ade tkvtree ."
(which you can also combine into one command [!]).
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"
--
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/