谷歌浏览器无法在xvfb中运行,因为缺少扩展名“RANDR”

时间:2013-04-05 08:51:46

标签: google-chrome xvfb xrandr

我尝试在xvfb显示屏上运行Google Chrome,但google显示有关RANDR扩展程序的错误。问题是我将RANDR添加到xvfb并加载它。 所以我的步骤是:

  1. 使用命令运行xvfb服务器:

    Xvfb :1 -screen 0 1280x1024x24 +extension RANDR

  2. 此命令为我输出成功加载的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!

  3. 在其他终端中运行:

    export DISPLAY=:1 && google-chrome

  4. Chrome outut to terminal:

    Xlib: extension "RANDR" missing on display ":1".
    Created new window in existing browser session.

  5. Google Chrome在我的x11会话中启动

1 个答案:

答案 0 :(得分:0)

尝试

env DISPLAY=:1 google-chrome