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

Continously capturing/reading all frames from Xvfb virtual framebuffer as a stream?

I have a Linux system (Raspberry Pi 4 with DietPi) which controls some RGB LED Matrix panels, by transmitting buffers of RGB pixels. I want to display the content of a virtual frame buffer on the LED matrix, so the LED matrix essentially acts like…
Esben von Buchwald
  • 2,772
  • 1
  • 29
  • 37
2
votes
2 answers

When running headless selenium in cron, got error "Pyperclip could not find a copy/paste mechanism for your system"

I have implemented a selenium script in Python to upload some pictures and content to Facebook, which I named FBUpload.py. When I launch it this way, it works perfectly (in headless mode): Xvfb :10 -ac & python3…
6ecky
  • 21
  • 1
2
votes
0 answers

Selenium XVFB - Unable to receive message from renderer

Overview: Selenium scraper works perfectly in headless mode. Spawning a virtual display shows no errors via XVFB: from xvfbwrapper import Xvfb vdisplay = Xvfb() vdisplay.start() vdisplay.stop() But when I try to run them together, it errors out…
Luke Hamilton
  • 637
  • 5
  • 19
2
votes
0 answers

How to run chrome in Xvfb with gpu NVIDIA supported?

I started an AWS instance with GPU ( g4dn.xlarge ). I installed the NVIDIA driver by following this article https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-nvidia-driver.html . The nvidia-smi command output:…
boygiandi
  • 630
  • 10
  • 20
2
votes
1 answer

Record web browser with sound as a service on linux server with puppeteer

I'm trying to build a service on a linux server to record video a web browser with its sound. The first step I did with the source code below (using xvfb, puppeteer and ffmpeg) to record successfully. However when I do a recording with different…
NA GUY
  • 21
  • 2
2
votes
2 answers

Running Xvfb from Python

I am working on a server with no X servers and trying to run a script that uses spynner module, which requires an X server. For this purpose, I want to run Xvfb. I can run the script by calling it via xvfb-run, i.e.: xvfb-run python2.6…
Ozgur Akcali
  • 5,264
  • 2
  • 31
  • 49
2
votes
2 answers

Why is selenium hanging on INFO - Checking Resource aliases, and how do I even debug this?

I'm trying to follow the tutorial here to setup a headless selenium test-run with jenkins. I'm running CentOS 5.6, and I've followed the instructions. Now, when I run this: export DISPLAY=":99" && java -jar /var/lib/selenium/selenium-server.jar…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
2
votes
0 answers

Run headful chromium with nvidia GPU and Xvfb on EC2 instance with PRIME

I am trying to do hardware accelerated WegGL rendering through puppeteer on an Elastic Beanstalk instance (EC2 running Amazon Linux 2). My instance is a g4dn.xlarge with Nvidia RTX drivers provided by this AMI. I'm managing to run chromium with…
Alex de Boutray
  • 113
  • 1
  • 7
2
votes
1 answer

docker: can not start xvfb-run with docker run, but can start with docker exec -it

I'm trying to run a node app with xvfb-run, here is my Dockerfile FROM node:lts-alpine RUN apk --no-cache upgrade && apk add --no-cache chromium coreutils xvfb xvfb-run ENV CHROME_BIN="/usr/bin/chromium-browser"\ …
Littlee
  • 3,791
  • 6
  • 29
  • 61
2
votes
1 answer

Getting ffmpeg to capture the full screen of xfvb-run screen running puppeteer script, and send it over rtmp

My problem I can't get ffmpeg or xvfb-run to stream the full screen to ffplay/videolan, it only captures a part of the screen. Update 2 I answered the question myself in a follow up answer, hopefully it can be useful for someone else with the same…
james
  • 760
  • 1
  • 9
  • 21
2
votes
1 answer

How to check if OpenGL/EGL detects GPU on a headless server?

I am trying to use NVIDIA's EGL library to render an OpenGL-based simulator in headless mode. However, I find that rendering on the server with EGL is the same speed as rendering on the server with xvfb, which only performs software-based rendering.…
minch
  • 331
  • 3
  • 13
2
votes
1 answer

Headless Selenium with Xvfb - JavaScript not working, but no

I'm using Selenium on a Headless Linux machine with Xvfb and Firefox and got a little strange behaviour: I have a button, which opens a inline popup with javascript and does a postback and load the content in the page if no javascript is enabled. I…
Christoph Fink
  • 22,727
  • 9
  • 68
  • 113
2
votes
1 answer

Cannot make Firefox window fullscreen of Xvfb

Please check this image : https://i.stack.imgur.com/ZueOm.jpg You can see the window screen width is 1280, but the firefox only can get 1152 to display. I'm using selenim with python. I can use set_window_size() to make firefox has the size of…
boygiandi
  • 630
  • 10
  • 20
2
votes
1 answer

XStartError in pyvirtualdisplay

I'm running a co-workers notebook on my local machine (she used collab). Immediately after import, this line of code display = pyvirtualdisplay.Display(visible=0, size=(1400, 900)) _ = display.start() causes this error (abbreviated, it's pages…
rocksNwaves
  • 5,331
  • 4
  • 38
  • 77
2
votes
1 answer

In Azure pipelines, how do you set up X display for headless Chrome testing?

In our Azure Pipeline, we are attempting to run end-to-end tests in our Angular 9 application, using the following task ... The package.json defines this ... "scripts": { ... "e2e": "npm run install-puppeteer && ng e2e" }, but when the…
Dave
  • 15,639
  • 133
  • 442
  • 830