- 1 year ago
Newer eclipse won't X11 Forward
To enable X11 forwarding for newer versions of Eclipse, you need to make sure that the X11 libraries are installed on your system and that the DISPLAY environment variable is set correctly.
Here are the steps to enable X11 forwarding in Eclipse:
Install the X11 libraries on your system. On Ubuntu, you can use the following command to install the required packages:
arduinosudo apt-get install libx11-dev libxext-dev libxrender-dev
Make sure that X11 forwarding is enabled in your SSH configuration. Edit the SSH configuration file (
/etc/ssh/sshd_config
or~/.ssh/config
) and add the following lines:bashX11Forwarding yes
X11DisplayOffset 10
Connect to the remote server using SSH with the
-X
option to enable X11 forwarding:cssssh -X username@remotehost
Launch Eclipse from the command line using the
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
option to disable the use of the Cairo graphics library:csharpeclipse -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
This is necessary because the Cairo library is not compatible with X11 forwarding.
If the DISPLAY environment variable is not set automatically, set it manually:
arduinoexport DISPLAY=localhost:10.0
Replace
10
with the value of theX11DisplayOffset
parameter you set in step 2.
With these steps, X11 forwarding should be enabled in Eclipse, and you should be able to use it to display remote windows on your local machine.