This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 176203 - Check whether X11 forwarding is possible
Summary: Check whether X11 forwarding is possible
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 05:14 UTC by Vladimir Kvashin
Modified: 2014-04-14 14:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2009-11-09 05:14:05 UTC
IDE should be able to check whether X11 forwarding for the given host is possible.

It's not quite clear when to check whether X11 forwarding is possible and how to present results of this check to the user. Both local and remote host can be tuned between IDE runs; so the possibility of X11 forwarding can change. So most likely the right moment(s) are: 1) the moment of host setup; 2) the moment of reconnect to the host. User also should be informed why is it impossible to forward X11 if it is the case.
Comment 1 Vladimir Kvashin 2009-11-09 05:16:29 UTC
Here are some technical details by lsl239 copied from issue 166105 :

http://docstore.mik.ua/orelly/networking/firewall/ch08_16.htm 
see 8.16.1
BTW, it might be a good idea to check if DISPLAY env. variable is set locally.
Because if it doesn't, no luck.

"X11 uses TCP. X11 uses port 6000 for the first server on a machine.
...
On a UNIX system, the DISPLAY environment variable tells clients what X11
server to contact. This variable is of the
form hostname:n; this tells clients to contact the server on port 6000+n on
machine hostname."


Problem here is that if your local DISPLAY was set to .0:0 then after unset the
behaviour would be the same.
The only very correct way to check X11 is running is to try set tcp connection
to localhost:6000 if DISPLAY is not set.

On the remote host it does make sense to check if sshd_config allows X11
forwarding. Options related to that are:
# X11 tunneling options
X11Forwarding 
X11DisplayOffset
X11UseLocalhost
Comment 2 Vladimir Kvashin 2009-11-09 06:36:54 UTC
Solving this requres further UI changes; UI freeze is passes; I believe it isn't important enough to make an exception => changing target milestone to "next"
Comment 3 Alexander Pepin 2010-03-31 12:22:44 UTC
sounds like enhancement, isn't it?
Comment 4 Vladimir Kvashin 2010-03-31 13:13:46 UTC
I'm not sure. The absence of this check leads to the situation when user checks X11 forwarding on and this does not work - which is a defect...
Comment 5 Alexander Simon 2010-04-16 13:16:55 UTC
UI was fixed.
Other issues are enhancement.