Skip to content

Instantly share code, notes, and snippets.

View hagi123456's full-sized avatar

Martin Hagmüller hagi123456

  • Graz University of Technology
  • Graz, Austria
View GitHub Profile
@shehzan10
shehzan10 / Remote OpenGL Setup.md
Last active February 1, 2024 13:39
Remote OpenGL Without Display

Remote OpenGL Setup without X

A full OpenGL profile requires X to be running. For X to run, it requires a display to be connected to the machine. Given that most server machines do not have this, it becomes difficult to run OpenGL.

This document details how to get OpenGL and X up and running without having a display connected to the sevrer.

Requirements

You will need access to the remote system over SSH. To run the tool, you will need libGL.so and libX11.so. These are installed when X and the NVIDIA Drivers are installed. So there is nothing special required to install these.

Another tool I would recommend strongly is glewinfo. Most linux distributions ship this with the glew-utils package. An alternate to glewinfo is glxinfo which is present on all systems with X. You can substitute glewinfo with glxinfo in all the commands below if needed.