Re: cygwin x11

2006-02-22 Thread David Boyes
 xinit
 twm 
 xhost +

This lets anyone on the planet connect to your X server and register to
receive X events, including keystrokes and mouse movements.

I'd strongly suggest being a little more restrictive in what hosts you
allow to connect ('xhost +' turns off host authentication entirely). 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-22 Thread John Summerfied

shogunx wrote:

On Tue, 21 Feb 2006, Bruce Gui wrote:



does any one know how to install a application with graphic interface by
cygwin (local) and x11 (remote)?

I only know on localhost these steps should be done:
start cygwin
xinit
twm
netstat -a (listening on TCP port 6000)



if you have X11 forwarding set to yes in /etc/ssh/sshd_config on the
remote host, you can simply ssh -X $HOSTNAME, and remote X11 applications
will be displayed locally.  alternatively, if there is sufficient
bandwidth on both ends, and you have gdm, kdm, gdm or the like running on
the remote host, you can X -query $HOSTNAME, instead of twm, and get a
full X11 session on the remote host.
be careful to watch the security around the latter method.



but on remote host, what should I do?


You could also run vnc on the Linux bos, and that gives you the choice
of vnc clients on Windows (there are several) and using any java-capable
web browser.




--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-22 Thread shogunx
it amazes me how many times that particular wheel has been reinvented.


On Wed, 22 Feb 2006, John Summerfied wrote:

 shogunx wrote:
  On Tue, 21 Feb 2006, Bruce Gui wrote:
 
 
 does any one know how to install a application with graphic interface by
 cygwin (local) and x11 (remote)?
 
 I only know on localhost these steps should be done:
 start cygwin
 xinit
 twm
 netstat -a (listening on TCP port 6000)
 
 
  if you have X11 forwarding set to yes in /etc/ssh/sshd_config on the
  remote host, you can simply ssh -X $HOSTNAME, and remote X11 applications
  will be displayed locally.  alternatively, if there is sufficient
  bandwidth on both ends, and you have gdm, kdm, gdm or the like running on
  the remote host, you can X -query $HOSTNAME, instead of twm, and get a
  full X11 session on the remote host.
  be careful to watch the security around the latter method.
 
 
 but on remote host, what should I do?

 You could also run vnc on the Linux bos, and that gives you the choice
 of vnc clients on Windows (there are several) and using any java-capable
 web browser.




 --

 Cheers
 John

 -- spambait
 [EMAIL PROTECTED]  [EMAIL PROTECTED]
 Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

 do not reply off-list

 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390


sleekfreak pirate broadcast
http://sleekfreak.ath.cx:81/

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-22 Thread Rob van der Heij
On 2/22/06, shogunx [EMAIL PROTECTED] wrote:

 it amazes me how many times that particular wheel has been reinvented.

Poor guidance is as popular on the Internet as proper recommendations.
And in case you wonder, my estimate for the half life of any
information on Internet is 10 years.

Rob
--
Rob van der Heij

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-22 Thread shogunx
On Wed, 22 Feb 2006, Rob van der Heij wrote:

 On 2/22/06, shogunx [EMAIL PROTECTED] wrote:

  it amazes me how many times that particular wheel has been reinvented.

 Poor guidance is as popular on the Internet as proper recommendations.

The same can be said of most other forms of communication.

 And in case you wonder, my estimate for the half life of any
 information on Internet is 10 years.

How do you arrive at your estimate?


 Rob
 --
 Rob van der Heij

 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390


sleekfreak pirate broadcast
http://sleekfreak.ath.cx:81/

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-22 Thread Rob van der Heij
On 2/22/06, shogunx [EMAIL PROTECTED] wrote:

  And in case you wonder, my estimate for the half life of any
  information on Internet is 10 years.

 How do you arrive at your estimate?

When I was searching for information about something introduced 10
years ago, about half of the links were dead or incorrect ;-)

--
Rob van der Heij
Velocity Software, Inc

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-21 Thread McKown, John
 -Original Message-
 From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On 
 Behalf Of Bruce Gui
 Sent: Tuesday, February 21, 2006 12:49 AM
 To: LINUX-390@VM.MARIST.EDU
 Subject: cygwin  x11
 
 
 does any one know how to install a application with graphic 
 interface by cygwin (local) and x11 (remote)?
 
 I only know on localhost these steps should be done:
 start cygwin
 xinit
 twm
 netstat -a (listening on TCP port 6000)
 
 but on remote host, what should I do?
 
 Best Regards,
 
 Bruce Gui
 
 IBM Global Resource Delivery China

