Memo‎ > ‎

Enable OpenGL direct rendering over ssh after installing nVidia driver

posted Jun 23, 2018, 5:30 PM by Teng-Yok Lee   [ updated Jun 23, 2018, 8:29 PM ]
In my experience, nVidia driver will overwrite Mesa's libGL.so in /usr/lib/x86_64-linux-gnu/mesa/. However, mesa's libGL.so support direct rendering over ssh, while nVidia's can't.

A quick fix is copying the ligGL.so of /usr/lib/x86_64-linux-gnu/mesa/ from other host. Then once ssh to the host, set LD_LIBRARY_PATH as follows:

$ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/mesa:${LD_LIBRARY_PATH}

Then the current session will use mesa's libGL.so.

More detailed explanation can be seen here:
https://praveen-palanisamy.github.io/blog/2017/02/15/Running-OpenGL-Applications-Remotely


Comments