X server settings
To allow GL applications run from a remote server via X protocol, one might need to add the following to the local X server configuration:
Section "ServerFlags" Option "IndirectGLX" "on" EndSection
On the modern Linux systems the appropriate place for these lines would be some file in the /etc/X11/xorg.conf.d/ directory, for instance, /etc/X11/xorg.conf.d/glxsettings.conf.
The receipt seems to help for proprietary NVidia drivers.