Bruce,

Since you said cygwin, I take it that the local system is Windows.
If so, I strongly suggest getting PuTTY at
http://www.chiark.greenend.org.uk/~sgtatham/putty/ . It does both Telnet
and SSH. Then set up PuTTY to do X forwarding. This will set up
everything to come to your desktop via an encrypted back channel. The
PuTTY documentation is fairly good about explaining this, if you are not
familiar with it. Or just ask here again. You'll have a normal BASH
shell when PuTTY connects. You can get an xterm by simply entering
xterm . 

Now for the method that will likely get me flamed a bit. If you are
running over a LAN and are not really concerned about somebody
sniffing your connection (like a wire tape), then you could simply use
Windows' telnet to connect to the remote Linux system. Once there, enter
the command:

export DISPLAY=your.windows.ip.address:0.0

Replace your.windows.ip.address with the IP address of your desktop.
Leave the :0.0 portion as is. 

This is totally insecure and not recommended. But I'll include it for
completeness sake and hope that the security people are relatively kind
to me and only call me foolish.


--
John McKown
Senior Systems Programmer
UICI Insurance Center
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-21 Thread Bruce Gui
Thank you.

yes, the local system is Windows, and I use PuTTY to connect to remote
Linux via SSH. X forwarding is enabled.
but when I enter xterm , the remote host display:

Xlib: connection to mylocalIPaddr:0.0 refused by server
Xlib: No protocol specified
xterm Xt error: Can't open display: mylocalIPaddr:0.0xterm .

if i modify $DISPLAY to localhost:0.0, then xterm Xt error: Can't open
display: localhost:0.0 appears when i issue xterm

I remember there should be a listening port 6010 on the remote host, and
DISPLAY=localhost:0.0, that's to say: the local cygwin is a X11-server,
the remote host is a X11-client, remote host connect its port 6010 to
local host's port 6000, so
the display on the remote host will be redirected to local host.


Best Regards,

Bruce Gui

IBM Global Resource Delivery China
pan-IOT Europe Integrated Delivery Center - Platform Support Mainframe
E-mail:[EMAIL PROTECTED]




McKown, John [EMAIL PROTECTED]
Sent by: Linux on 390 Port LINUX-390@VM.MARIST.EDU
02/22/2006 12:03 AM
Please respond to
Linux on 390 Port


To
LINUX-390@VM.MARIST.EDU
cc

Subject
Re: cygwin  x11






 -Original Message-
 From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On
 Behalf Of Bruce Gui
 Sent: Tuesday, February 21, 2006 12:49 AM
 To: LINUX-390@VM.MARIST.EDU
 Subject: cygwin  x11


 does any one know how to install a application with graphic
 interface by cygwin (local) and x11 (remote)?

 I only know on localhost these steps should be done:
 start cygwin
 xinit
 twm
 netstat -a (listening on TCP port 6000)

 but on remote host, what should I do?

 Best Regards,

 Bruce Gui

 IBM Global Resource Delivery China

Bruce,

Since you said cygwin, I take it that the local system is Windows.
If so, I strongly suggest getting PuTTY at
http://www.chiark.greenend.org.uk/~sgtatham/putty/ . It does both Telnet
and SSH. Then set up PuTTY to do X forwarding. This will set up
everything to come to your desktop via an encrypted back channel. The
PuTTY documentation is fairly good about explaining this, if you are not
familiar with it. Or just ask here again. You'll have a normal BASH
shell when PuTTY connects. You can get an xterm by simply entering
xterm .

Now for the method that will likely get me flamed a bit. If you are
running over a LAN and are not really concerned about somebody
sniffing your connection (like a wire tape), then you could simply use
Windows' telnet to connect to the remote Linux system. Once there, enter
the command:

export DISPLAY=your.windows.ip.address:0.0

Replace your.windows.ip.address with the IP address of your desktop.
Leave the :0.0 portion as is.

This is totally insecure and not recommended. But I'll include it for
completeness sake and hope that the security people are relatively kind
to me and only call me foolish.


--
John McKown
Senior Systems Programmer
UICI Insurance Center
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-21 Thread David Boyes
 
 Xlib: connection to mylocalIPaddr:0.0 refused by server
 [snip]
 xterm Xt error: Can't open display: mylocalIPaddr:0.0xterm .

You have to tell the X server to allow connections from the remote
system. See man page for xhost. Xhost must be run from the machine
running the X server (your desktop system). 

 if i modify $DISPLAY to localhost:0.0, then xterm Xt 
 error: Can't open
 display: localhost:0.0 appears when i issue xterm

