Forum

Notifications
Clear all

X11

0 Posts
2 Users
0 Reactions
209 Views
(@JavaJanette)
New Member
Joined: 55 years ago
Posts: 1
Topic starter  

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! 🙂

[size=1][ January 10, 2003, 10:28 AM: Message edited by: Brian T. Pence ][/size]


   
ReplyQuote
(@bpence)
Member Admin
Joined: 12 months ago
Posts: 1375
 

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


   
ReplyQuote
Share: