Questions tagged [xvfb]

Xvfb is an X server for X11, but one that uses virtual memory to create a virtual frame buffer so that it can run on machines with no hardware display devices. Screens with various resolutions and bit depths can be created for the user's particular purposes.

More information can be found at Ubuntu manpages, as the man page will only be available with man xvfb when it is installed. (It is not installed by default in Ubuntu.)

In the package description for xvfb, it is noted that:

 The primary use of this server was intended to be server testing,
 but other novel uses for it have been found, including testing clients
 against unusual depths and screen configurations, doing batch processing with
 Xvfb as a background rendering engine, load testing, as an aid to porting the
 X server to a new platform, and providing an unobtrusive way to run
 applications that don't really need an X server but insist on having one
 anyway.

Example

Run Google Chrome in a virtual frame buffer

Xvfb :99 -screen 0 1024x768x24 > /dev/null &
export DISPLAY=:99 && google-chrome -start-maximized http://example.com > /dev/null &
37 questions
8
votes
0 answers

libGl, fbConfigs, swrast error in ubuntu 16.04

Recently installed Ubuntu 16.04 64-bit desktop. Graphics: Gallium 0.4 on AMD OLAND (DRM 2.43.0, LLVM 3.8.0) When I have seen other link where they provide solution for Ubuntu with Nvidia not sure that will help since I have AMD Radeon. $ xvfb-run…
kumar
  • 515
8
votes
1 answer

How to use Xvfb in Ubuntu 14.04 with/without RandR?

I try to run Unit-Tests with Selenium running Firefox on my Ubuntu 14.04 Server. And I'm using Xvfb as described in this blog to simulate a virtual display to show Firefox in. But Xvfg somehow doesn't load/work with RandR. Because whenever I try…
Itchy
  • 271
7
votes
0 answers

Xvfb: GLX error when using nvidia driver

I would like to run some headless unit tests, my problem can be recreated with just glxinfo. I try to run: xvfb-run glxinfo It prints multiple lines about GLX: Xlib: extension "GLX" missing on display ":99". If I try to run Xvfb on…
Dorian
  • 270
7
votes
2 answers

Vertical resolution over VNC multiplied by 12

I run Ubuntu 11.10 with 2 monitors at a resolution of 3840x1080. This is done via NVIDIA's TwinView mode. When I run the following command: x11vnc -safer -localhost -once -display :0 -ncache 10 -ncache_cr -geometry 3840x1080 and connect from a…
dpendolino
  • 14,310
  • 1
  • 17
  • 7
6
votes
1 answer

Extension “RANDR” missing on xvfb

Ubuntu: $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: optional Section:…
kekit
  • 61
5
votes
1 answer

Unable to get Virtual Frame Buffer / Display (Xvfb) Information with xdpyinfo

Ubuntu Server 16.04 running in VirtualBox Setup sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' sudo apt-get update sudo apt-get install xvfb dbus-x11…
5
votes
2 answers

Running Xvfb with firefox

I´m trying to run headlesless firefox with this command sudo xvfb-run -a firefox http://google.com so i get this error (process:9000): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Xlib: extension "RANDR" missing on…
Bessa
  • 85
4
votes
2 answers

install Chinese(and other utf-8) fonts for Xvfb?

I have installed these packages: apt-get install xvfb xfonts-base xfonts-75dpi xfonts-100dpi firefox But in my Firefox in Xvfb on Ubuntu Server, the Chinese characters look like: How to install proper fonts for my Xvfb? EDIT: I have also installed…
3
votes
0 answers

SDL cannot find video device within an Xvfb

I want to run a program that is dependent on SDL 1.2 as a graphics backend within an X virtual frame buffer. I'm using the xvfb-run command like so: xvfb-run --auto-servernum --server-num=1 -s 'fbdir /tmp/pics' my_program However, I end up getting…
brucei
  • 31
3
votes
1 answer

Configure xvfb for Vivid (15.04) as a service using systemd

Vivid switched from upstart to systemd. I used to have xfvb configured to run as a service under updstart. That has now broken. Under upstart, I had /etc/init/xvfb.conf: description "Xvfb X Server" start on (net-device-up and…
3
votes
1 answer

Is XVFB (X virtual framebuffer) Open Source?

Please tell me if XVFB is open source or not. If it is open source, please send me link for XVFB source package for Unix like operating systems.
prathap
  • 31
3
votes
1 answer

Install MS Fonts for xvfb-run in Ubuntu 14.04 server

I have a cron which runs and takes a screenshot of a specific url. The job is: xvfb-run --server-args="-screen 0, 1024x768x24" /usr/bin/cutycapt --min-width=1200 --min-height=1200 --delay=1000 --url=http://themer.mydomain.co.uk/_sh.php?id=1…
3
votes
2 answers

Missing fonts in Xvfb

I've installed Ubuntu 12.04.3 64-bit as a guest under VMplayer running on my Win7 host. After Ubuntu installs, I launch and open a terminal. I then enter the following: sudo apt-get update sudo apt-get install wine sudo apt-get install xvfb sudo…
gdaemon
  • 31
3
votes
3 answers

Can't get firefox to render the right size in a headless xvfb instance

I can start the xvfb instance just fine Xvfb :1 -screen 0 800x600x24 I can then launch firefox and have it load correctly but the window is always smaller than the resolution I set during the xvfb command. firefox http://www.ebay.com…
Ryan Detzel
  • 3,251
3
votes
1 answer

How do I get an application to display on a "dummy monitor"?

I have a GTK program which I would like to run from a console in one of the virtual terminals (over SSH, and locally). Is there a way to get this application(or any other GTK application, for future reference) to display to a dummy monitor instead…
nanofarad
  • 20,906
1
2 3