I am connecting to a local server that runs MATLAB (version 2015a) via ssh with the X forwarding option (ssh -X
).
However when I start MATLAB I get this warning:
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: nouveau
libGL error: dlopen /usr/lib64/dri/swrast_dri.so failed (/usr/local/MATLAB/R2015a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /lib64/libLLVM-3.5-mesa.so))
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
MATLAB is selecting SOFTWARE OPENGL rendering.
When I start MATLAB as root then instead of Permission denied
in the first line, I get:
libGL error: failed to authenticate magic 1
The graphics are terrible, even the text (See the screenshot below). I suppose this issue is related to forwarding the graphics to guest system via ssh. So I thought the display option in MATLAB can be set to the guest-system X-display which I did by:
matlab -display guest-ip:0
Even then I am getting the OpenGL error and there is no graphical output (matlab runs in shell and figure windows do not pop up).
The host has centos-7 and the guest has fedora-20 and both have mesa-libGLU
installed. What is the right way to forward high quality graphics?
Host system
Guest system (for comparison)