Help with exporting DISPLAY from Linux to Windows XP

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Help with exporting DISPLAY from Linux to Windows XP
# 1  
Old 01-20-2011
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...
# 2  
Old 01-20-2011
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.
# 3  
Old 01-20-2011
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
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.
# 5  
Old 01-20-2011
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.
# 6  
Old 01-20-2011
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.
# 7  
Old 01-21-2011
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Seen Windows pc, having all the features of Linux, could exe, read and edit save like windows

Hi, totally new to linux base using windows when started learning and using computers. but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies

2. Solaris

Problem exporting NFS filesysytem with root permissions to Linux

Hi, I have a Solaris 10 server and I want to export a filesystem to a linux client and give the client's root user root priviliges on the filesystem. The client is an ubuntu 14.04 LTS server. the dfstab on the server looks lik this: /usr/sbin/share -F nfs -o ... (1 Reply)
Discussion started by: nvanvliet
1 Replies

3. Solaris

Exporting display to windows machine

hello all, I have been googling alot about my problem and finally thought to post a question. server: SunOS 5.1 64bit pn Sun Netra 240 i need to run an application which shows a gui tool but i believe SunOS cant show the GUI so i need to export the display to my system which is running... (3 Replies)
Discussion started by: wonderwall
3 Replies

4. UNIX for Advanced & Expert Users

X Windows display

Hello Folks, Have X-Win 32 installed on my desktop. Earlier when it used to be XP, ran the following commands on unix system: export DISPLAY=<desktop ip>:0.0 xterm Above used to work like charm Now it got upgraded to Windows 7 Setting the display & triggering xterm doesn't work. It... (8 Replies)
Discussion started by: vibhor_agarwali
8 Replies

5. Linux

What's better for running Windows software in Linux, Wine or Windows VMware?

What are the differences, advantages, and disadvantages? (1 Reply)
Discussion started by: Advice Pro
1 Replies

6. UNIX for Dummies Questions & Answers

Exporting Files from Unix to a Windows Platform

I was able to convert my csv file in Unix to xls. I would like to export the converted xls file to a windows environment. I have to manually connect using the following below: ftp: 192.x.x.x -> username/pass -> cd -> mget *.xls and then confirm. Could I automate this process into a shell... (4 Replies)
Discussion started by: ravzter
4 Replies

7. Solaris

Exporting X display question

I have a sun box i can connect to using exceed in broadcast or query mode. I have been using passive mode to call up just a few apps, xcalc for example. How do i get the solaris 9 user login screen using passive mode? is it dtlogin or something that im should run frmo the shell? (0 Replies)
Discussion started by: BG_JrAdmin
0 Replies

8. UNIX for Advanced & Expert Users

How to open display from windows to solaris?

How can I telnet from my windows XP machine to my Ultra 60 and run firefox? I am unable to open the display using /usr/openwin/bin/xhost like I do from one Sun machine to another? Thanks (2 Replies)
Discussion started by: ridgeback00
2 Replies

9. UNIX for Dummies Questions & Answers

exporting display

how do I export my display from my unix box to my pc basically what is the syntax for export DISPLAY (2 Replies)
Discussion started by: csaunders
2 Replies
Login or Register to Ask a Question