如何在 Linux 服务器上渲染图形

How to render graphics on Linux server

对于很多人来说,这可能是一个愚蠢的问题。我租了一个Linux(CentOS)服务器来运行一些模拟实验使用MuJoCo. I have got most of the things installed, and I am running the python script to spin up an environment to collect data. Here是python脚本。它给了我这个错误:

Exception: glfw failed to initialize
Fatal Python error: Couldn't create autoTLSkey mapping
Aborted

我想这是我所期待的,因为纯 shell 环境不可能开始渲染彩色图形。据我在网上阅读的了解,glfw 是一个用于渲染图形的 OpenGL 框架。我的纯 shell 环境无法执行此类任务。

有没有办法让图形正常工作?我可以将图形层隧道传输到我的笔记本电脑吗?

注意:我不知道图形是如何工作的,所以这个问题可能会惹恼一些专家,所以获得一些在线指导或简洁的描述将非常有帮助。

很遗憾,这不受支持。

来自glfw docs

GLFW doesn't support creating contexts without an associated window.

您可以从 GitHub 问题中看出,例如 this one 它已成为请求的功能。