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

How to Close Xvfb after usage

I am running some tests in headless firefox using Xvfb. However, after my tests are finished I want to move back to normal display. But I am not able to do that .Here is What I am doing . Open A Terminal sudo Xvfb :10 -ac & export…
NODE.NODE
  • 105
  • 1
  • 4
  • 11
10
votes
1 answer

How to properly configure the Selenium Maven Plugin to work with Xvfb to run headless

Background: I'm using selenium-server-2.25.0 in conjunction with J-Unit 4 to run through a handful of UI testing scenarios for my GWT app. In my IDE (Netbeans 7.2), I can right-click on my project, choose "Test", and see Firefox windows pop up all…
jcovert
  • 550
  • 1
  • 7
  • 21
9
votes
1 answer

xvfb-run hangs in container

I'm trying to containerize a Node application that creates snapshots of .STL files. This application is started through xvfb-run to provide it a mock GUI in which it can generate said snapshots, and it works if I just run the application without a…
Artem Zakharov
  • 787
  • 1
  • 7
  • 18
9
votes
1 answer

Using rgl with headless display

I installed Xfvb and instantiated a display instance: $ Xvfb :2 -screen 0 1280x960x24 & I then installed R 3.2.5 and rgl 0.95.1441 separately from source, and I opened R with a connection to DISPLAY on port 2. I then tried to run a test rgl session…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
9
votes
3 answers

How to take Retina Screenshots with Xvfb and Selenium

I want to take some screenshots of my hybrid app for itunes connect automatically. I am running Ubuntu 14.04. chromedriver 2.15.322448 Taking screenshots automatically is easy with Selenium and Xvfb. But it is not easy to get retina screenshots. I…
9
votes
1 answer

JavaFX + Xvfb - Yet another Xlib: extension "RANDR" missing on display ":99"

I have an ubuntu headless server with JavaFX and Xfvb up and running. Now I have a very similar Ubuntu server and try to get my JavaFX App running with Xvfb. But I allways get an exception thrown: Prism ES2 Error - nInitialize: glXChooseFBConfig…
KIC
  • 5,887
  • 7
  • 58
  • 98
9
votes
1 answer

Google Chrome can't run in xvfb because extension "RANDR" missing

I try to run Google Chrome on xvfb display, but google show error about RANDR extension. Problem is that I added RANDR to xvfb and it loaded it. So my steps are: Run xvfb server using command: Xvfb :1 -screen 0 1280x1024x24 +extension RANDR This…
ShockwaveNN
  • 2,227
  • 2
  • 29
  • 56
9
votes
1 answer

Xvfb multiple displays for parallel processing?

Curious about running multiple xvfb displays: I have between 10-50 instances of a script running in parallel that connect to an xvfb display. Is is advantageous to run the same number of xvfb displays and connect 1 to 1? Or can multiple processes…
nathancahill
  • 10,452
  • 9
  • 51
  • 91
8
votes
2 answers

How can I take advantage of my discrete graphics card on a headless server?

I'm working on a remote visualization project for BioMesh3D, harnessing a beefed up server to do processing and rendering. It's easy to get it working if we setup a user to auto-login to the graphical desktop because then we have a running xserver.…
rabid.sloth
  • 111
  • 1
  • 7
8
votes
1 answer

Can't run Playwright on AWS Lambda with Docker & xvfb

I've been trying to run Playwright on AWS Lambda with xvfb for days. I was able to build a few variants of Docker images that worked locally, but when pushed to AWS always encountered errors. Dockerfile: FROM…
8
votes
2 answers

Using VNCserver + GUI application + Virtual Display in Docker container

I would like to run firefox (or any graphical application) inside docker container. My requirement: When I start the container, I should be creating a virtual display, starting VNC server and then the GUI application. This means after the container…
dealbitte
  • 191
  • 1
  • 2
  • 7
8
votes
1 answer

Headless endless scroll selenium

from selenium import webdriver from selenium.webdriver.common.by import By from selenium.common.exceptions import StaleElementReferenceException, TimeoutException from selenium.webdriver.support.ui import WebDriverWait from…
Abhishek Bhatia
  • 9,404
  • 26
  • 87
  • 142
8
votes
1 answer

How to get all processes in a display from Xvfb?

I have a program that is launching ChromeDrivers, which launches Chrome browsers + later attempts to close both after doing some task (using Selenium). But often times my program can't kill off the ChromeDriver/Chrome browser. When I try to kill the…
Ben
  • 1,550
  • 3
  • 15
  • 22
8
votes
1 answer

Headless Chrome in Docker using Xvfb

I am trying to run Chrome headless inside a Docker container using Xvfb. However, while ps shows Chrome processes exist, it is not reaching my test website. Running the same commands outside Docker is successful. Xvfb :0 -screen 0 1024x768x24…
phranax
  • 221
  • 1
  • 2
  • 5
8
votes
1 answer

Running electron (atom-shell) headlessly on linux server through Nightmare.js

I am building a scraper to make JS single page applications easily crawlable. After some incredible frustration with PhantomJS (memory leaks, outdated webkit, undead processes, among many other problems) I decided to switch to NightmareJS which can…
Rayjax
  • 7,494
  • 11
  • 56
  • 82
1 2
3
36 37