VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Favoured: 0
TOPIC: X11
#311
X11 21 Years, 3 Months ago  
I would like to run my graphical javaprogram.
I have downloaded winAxe 6.3 and i have secure
shell 2 version.

i've got error:

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay (X11GraphicsEnvironment.java)
....
....

How to get X11 on???
thanks! :)

[ January 10, 2003, 10:28 AM: Message edited by: Brian T. Pence ]
JavaJanette (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#312
Re: X11 21 Years, 3 Months ago  
Janette,

To enable X forwarding using AbsoluteTelnet, you simply have to go to Options->Properties->Connections->SSH2->Forwarding and switch on the 'Display remote X applications on local X server' checkbox.

Some issues involved, though...

1. If your DISPLAY variable is *already* set to something:0.0, you may have the DISPLAY hard-coded to a certain value in your login scripts. This is a no-no for SSH forwarding, as the ssh server will set the DISPLAY for you. You should NOT mess with it.

2. X Forwarding must be enabled on your server. If it IS enabled, it will set the DISPLAY variable for you. If the variable is *not* set, chances are that the option is not enabled by the server. Setting the DISPLAY yourself will *NOT* work. At best, it'll simply fail. At worst, you may bypass the SSH tunnel altogether and pass X data directly to your X server without proper encryption (the whole reason you're using SSH to begin with). A DISPLAY variable of something:0.0 indicates you're setting it yourself (see 1 above)

3. Set the security settings of your X server to accept connections for localhost or (127.0.0.1). From the X server perspective (running on your PC), the X connections seem to originate from AbsoluteTelnet (also running on your machine).
bpence (Admin)
Admin
Posts: 1412
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top