Memo-migrated‎ > ‎

Enable OpenGL direct rendering over ssh after installing nVidia driver

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

A quick fix is copying the 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

More detailed explanation can be seen here: