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

Google colab virtual sink audio and video recording

I am trying to record videos (visual + audio) while running a script through selenium python(headless-chrome) in google colab. Using the Xvfb library and ffmpeg I was able to use a virtual display and record the video during the running of the…
kl kl
  • 66
  • 3
0
votes
0 answers

Running XVFB via pipeline groovy

I am running a groovy script for my job on Jenkins and the xvfb call is $ Xvfb :0 -screen 0 1024x768x24 This however fails claiming that an X server is already running. However if I run the command Xvfb -screen 0 1024x768x24 :99 (I've declared 99 as…
Witcher18
  • 59
  • 5
0
votes
1 answer

Xvfb instance for multiple processes

I am developing an application on one of the servers of webfaction. I have a python class with two functions defined in it. Each function uses a spynner.Browser() object, which requires an X server running. I am running Xvfb for this purpose. Both…
Ozgur Akcali
  • 5,264
  • 2
  • 31
  • 49
0
votes
0 answers

I am doing Web Scraping, using dryscrape and beautiful soup. But Colab doesn't find xvfb, though it is installed. Why?

!pip install git+https://github.com/niklasb/webkit-server.git@refs/pull/35/head !pip install dryscrape from xvfbwrapper import Xvfb from datetime import datetime import dryscrape from bs4 import BeautifulSoup import requests from xvfbwrapper…
0
votes
1 answer

how to run/start graphical programs (Ex: firefox) on a remote machine using CLI without logging in

So, the story is like this: I have 2 linux machines with ubuntu 20.04 installed on both. one of them, call it computer A doesn't have X on it because it is the server version installed and I don't want to install it. So I am connecting to computerB…
John11
  • 437
  • 1
  • 6
  • 16
0
votes
0 answers

Getting issue while trying to run the protractor in centos docker image: chrome failed to start

I am trying to run the selenium test cases in a docker container with Centos using a protractor. I am getting an error. Even I have the latest version of the xvfb package.
0
votes
0 answers

Run a sh with Xvfb display using cron?

I am trying to run a sh script using cron. This script requires a display. I have tried: # Xvfb display /usr/bin/Xvfb :10 -ac -screen 0 1024x768x24 & 41 18 * * * /bin/sh /path/to/script/script.sh > /path/to/log/log.log 2>&1 Nothing happened and…
Sid
  • 3,749
  • 7
  • 29
  • 62
0
votes
1 answer

Python cron job with Chrome not running in AWS EC2

I've been using an EC2 instance to run a python script with cron everyday for a month or so. The script uses selenium. Everything was working correctly until today, when my script did not run. I have tried to run it manually but it's not working…
0
votes
0 answers

Detect bot running via xvbf + Chrome under puppeteer

Is it possible to detect in javascript that HTTP request came from system where Chrome is running with xvbf under puppeteer? So in this case bot browser is headfull
user1802525
  • 63
  • 1
  • 7
0
votes
1 answer

Xvfb-run as a subprocess in Django running xfreerdp fails

I have a ThreadPoolExecutor object(rdp_connector_global) in a Dockerized Django application's view method calling the below method(_rdp_connect) via submit as follows: rdp_connector_global.submit(_rdp_connect, login.ip_address, login.remote_port,…
whywhywhy
  • 278
  • 1
  • 5
  • 15
0
votes
1 answer

Running cypress tests in parallel on single machine gives error

TLDR: issues in running parallel cypress tests in docker containers at the same machine in jenkins. I'm trying to run on single aws machine 2 docker instances of cypress to run different suite in parallel at the same time. I've encountered issues…
avivamg
  • 12,197
  • 3
  • 67
  • 61
0
votes
0 answers

Run Xvfb and bin/bash in Dockerfile

I have a docker container that uses as an entrypoint /bin/bash. Once in the container, I can start xvfb in this way: Xvfb :1 -screen 0 1024x768x24 +extension GLX +render -noreset >> xsession.log 2>&1 & However, I would like this command to be…
Vaaal88
  • 591
  • 1
  • 7
  • 25
0
votes
1 answer

Where do I add option " {"xvfb": ""}." for xvfb?

I have installed a Python library called eml2png. This library has a dependency on "wkhtmltopdf" which I have also installed. When I try making a call, I get the following error: You need to install xvfb(sudo apt-get install xvfb, yum install…
Dave
  • 2,473
  • 2
  • 30
  • 55
0
votes
1 answer

XVFB on Jenkins connecting to wrong display. Display shows black screen

I am trying to execute headless chrome Selenium tests via Jenkins using XVFB on UBUNTU AWS/VM. My Jenkins XVFB config is: Pre-build Execute Shell: export DISPLAY=:98 x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :98 -auth…
Afsal
  • 404
  • 3
  • 7
  • 24
0
votes
0 answers

Problem with running GUI applications inside docker containers

I have been trying to run a GUI application inside a docker container and have spent a lot of time getting it to work but it's not working. This is how I try to run the docker container: sudo docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e…
Kevin T
  • 1
  • 1