This will only work if the client is running on the same system as the X
server and 'xhost +localhost' has been run. Since your Linux on Z guest
does not run a X server (if it is, why are you wasting all those cycles
when you don't have a display to manage?) this will always fail. 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-21 Thread Rick Troth
Bruce ...

I run CYGWIN all the time,  and mostly for X
(since the company-provided machine is Windoze).
When I do this,  I don't necessarily use PuTTY,
but I do often use SSH tunneling  (which both PuTTY
and OpenSSH supposedly provide).

If you don't need the tunnel,  then don't use it
and connect directly to the CYGWIN system.   But for this,
you MUST allow remote access.

Here is a script I run that brings up X on CYGWIN
and takes it down again when I exit a controlling window.

# clean-up from the previous run
# (sometimes I get permission denied on this)
rm -f /tmp/XWin.log

# start X, and redirect for silence
XWin -ac -emulate3buttons -multiwindow
0/dev/null 1/dev/null 2/dev/null 

# recover process-ID of X to kill it cleanly later
XPID=$!

# wait for X to come up and settle
sleep 3

# set DISPLAY for this workstation
DISPLAY=127.0.0.1:0 ; export DISPLAY

# load my personal defaults
cat $HOME/.Xdefaults | xrdb -merge

# start an XTERM (this is the session master)
xterm

# when XTERM quits, we take down X
kill $XPID

-- R;

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-21 Thread Bruce Gui
Hi all,

I got a another method to do it.

start cygwin on windows box:
xinit
twm 
xhost +

connect to remote linux box by PuTTY( enable X11 Forwarding)
   export DISPLAY=localip:0.0
   xterm 

That's it.

Best Regards,

Bruce Gui

IBM Global Resource Delivery China
pan-IOT Europe Integrated Delivery Center - Platform Support Mainframe
E-mail:[EMAIL PROTECTED]

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-21 Thread Vic Cross

Bruce Gui wrote:


yes, the local system is Windows, and I use PuTTY to connect to remote
Linux via SSH. X forwarding is enabled.



X forwarding may be disabled on the host to which you are connecting...


but when I enter xterm , the remote host display:

Xlib: connection to mylocalIPaddr:0.0 refused by server
Xlib: No protocol specified
xterm Xt error: Can't open display: mylocalIPaddr:0.0xterm .

if i modify $DISPLAY to localhost:0.0, then xterm Xt error: Can't open
display: localhost:0.0 appears when i issue xterm



If X11Forwarding is working correctly through SSH, you should need to
make no changes at all to DISPLAY.  This is part of what SSH does for
you.  You can verify this by:

 echo $DISPLAY
localhost:10.0

The number may be greater than 10, but is definitely not 0...


I remember there should be a listening port 6010 on the remote host, and
DISPLAY=localhost:0.0, that's to say: the local cygwin is a X11-server,
the remote host is a X11-client, remote host connect its port 6010 to
local host's port 6000, so
the display on the remote host will be redirected to local host.



If there is not a listening port on the remote host that corresponds
with your SSH session, then the server is not setting up its end of the
X forwarding connection: either it is rejecting your SSH client's
request because of configuration (sshd_config does not say
X11Forwarding yes, since the default is no) or some other problem
exists at the server.

X display ports start at TCP port 6000.  By default SSH starts
allocating display numbers for forwarding starting at 10, which is why
you see port 6010 tunelled through to your SSH client if your DISPLAY
variable says :10.0.  Because you may not be the first person to tunnel
X via SSH on that host, you must always let SSH handle it for you (if
you are the second, for example, you will get display number 11 and TCP
6011 will be tunnelled to you).

If a TCP X display port is open against your sshd process but your
DISPLAY variable doesn't correspond, check your shell profile scripts
(/etc/profile, ~/.bash_profile, etc) for a command that sets DISPLAY.

Cheers,
Vic Cross

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: cygwin x11

2006-02-21 Thread Rob van der Heij
On 2/22/06, Vic Cross [EMAIL PROTECTED] wrote:

 If X11Forwarding is working correctly through SSH, you should need to
 make no changes at all to DISPLAY.  This is part of what SSH does for
 you.  You can verify this by:

The other part of the magic performed by SSH during X11 Forwarding is
that an authentication token is generated and XAUTH (?) environment
variable is set up to authenticate through that. IIRC it is possible
to miss installing the SuSE package that allows the ssh session to do
this.

Rob
--
Rob van der Heij
Velocity Software, Inc

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390