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
6
votes
2 answers

Howto terminate xvfb-run properly

In order to perform some JavaScript unit tests with karma inside a docker container (based on ubuntu 14.04) I'm starting firefox in the container using a karma-script-launcher with xvfb-run. The start script looks like this: #!/bin/bash set -o…
dpr
  • 10,591
  • 3
  • 41
  • 71
6
votes
1 answer

Jenkins Cannot run program "Xvfb": java.io.IOException :no such file or directory

I'm trying to run grails geb/spock tests on jenkins. I install Xvfb Plugin https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin. Jenkins configurations: Project configuration: Exception:
Oleg Baranovsky
  • 368
  • 5
  • 22
6
votes
0 answers

WebGL apps (Cesium) in headless browser with xvfb

I am trying to run Cesium (http://cesiumjs.org/) with a headless firefox. I also tried slimerjs. In both cases, I am using xvfb, and get this: [azureuser@myvm.net slimerjs-0.9.5]$ ./slimerjs test.js Script Error: uncaught exception: RuntimeError:…
Dormidont
  • 233
  • 1
  • 11
6
votes
1 answer

Xvfb not found on your system (Headless::Exception) in mac

/Users/ct/.rvm/gems/ruby-2.1.1/gems/headless-1.0.2/lib/headless/cli_util.rb:9:in ensure_application_exists!': Xvfb not found on your system (Headless::Exception) from…
Jane Best
  • 61
  • 1
  • 2
6
votes
1 answer

Error in .vdisplay.start() - xvfbwrapper is not working

installed xvfbwrapper python module.provided display start in python selenium test in MAC from xvfbwrapper import Xvfb class San(unittest.TestCase): def setUp(self): #display = Display(visible=0, size=(1480, 2000)) …
Prachu
  • 61
  • 2
6
votes
2 answers

Amazon EC2 Ubuntu + Xvfb: libGL error: failed to load driver: swrast

I am trying to run ParaView through Xvfb in a Ubuntu instance on Amazon EC2. I have installed X11/Xvfb related packages as per http://mike.ucoz.com/publ/programming/ubuntu/selenium_ubuntu_amazon_ec2_headless/8-1-0-4 But I can't seem to get past an…
Julien
  • 61
  • 1
  • 2
6
votes
3 answers

Xvfb - Browser window does not fit display

I'm trying to run a web browser in a virtual display, using the Python library pyvirtualdisplay, which relies on Xvfb. The problem is that I need that browser to be maximized, something I'm not achieving. I start a display with a size of 1024x768,…
davids
  • 6,259
  • 3
  • 29
  • 50
6
votes
2 answers

Running a Maven Webdriver Testng test on Jenkins, unidentifiable error

Having written some tests in Java using Eclipse IDE, we want to make them run automatically after deploy. I got to the point of having just configured Maven to almost work with Jenkins, but there are some more problems. Here is one of them: Im…
Kaloyan Roussev
  • 14,515
  • 21
  • 98
  • 180
5
votes
3 answers

unable to open X server

I am trying to generate a screenshot of a firefox window in my terminal, but I keep getting an error: root@host [~]# DISPLAY=:1 firefox http://www.cnn.com & sleep 5 && DISPLAY=:1 import -window root -crop 1264x948+0+25 -quality 90…
soniccool
  • 5,790
  • 22
  • 60
  • 98
5
votes
3 answers

PHP and Xvfb usage

I'm trying to execute firefox on a headless server to take screen shots of a website. I can do this fine from the terminal using "DISPLAY=:12 firefox -saveimage http://www.google.com/". The problem is when I try to do system("DISPLAY=:12 firefox…
William
  • 471
  • 3
  • 14
5
votes
2 answers

impossible to run xvfb screen at more than 8bit depth

On an ubuntu 16 server ( SSH ) When launching Xvfb :99 -screen 1 1024x768x8 & Works fine, but when trying to launch with 32 bits as follow Xvfb :99 -screen 1 1024x768x32 & I am getting that error : Fatal server error: (EE) Couldn't add screen…
direxit
  • 367
  • 3
  • 18
5
votes
4 answers

Google Cloud Functions (GCF) - installing packages With apt-get

I need 2 packages for my Google Cloud Functions (GCF) functions to work properly. I'd typically install them with the following command on Ubuntu: apt-get -y install firefox xvfb However, I don't know anyway to package my functions which would…
5
votes
1 answer

Firefox WebDriver: Failed to connect to binary

I have a WebDriver based Java testsuite, which I try to execute with Jenkins. Project is imported and build was successful. During execution of test I get following: Running TestRunner Configuring TestNG with:…
plaidshirt
  • 5,189
  • 19
  • 91
  • 181
5
votes
0 answers

How to use Xdummy to get GLX support on AWS

I am trying to use OpenAI gym through Jupyter on AWS (running Ubuntu 14.04 LTS). When I try and use the env.render() function I get an error. The problem is that env.render() uses pyglet, but when trying to import it I get the following error:…
Toke Faurby
  • 5,788
  • 9
  • 41
  • 62
5
votes
1 answer

running Xvfb in background on remote linux

i am facing issues with Xvfb on remote linux. when i run the command Xvfb :99 & I get this messages on the command line Initializing built-in extension Generic Event Extension Initializing built-in extension SHAPE Initializing built-in…
Abhishek Tripathi
  • 1,211
  • 2
  • 15
  • 30