yash069 / puttycyg

Automatically exported from code.google.com/p/puttycyg
0 stars 0 forks source link

puttycyg with Xming? #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
is it possible to use Xming with puttycyg to run X-windows from the localhost 
(sort of like Cygwin/X functionality)?  I use putty w/ Xming for all remote 
hosts, and puttycyg for my cygwin terminal, but I'd like to enable X-windows 
on my (windows) desktop, as well.  is this possible?  

thanks

gabe

Original issue reported on code.google.com by roadnott...@gmail.com on 11 Dec 2009 at 7:25

GoogleCodeExporter commented 9 years ago
PuTTYcyg has nothing to do with X11.

I'm not sure what you mean by "enable X-windows on my (windows) desktop" .  If 
you want to be able to run Cygwin X11 programs 
(launching them from a PuTTYcyg terminal session) for display on your Xming 
server, simply export the DISPLAY variable, probably 
DISPLAY=":0".  You may additionally need to copy the auth cookie from wherever 
Xming stores it (see the Xming manual) to your Cygwin 
~/.Xauthority file.  See the man page for xauth(1).

Original comment by medgar123 on 12 Dec 2009 at 12:07

GoogleCodeExporter commented 9 years ago
Yes, you can set the "DISPLAY" variable *after* you start a window, but 
puttycyg should also support the ability to set it as part of a session/saved 
profile.  Putty already has the "SSH/X11" settings screen, but apparently 
cygterm won't make use of it.  What is needed is for the cygterm option to 
check that setting, and if it is checked, set that variable in the window.

Original comment by j.e.laba...@gmail.com on 29 Mar 2011 at 9:17

GoogleCodeExporter commented 9 years ago
The SSH/X11 settings apply only to SSH connections.  If you want DISPLAY set, 
then just put it in your .bashrc, or if you really need PuTTY to set it for 
you, use this as your Cygterm command:

env DISPLAY=:0 bash --login

Original comment by medgar123 on 30 Mar 2011 at 11:10