LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to configure debian to run with cygwin (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-debian-to-run-with-cygwin-935298/)

alfi 03-19-2012 09:47 AM

How to configure debian to run with cygwin
 
Hi all,
I'll try to be very sintatic with my question.
Server side:
Linux intel 2.6.32-5-686 #1 SMP Mon Jan 16 16:04:25 UTC 2012 i686 GNU/Linux
gnome-desktop- 1:2.30+7
Client side:
Windows 7 Home Premium (64 bit)
CYGWIN_NT-61-WOW64
PuTTY 0.62

I mess around with the configuration and I managed to see x session using VNC,but I would like to see a real x session using ssh with CYGWin. I.e. I want to open x session from the Linux server and declare the Windows desktop as the display. I already did the configuration on Windows (set DISPLAY=127.0.0.1:0.0, PuTTY with X11 forwarding etc). I miss something on the linux side.
Please help by describing all relevant configuration.

Satyaveer Arya 03-19-2012 01:25 PM

Check these links: http://www.saltycrane.com/blog/2007/...-install-tips/
http://sourceware.org/cygwin-apps/package-server.html

theNbomr 03-19-2012 01:52 PM

All of your sintatic explanation still leaves it unclear what you are trying to accomplish. Are you trying to use the Linux host to see & use application running on the Windows host? Or, are you trying to use the Windows host to see & use applications running on the Linux host?

In the first case, you will need to use a remote desktop client on the Linux host. In the second case, you will need to install an X server on the Windows host.

---- rod.

alfi 03-19-2012 03:03 PM

Thanks to Satyaveer Arya and theNbomr for their answer.

I want to run Linux applications from my Windows 7 desktop.
Have installed CGYwin on my Windows desktop.
Can see X session on Linux while the screen was connected to it, but I have no screen for this system.
Can see X session over VNC (using tightVNC), on my Windows desktop.

Want to run Linux X from Windows desktop directly, not through VNC.
Hint - the display for the linux X session should be MY:0.0 (where MY is the ip of my desktop)

There must be some procedure how to start X session on Windows (for free...) like it can be done using commercial software as XManager of VanDyke.
What I need is a set of configuration (not installation).
can anyone help?

Thanks in advance

suicidaleggroll 03-19-2012 05:04 PM

I often use Xming to run X applications on a Linux host through Cygwin on Windows

alfi 03-19-2012 05:08 PM

Well I have found the answer in this forum, this is a bug.
http://www.linuxquestions.org/questions/linux-networking-3/x-forwarding-though-ssh-not-working-$display-not-set-879365/

Thanks for all your answers

alfi 03-20-2012 07:47 AM

Step by step instructions for X emulation
 
On Linux server:
. set server for X11 forwarding
. set server for TCP forwarding
. set server to allow X session to desired user

On Windows desktop:
. download and install PuTTY
. Open PuTTY (on windows desktop) and configure a session to your Linux server. Make sure to set on SSH X11 forwarding. Save the session as <PuTTY Session Name>
. Download and install Cygwin
. Add to the end of cygwin/home/<user name>/.bashrc the following lines: (don't care about the dos style)
export DISPLAY=127.0.0.1:0.0
X &
exit
. Create a text file with an extension .cmd with the following content:
cd C:\cygwin\home\<user name>
start C:\cygwin\bin\mintty.exe -
PING -n 2 127.0.0.1 >NUL
start c:\<path>\putty.exe -load "<PuTTY Session Name>"

. Now try to run the cmd file, it should bring you the PuTTY login on top of the Cygwin window. Login and try xcalc to verify proper configuration.

Good luck
Alfi


All times are GMT -5. The time now is 11:41 PM.