我尝试在 xvfb 显示器上运行 Google Chrome,但 google 显示有关 RANDR 扩展的错误。问题是我将 RANDR 添加到 xvfb 并加载它。所以我的步骤是:
使用命令运行 xvfb 服务器:
Xvfb :1 -screen 0 1280x1024x24 +extension RANDR
此命令为我提供成功加载的 RAND 模块的输出
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
[dix] Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!在其他终端运行:
export DISPLAY=:1 && google-chrome
Chrome 输出到终端:
Xlib: extension "RANDR" missing on display ":1".
Created new window in existing browser session.Google Chrome 在我的 x11 会话中启动