Questions tagged [xvfb]

14 questions
7
votes
2 answers

How do I enable XRandR in Xvfb or disable it in firefox when running firefox headless?

I am trying to start firefox headless. The following is the beginning of the shell script that starts it: #!/bin/sh Xvfb :99 >/dev/null 2>&1 & XVFB=$! sleep 3 firefox --display=:99 >/dev/null 2>&1 & FIREFOX=$! When this script is run, the…
Utkonos
  • 332
  • 3
  • 12
4
votes
2 answers

Xvfb on debian not installing properly from apt-get

I try to install xfvb for headless firefox and selenium tests, but after installing by: apt-get install xvfb I got only those files on server (search by…
Piotr Müller
  • 113
  • 1
  • 4
  • 9
3
votes
1 answer

simulate keystrokes in headless environment

I need to simulate keystrokes in headless environment. All xte, xdotool and many C++ designed to work with X11 window I've tried xdotool, which it throw some error: xdotool type "aaaaa" Error: Can't open display: (null) Failed creating new xdo…
apasajja
  • 167
  • 3
  • 10
3
votes
1 answer

How to disable Xvfb using TCP ports when using pyvirtualdisplay (Python)?

Trying to use pyvirtualdisplay for Python to start some applications with a virtual Xvfb X terminal. However, we've seen port clashes and would like to disable Xvfb from using TCP ports. I have read this question about doing something very…
Juan Carlos Coto
  • 677
  • 2
  • 6
  • 13
2
votes
0 answers

Issue with Headless selenium on CentOS 7 Minimal

Required: I'm trying to run headless selenium (using PHPUnit) on fresh CentOS 7 minimal. Problem: It seems I installed everything correctly but firefox is not launching and my selenium web driver stuck at 14:45:31.646 INFO - Launching Firefox....…
Kapil Sharma
  • 155
  • 1
  • 1
  • 8
1
vote
2 answers

How to start headless X upon boot for non-root users in Debian

My requirement is a little different from this one in that I would like to launch a window manager for each of two non-root users upon boot. For testing, first I prepare the following lines in .xinitrc and/or .xsession in home directories of user2…
Masa O
  • 41
  • 1
  • 7
1
vote
0 answers

How to watch firefox/chrome running headlessly [under xvfb] on remote headless machine?

I have my selenium tests running on a jenkins server installed on a ubuntu headless machine [remote on AWS] using xvfb buffer, there are times when the tests gives false failures may be because of resolution/time/configuration issues but they just…
0
votes
1 answer

Configure Singularity to do headless rendering / use OpenGL / glxgears / glxinfo

I want to do headless rendering on a server where I do not have root permissions. Therefore, I created a Singularity container like this: Bootstrap: docker From: nvidia/cuda:9.0-runtime-ubuntu16.04 %post apt-get update && apt-get -y install \ …
thigi
  • 101
  • 4
0
votes
1 answer

Unable to run X server on a remote VPS server using xvfb

My app uses the library https://github.com/wkhtmltopdf/wkhtmltopdf which requires X server. Here's a workaround: echo -e '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf -q $*' > /usr/bin/wkhtmltopdf.sh chmod a+x…
jerry
  • 111
  • 1
  • 3
0
votes
1 answer

How to install Xvfb without root access (tried with linuxbrew)

I have non-root access to a headless Debian server that runs Jenkins. I want to build Unity3D on that Jenkins, which requires me to install Xvfb. Because it is a headless server, X11 is not installed, and because I don't have root access, I can't…
Amedee Van Gasse
  • 308
  • 3
  • 18
0
votes
0 answers

How to handle error: service xvfb does not support chkconfig?

When I followed the installation instructions below to install xvfb, I get the following error: service xvfb does not support chkconfig Installation Instructions Install Xvfb (via the RHEL Server Optional repository) # yum -y install…
Chris Hansen
  • 139
  • 1
  • 1
  • 4
0
votes
0 answers

Xvfb crashes and my server reboots

I'm trying to use Xvfb on one of my server with the following configuration : Server : proxmox-ve-2.6.32: 3.4-165 (running kernel: 2.6.32-20-pve OpenVZ Container : Ubuntu 14.04.3 LTS When launching this command, my server crash after some minutes…
Kevin
  • 59
  • 5
0
votes
1 answer

Server-side print to PDF of HTML file in /tmp?

I'm working on a project where we need consistent printing of certain pages, and PDFs are made for that. The customers also like to have some local copies, so this would be a two-fold win. Things get really precarious in printing as far as where…
kavisiegel
  • 349
  • 1
  • 3
  • 12
-1
votes
2 answers

Why cron job is not able to open X display connection

I have a java app rendering some sprites using LWJGL and OpenGL. It works fine until I move it to remote virtual machine with no phisical graphic card, Mesa 3d with related stuff is used to emulate it there. When I connect via ssh and start job…
Viktor Stolbin
  • 211
  • 1
  • 2
  • 9