LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-19-2012, 09:47 AM   #1
alfi
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 03-19-2012, 01:25 PM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Check these links: http://www.saltycrane.com/blog/2007/...-install-tips/
http://sourceware.org/cygwin-apps/package-server.html
 
1 members found this post helpful.
Old 03-19-2012, 01:52 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
Old 03-19-2012, 03:03 PM   #4
alfi
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy

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
 
Old 03-19-2012, 05:04 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,508

Rep: Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102Reputation: 2102
I often use Xming to run X applications on a Linux host through Cygwin on Windows
 
Old 03-19-2012, 05:08 PM   #6
alfi
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-20-2012, 07:47 AM   #7
alfi
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run an application after compileng it using Cygwin? nwar General 2 06-02-2011 04:32 PM
syntax error on running configure file in cygwin sugan General 1 10-08-2010 01:34 AM
Install, configure and run mail server on Debian konzo Linux - Software 2 09-22-2010 06:25 AM
how to configure Cygwin on passive mode naw_deepak Linux - Software 2 12-26-2008 05:35 AM
How to run cygwin-X? bruno buys Linux - Software 2 09-16-2004 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration