How to use Xvfb in Ubuntu 14.04 with/without RandR?

Posted by Itchy on Ask Ubuntu See other posts from Ask Ubuntu or by Itchy
Published on 2014-06-01T09:33:56Z Indexed on 2014/06/01 9:39 UTC
Read the original article Hit count: 563

Filed under:
|
|
|

I try to run Unit-Tests with Selenium running Firefox on my Ubuntu 14.04 Server. And I'm using Xvfb as described in this blog to simulate a virtual display to show Firefox in.

But Xvfg somehow doesn't load/work with RandR. Because whenever I try this:

sudo Xvfb :10 -ac &
export DISPLAY=:10
firefox

I get an Xlib: extension "RandR" missing on display ":10"-Error.

I've also tried sudo Xvfb :10 -ac +extension RANDR, sudo Xvfb :10 -ac -extension RANDR and beacuse it supplies with "xrandr" also apt-get install x11-xserver-utils.

And my setup is a plain empty Ubuntu 14.04 Server with apt-get install xvfb firefox.

Can anyone please help me run Xvfb with or without RandR?

© Ask Ubuntu or respective owner

Related posts about 14.04

Related posts about firefox