Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to start firefox headless. The following is the beginning of the shell script that starts it:

#!/bin/sh
Xvfb :99 >/dev/null 2>&1 &
XVFB=$!
sleep 3
firefox --display=:99 >/dev/null 2>&1 &
FIREFOX=$!

When this script is run, the following error occurs:

Xlib:  extension "RANDR" missing on display ":99".

I have tried starting Xvfb with the following, but it does not prevent the error:

Xvfb -extension RANDR :99 >/dev/null 2>&1 &

and

Xvfb +extension RANDR :99 >/dev/null 2>&1 &

Is there a better way to enable XRandR in Xvfb so that firefox is able to see the extension?

Alternatively, is there a way to disable XRandR in firefox?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.