X Windows display


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users X Windows display
# 1  
Old 06-05-2013
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:
Code:
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 error's out saying:
Code:
Error: Can't open display: <desktop id>:0.0

Is there anything specific that needs to be done for Windows 7.
Advice please.

Update:
Just tried on a friend's system running Windows XP.
It worked perfect.

Thoughts what additional things do I need to do for Windows 7?

---------- Post updated at 02:45 PM ---------- Previous update was at 11:47 AM ----------

Had to enable X11 forwarding in putty.

Query:
Thoughts on why this X11 forwarding is required with Windows 7 & not earlier in XP?

Last edited by radoulov; 06-07-2013 at 06:11 AM..
# 2  
Old 06-05-2013
It sounds like the Windows 7 firewall killed the x11 direct connections. You can test with telnet on other hosts, as 0.0 is port 6000: telnet desktop_id 6000 should connect. It may be windows firewall, or a Norton or Mcafee one, or both.

The putty makes it more secure, as the X goes through the putty SSH tunnel.

I prefer VNC for X, so the desktop is not on the PC, it is local to the apps, and you just run a vncviewer. You can run it through a tunnel, too: port 5900 supports remote 0:0 port 6000, 5901 for 6001, etc. You do not lose all X apps every time the PC is rebooted or network breaks.
# 3  
Old 06-06-2013
Hmm, that will require some digging into Windows 7 firewall with respect to XP.
Let's see if we find something.

Please share more thoughts on your preference of VNC for X thing.
Couldn't get it.
# 4  
Old 06-06-2013
VNC can display any desktop on any host. VNC can remote control windows, MAC or X. In X, Xvnc runs as a daemon on the box providing XServices to write a virtual, in memory desktop that a viewer can see. I usually run one per UNIX box, so any X on that box does not play tcp ping pong on the lan; it is all local.

Some complex X apps then load and run much more quickly. The app writers might have had a local console as X screen, never having to deal with long and latent tcp connections.

To operate the X desktop, you connect with vncviewer, using port 59xx tcp. VNC has many compressions and tricks to allow the desktop to display well even on low bandwidth. If you kill the vncviewer or tcp connection, all the X apps are still connected to Xvnc, awaiting your return on a new viewer connection. Some versions of vnc are free. There are many vnc viewers, like ultravnc and now I use the java tightvnc, so my XP shortcuts look like this:
Code:
C:\WINNT\system32\javaw.exe -jar "C:\Documents and Settings\myid\My Apps\tvnjviewer-2.6\tightvnc-jviewer.jar"  ....

You can set up vnc to allow multiple viewers for mentoring and training. By default, any new viewer disconnects old ones, so you can change locations and pick up where you left off, or fire up a new vncviewer if it hangs.
# 5  
Old 06-06-2013
Another possible reason is access control. If you start a process on system A and this process wants to display a window on the display of system B then system B has to allow this access for system A first.

On a UNIX system this is usually done with the xhost command, the most common form being:

Code:
xhost +

which simply disables access control (allows every host to display windows).

It might be that XP lacked (had deconfigured) such an access control whereas Windows 7 has this enabled.

I hope this helps.

bakunin
# 6  
Old 06-07-2013
Thanks everybody
# 7  
Old 06-10-2013
PS: The xhost command can take host ids in place of + so it is not wide open.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. 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

2. UNIX and Linux Applications

pass an xpdf display from red hat server to windows ssh workstation

I have a UniVerse database running on a Red Hat EL3 server. If I am on the server console my software can call xpdf giving the name of a target file and it displays very nicely on the console. I have not been able to figure out how to get the display to happen on any of the Windows XP workstations.... (5 Replies)
Discussion started by: dale kelley
5 Replies

3. Red Hat

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 Replies)
Discussion started by: oopsalion
7 Replies

4. 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

5. UNIX Desktop Questions & Answers

Remote X-Windows "Display" Access

Hi all, I am trying to get XScrabble running on my two FreeBSD boxes "freeserver" and "freework". When I set it up for two "human" players on "freeserver" it asks me for the X Displays to use, eg. ":0.0" so, I try: Human1 :0.0 Human2 freework:0.0 The problem is I get the error:... (1 Reply)
Discussion started by: WIntellect
1 Replies
Login or Register to Ask a Question

Featured Tech Videos