Questions tagged [xvfb]

73 questions
23
votes
1 answer

How do I take a screen shot of my Xvfb buffer?

I'm using Amazon Linux. I want to run a headless chromium browser to use on my node.js Selnium tests. So I fire up my Xvfb server like so ... if ! pidof /usr/bin/Xvfb; then Xvfb :0 -screen 5 1024x768x8 & fi However, when I try and take a…
Dave
  • 2,348
  • 21
  • 54
  • 84
19
votes
3 answers

GLX extension not working properly with xvfb

I have an Ubuntu 14.04 system with the following packages…
Giorgio
  • 797
  • 2
  • 13
  • 28
15
votes
2 answers

How to poll for Xvfb to be ready?

The Travis CI documentation says to run sleep 3 after starting xvfb to "give [it] some time to start". I couldn't find any reference to this delay in the man page. Is this cargo cult programming? If not, how do I poll rather than sleep to guarantee…
l0b0
  • 50,672
  • 41
  • 197
  • 360
12
votes
1 answer

Why does `xvfb-run glxgears` fail with an swrast error?

xvfb is supposed to let me run X programs in a headless environment. But when I run xvfb-run glxgears, I get: libGL error: failed to load driver: swrast libGL error: Try again with LIBGL_DEBUG=verbose for more details. Error: couldn't get an RGB,…
Alex Henrie
  • 715
  • 1
  • 8
  • 13
10
votes
3 answers

How do I start Xvfb on startup on Debian?

I’ve got a Debian web server that I’m using for occasional screen-scraping via Selenum and Python. I use Xvfb as a virtual X server for Firefox to run on when being controlled by Selenium. Given that I (think) I have to start this using sudo, I…
Paul D. Waite
  • 3,527
  • 5
  • 21
  • 21
9
votes
1 answer

Xvfb or Firefox throwing errors & gratuitously logging

per the answer to this question, I'm running Xvfb to make a virtual display so firefox will run on my CentOS server. (I don't need to see firefox or do any actual key or screen input/output with firefox-- it just needs to run so Selenium can drive…
Eric
  • 487
  • 1
  • 5
  • 10
8
votes
3 answers

How to run Xvfb without root?

Desired result on a server without root: 1) Run Xvfb without input devices, or 2) Just get Xvfb to run Background: I have two machines both having nearly identical builds of CentOS. One machine has root access and internet and the other is sandboxed…
Drakes
  • 567
  • 4
  • 12
  • 26
8
votes
3 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
  • 393
  • 3
  • 6
  • 13
7
votes
3 answers

How do I create a virtual secondary screen in X11?

I'm trying to use xvfb as a secondary screen, but I am struggling getting the two screens working together. xvfb does not seem to have the randr extension. So is there another possibility to create a virtual screen that could be in dual-head mode…
twall
6
votes
1 answer

Extension “RANDR” missing on xvfb

My system: $lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty Xvfb: $ dpkg -s xvfb Package: xvfb Status: install ok installed Priority:…
kekit
  • 73
  • 1
  • 1
  • 3
5
votes
1 answer

How to display an X11 screen from a remote machine? (Alternative to ssh -X)

I am locally on a machine without root rights. X forwarding is disabled. Remotely I am running a process on a machine without a screen, using the Xvfb virtual framebuffer which simulates an X server but discards any image displayed. This works…
Ned64
  • 8,486
  • 9
  • 48
  • 86
5
votes
2 answers

Xvfb + glxgears fails

I'm trying to use Xvfb, but it can't even run glxgears for some reason, and I don't know how to debug that, maybe I'm missing something. Here's the commands I'm using: Xvfb :99 +extension GLX -screen 0 640x480x24 DISPLAY=:99 glxgears And glxgears…
nullifiedcat
  • 73
  • 1
  • 5
5
votes
1 answer

GLX doesn't work using xvfb-run

I'm on Ubuntu 14.04, and using it through ssh, which means I don't have local GUI for it. I need to run some command that requires GLX, but things aren't going well. Xvfb :80 -screen 0 1400x900x24 -ac +extension GLX +render -noreset If I execute…
noname
  • 274
  • 1
  • 3
  • 9
5
votes
1 answer

Use xvfb to automate X program

I originally posted this question here, but upon second thoughts I decided here was a better place for this. I sadly have to use this proprietary program that bundles a camera driver. I want to perform a specific action with it, which involves…
Luan Nico
  • 219
  • 2
  • 8
4
votes
1 answer

What is the "native" frame rate of an Xvfb screen?

I am emulating a screen with Xvfb, and I want to capture it with ffmpeg. In order to prevent frame dropping or duplication, I would like to capture at the exact refresh rate of the screen, but it seems that Xvfb does not … have this? xrandr confirms…
slhck
  • 463
  • 1
  • 6
  • 22
1
2 3 4 5