I compiled a C++ code under Linux (Ubuntu) and everything is fine as far as I connect a monitor to my PC.
My code shows some graphics and then it saves their screenshots. The runtime graphic is not important to me but the screenshots.
But if I run the code remotely, I face with the following runtime error:
freeglut (something): failed to open display ''
If I forward x (ssh -v -X
) everything would be find. But what if I don't do that?!
How to get around it? I don't care if anything is displayed or not. Is it possible to define a temporary virtual screen on the remote computer or get around this problem in any other way? I just need the screenshot files.