I want to implement a program with opengl that renders something to a framebuffer object. I don't need to display anything, but I want to save the framebuffer into a jpg file and serve it via tcp/ip. the program is essentially a tcp image server.
I will deploy this program to my server which has linux but no x windows. I can only access it through ssh. Suppose I have gpu on that server, how can I have an Opengl context within my command line program?