Help with exporting DISPLAY from Linux to Windows XP | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Help with exporting DISPLAY from Linux to Windows XP

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-20-2011
oopsalion oopsalion is offline
Registered User
 
Join Date: Jan 2011
Last Activity: 27 May 2011, 9:12 AM EDT
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Help with exporting DISPLAY from Linux to Windows XP

Hi Experts,

I am using Cygwin and Xming server to bring back the display from Linux to a Windows machine.

I am following the below steps :-

1. Close down all X Servers
2. Run XMing – XLaunch
3. Select Multiple
4. Select Start no clients
5. Tick No Access Control box
6. Click Finish
7. X Server starts and you should see icon in tray
8. Run Putty/SSH in Cygwin
9. SSH to server you want to connect to
10. Enter: export DISPLAY=192.168.0.1:0.0 (replace 192.168.0.1 with your IP)
11. Run dbca.

On using similar steps i can bring back the display from some Linux servers, but not from others, can you please let me know what the problem is and what things i need to verify.

I am not getting any error, some of the last lines from the message in the log states :-

winProcEstablishConnection - winInitClipboard returned.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - Hello
DetectUnicodeSupport - Windows XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.


I did a grep X11 /etc/ssh/* the result is as following :-

/etc/ssh/ssh_config:ForwardX11 yes
grep: can't open /etc/ssh/ssh_host_dsa_key
grep: can't open /etc/ssh/ssh_host_rsa_key
/etc/ssh/sshd_config:# X11 tunneling options
/etc/ssh/sshd_config:X11Forwarding yes
/etc/ssh/sshd_config:X11DisplayOffset 10
/etc/ssh/sshd_config:X11UseLocalhost yes


Your help wud be highly appreciated...
Sponsored Links
    #2  
Old 01-20-2011
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 15 September 2014, 7:56 PM EDT
Location: Saskatchewan
Posts: 19,352
Thanks: 786
Thanked 3,254 Times in 3,050 Posts
Are some of these servers on your local network and others not?

192.168.0.1 is not your internet IP address, just your local, internal address, because you're behind NAT. Anything that's not on the same local net as you won't have any idea where 192.168.0.1 is. You'd need to forward the appropriate ports on your router to you, and export the router's address.
Sponsored Links
    #3  
Old 01-20-2011
oopsalion oopsalion is offline
Registered User
 
Join Date: Jan 2011
Last Activity: 27 May 2011, 9:12 AM EDT
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
192.168.0.1 was just an example, i am exporting it to a different ip.

I believe there are some more settings on the Linux machine (maybe the firewall) which are not allowing me to forward the display, so i would want to know what... as there are some servers in my network from which i can bring back the display
    #4  
Old 01-20-2011
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 15 September 2014, 7:56 PM EDT
Location: Saskatchewan
Posts: 19,352
Thanks: 786
Thanked 3,254 Times in 3,050 Posts
I still don't know for sure you have a real, external IP address, just that you don't have that particular internal IP address. That could explain some things if it isn't. If it's 192.168.x.x, 172.16.x.x, or 10.x.x.x, then it's internal.

How the firewall is configured varies from distro to distro and program to program, though it's all iptables in the end. iptables-dump as root should print the current firewall configuration. Usually though, a firewall would be more diligent in preventing things from connecting to the server than stopping the server from connecting to arbitrary things. A really paranoid firewall could do both of course.
Sponsored Links
    #5  
Old 01-20-2011
oopsalion oopsalion is offline
Registered User
 
Join Date: Jan 2011
Last Activity: 27 May 2011, 9:12 AM EDT
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
ok, my ip is 192.168.99.73 i can definately send over the result for iptables-dump but tomm as m home at the moment, but i m really thankful to u for looking into this as i need to resolve the issue at the earliest...

Thanks a ton.
Sponsored Links
    #6  
Old 01-20-2011
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 15 September 2014, 7:56 PM EDT
Location: Saskatchewan
Posts: 19,352
Thanks: 786
Thanked 3,254 Times in 3,050 Posts
192.168.99.73 is also an internal IP address as stated above. You didn't need to obscure it, it started obscure, nothing except things on your local network know what it is. So, for servers that aren't, you need to

1) have things connect to your external ip address, i.e. your router's WAN address
2) have your router forward the appropriate port to the internal address 192.168.99.73

You may also want to make sure the router's set to always give you 192.168.99.73, otherwise, the port forwarding might break every time you get a new address.
Sponsored Links
    #7  
Old 01-21-2011
oopsalion oopsalion is offline
Registered User
 
Join Date: Jan 2011
Last Activity: 27 May 2011, 9:12 AM EDT
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Going Further, I would want to state that my Windows XP IP is 192.168.99.73 and the ip for the Linux box is 192.168.104.34, they are on the same network but different sub net.

The thing is that there is another Linux machine again on a different subnet but I can very easily export my Display onto the same Windows XP machine. If still the solution might be as what you say, could you please let me know how I can go about it.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Exporting display from a Solaris server to my Linux laptop DNT Linux 11 08-02-2010 09:23 AM
Exporting Files from Unix to a Windows Platform ravzter UNIX for Dummies Questions & Answers 4 09-02-2008 10:58 AM
Exporting X display question BG_JrAdmin Solaris 0 10-07-2005 05:54 PM
How to open display from windows to solaris? ridgeback00 UNIX for Advanced & Expert Users 2 04-27-2005 12:05 AM
exporting display csaunders UNIX for Dummies Questions & Answers 2 04-23-2004 03:06 PM



All times are GMT -4. The time now is 08:53 PM.