当通过终端时

当通过终端时

如何通过 VNC 在无头 Oracle 云上运行 Blender GUI?

计算必须是VM.Standard.E2.1.Micro(AMD 处理器)或VM.Standard.A1.Flex(ARM 处理器)。两者都可以在其免费套餐中试用。我正在使用 Ubuntu 22.04 映像。

当通过终端时

它工作没有问题:

> sudo apt-get install -y blender

> blender --version
Color management: using fallback mode for management
Color management: Error could not find role data role.
Blender 3.0.1

> blender test.blend --background --render-frame 1 --render-output '/tmp/out_####' -F PNG --engine CYCLES -noaudio
Fra:1 Mem:42.93M (Peak 44.01M) | Time:00:03.10 | Syncing Cube
Fra:1 Mem:42.96M (Peak 44.01M) | Time:00:03.14 | Syncing Light
Fra:1 Mem:42.96M (Peak 44.01M) | Time:00:03.14 | Syncing Camera
Fra:1 Mem:42.96M (Peak 44.01M) | Time:00:03.30 | Rendering 1 / 4 samples
...

当通过SSH X11转发时

它工作没有问题,只是速度太慢:

$ ssh -X user@ip_address

> sudo apt-get install -y blender
> blender

启动 Blender 需要整整一分钟,关闭启动窗口需要 10 秒。移动也需要 10 秒。

当通过 VNC 通过反向 SSH 隧道时

$ ssh -L 5901:localhost:5901 user@ip_address

> sudo apt-get install -y blender freeglut3 tightvncserver xfce4
> tightvncserver -nolisten tcp -localhost :1

然后blender通过 VNC GUI 运行:

> blender
Xlib:  extension "XInputExtension" missing on display ":1".
./intern/ghost/intern/GHOST_WindowX11.cpp:136: X11 glXQueryVersion() failed, verify working openGL system!
initial window could not find the GLX extension
Color management: using fallback mode for management
Color management: Error could not find role data role.
Color management: scene view "Filmic" not found, setting default "Standard".
Writing: /tmp/blender.crash.txt

并下载网站上最新版本的 Blender:

> ./blender
Xlib:  extension "XInputExtension" missing on display ":1".
Error! GLX_ARB_create_context not available.
Error! GLX_ARB_create_context not available.
Error! GLX_ARB_create_context not available.
Error! GLX_ARB_create_context not available.
Error! GLX_ARB_create_context not available.
Error! GLX_ARB_create_context not available.
Error! GLX_ARB_create_context not available.
Error! Unsupported graphics card or driver.
A graphics card and driver with support for OpenGL 3.3 or higher is required.
The program will now close.

相关内容