|
|
# X forwarding of applications using OpenGL
|
|
|
|
|
|
If you are using a Linux machine, it is very likely that X11 will have by default set the [Indrect GLX](https://www.phoronix.com/scan.php?page=news_item&px=Xorg-IGLX-Potential-Bye-Bye) rendering to off, preventing the client (your) GPU to render the X application being forwarded via `ssh`. To enable the option, `sudo gedit /etc/X11/xorg.conf` and add:
|
|
|
|
|
|
```bash
|
|
|
Section "ServerFlags"
|
|
|
Option "IndirectGLX" "on"
|
|
|
EndSection
|
|
|
```
|
|
|
|
|
|
At the beginning of the file.
|
|
|
|
|
|
In order allow for X forwarding of applications such as XSOCS or Silx, the
|
|
|
`DISPLAY` variable must be correctly set. To do so, first `ssh` with X
|
|
|
forwarding enabled:
|
|
|
|
|
|
```bash
|
|
|
$ ssh -X -P 5022 <username>@firewall.esrf.fr
|
|
|
$ ssh -XY -p 5022 <username>@firewall.esrf.fr
|
|
|
```
|
|
|
|
|
|
Then enable the local display:
|
... | ... | @@ -22,4 +32,14 @@ $ echo $DISPLAY |
|
|
localhost:506.0
|
|
|
```
|
|
|
|
|
|
You are now ready to use OpenGL. |
|
|
Check that everything is in order by running, e.g.:
|
|
|
|
|
|
```bash
|
|
|
glxgears
|
|
|
```
|
|
|
|
|
|
If something is wrong you might get some useful info by:
|
|
|
|
|
|
```bash
|
|
|
glxinfo | grep OpenGL
|
|
|
``` |
|
|
\ No newline at end of file |