Questions tagged [xvfb]

Xvfb; X virtual framebuffer, is an X11 server that can run graphic applications without a physical screen.

Xvfb is an X11 server that executes all the graphical operations in memory without showing any screen output.

It acts exactly like any other X widow server but with the difference that no output is shown so Xvfb does not require the computer it is running on to a screen.

It can be used for many things like remote controlling browsers in web testing, or background tasks running for creating screenshots of programs or web pages.

543 questions
98
votes
14 answers

How to run OpenAI Gym .render() over a server

I am running a python 2.7 script on a p2.xlarge AWS server through Jupyter (Ubuntu 14.04). I would like to be able to render my simulations. Minimal working example import gym env = gym.make('CartPole-v0') env.reset() env.render() env.render()…
Toke Faurby
  • 5,788
  • 9
  • 41
  • 62
60
votes
3 answers

Xlib: extension "RANDR" missing on display ":21". - Trying to run headless Google Chrome

I'm trying to run some Webdriver Maven tests on a headless server via xvfb using Chrome (Firefox also didn't work) but I'm getting this error message: Xlib: extension "RANDR" missing on display ":21". What more information should I provide and…
Kaloyan Roussev
  • 14,515
  • 21
  • 98
  • 180
50
votes
4 answers

How to make Xvfb display visible?

I am running selenium through Xvfb on display number :99 like this: /usr/bin/Xvfb :99 -ac -screen 0 1024x768x8 & export DISPLAY=":99" && java -jar /usr/lib/selenium/selenium-server-standalone-2.24.1.jar -port 4444 However display with number…
Dziamid
  • 11,225
  • 12
  • 69
  • 104
44
votes
2 answers

easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help'] OSError=[Errno 2] No such file or directory

I'm trying to setup a display but it's telling me No such file or directory. Traceback (most recent call last): File "/var/www/envs/venv/proj/scripts/my_file.py", line 44, in click display = Display(visible=0, size=(800,600)) File…
User
  • 23,729
  • 38
  • 124
  • 207
38
votes
1 answer

xvfb-run on OS X

Is it possible to have xvfb-run on OS X? I develop a PHP application which uses xvfb-run. Before I worked on Ubuntu and it was OK. Now I've moved onto Mac and the application does not work. Or maybe any cross-platform alternative is available to use…
Axarsu
  • 447
  • 1
  • 5
  • 10
33
votes
3 answers

how to add the missing RANDR extension

I have setup the xvfb server on my headless server and when I m running the DISPLAY=:99 firefox I am getting this exception missing RANDR extension Many of them said to disable some xinerna from the xorg.conf file but this file is not getting…
Mahesh More
  • 919
  • 2
  • 8
  • 20
31
votes
4 answers

Running Chrome WebDriver on a linux server with no display

I'd like to run automated tests using selenium2's chrome webdriver on a linux server. I've already set up firefox to run on the server by using Xvfb (See http://www.semicomplete.com/blog/geekery/xvfb-firefox.html) and would like to do something…
Snukker
  • 1,963
  • 3
  • 18
  • 18
26
votes
2 answers

Resizing an Xvfb display

Simple Question: Is there a way to resize a Xvfb display? I tried with RandR but it seems that the RandR extension is not supported by Xvfb. Are there other ways to resize the screen? Thanks for your help!
Erik
  • 11,944
  • 18
  • 87
  • 126
25
votes
5 answers

Installing and Configuring xvfb

I'm trying to find a Ubuntu operating system, version of xorg, and version of xvfb that are compatible. Can anyone help me with directions to install xvfb without getting a hang on Initializing build-in extension GLX So far I've tried the following…
kevinn2065
  • 325
  • 1
  • 3
  • 12
23
votes
2 answers

How to video-record selenium tests running headless inside a docker?

I am running python-selenium tests inside a docker using a headless firefox. During these tests I am able to make screenshots with the selenium method for screenshots - but can I use something to 'video' record the virtual display during the whole…
Alex
  • 41,580
  • 88
  • 260
  • 469
20
votes
1 answer

Xvfb & Docker - cannot open display

I need to run XVFB and docker with firefox but can't get them to work together Here is my Dockerfile : FROM abevoelker/ruby:latest # based on ubuntu ENV TERM linux RUN apt-get update && apt-get install -y ..... ENV DISPLAY :99 # Install Xvfb init…
overlox
  • 794
  • 1
  • 5
  • 18
20
votes
2 answers

xvfb-run unreliable when multiple instances invoked in parallel

Can you help me, why I get sometimes (50:50): webkit_server.NoX11Error: Cannot connect to X. You can try running with xvfb-run. When I start the script in parallel as: xvfb-run -a python script.py You can reproduce this yourself like so: for…
user3236315
  • 211
  • 2
  • 5
20
votes
2 answers

Xvfb not found on your system

I try to use Xvfb to make the headless code run. However, I encountered the problem that "Xvfb not found on your system" when I tried to run my ruby code. Then I tried to install Xvfb using sudo apt-get install xvfb However, "apt-get: command not…
zhouyu
  • 257
  • 1
  • 2
  • 9
20
votes
4 answers

Jenkins, xvfb and selenium

I have been attempting to follow the instructions here to get the Xvfb plugin running: https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin Currently the xvfb executable is at /usr/bin/Xvfb. My project configuration and Jenkins config are…
Calum
  • 2,110
  • 2
  • 22
  • 39
19
votes
2 answers

py.test SetUp/TearDown for whole test suite

I have a Python package that needs access to X11. I want to use Xvfb so that I do not have to have a real X11 installed on the build machines -- Hudson in this case. So, I would like to start a Xvfb server when py.test starts, use that one server…
Sardathrion - against SE abuse
  • 17,269
  • 27
  • 101
  • 156
1
2 3
36 37