encyclopegia.org

Xvfb

Xvfb or X virtual framebuffer is a display server implementing the X11 display server protocol.[src] In contrast to other display servers, Xvfb performs all graphical operations in virtual memory without outputting to any screen.[src] From the point of view of an X client app, it acts exactly like any other X display server, serving requests and sending events and errors as appropriate.[src] However, the frames are not necessarily displayed on a screen.[src] This virtual server does not require the computer it is running on to have any kind of graphics adapter, a screen or any input device.[src] Only a network layer is necessary.[src] Xvfb supports several X Protocol Extensions, such as Compositing and OpenGL GLX support via Mesa.[src]

Xvfb or X virtual framebuffer is a display server implementing the X11 display server protocol.[src] In contrast to other display servers, Xvfb performs all graphical operations in virtual memory without outputting to any screen.[src] From the point of view of an X client app, it acts exactly like any other X display server, serving requests and sending events and errors as appropriate.[src] However, the frames are not necessarily displayed on a screen.[src] This virtual server does not require the computer it is running on to have any kind of graphics adapter, a screen or any input device.[src] Only a network layer is necessary.[src] Xvfb supports several X Protocol Extensions, such as Compositing and OpenGL GLX support via Mesa.[src] ==Usage scenarios== Xvfb is primarily used for testing.[src] Since it shares code with the real X server, it can be used to test the parts of the code that are not related to the specific hardware.[src] It can be used to test clients in various conditions that would otherwise require a range of different hardware; for example, it can be used to test whether clients work correctly at depths or screen sizes that are rarely supported by hardware.[src] It can also be used for background running of clients; the xwd program or a similar program for capturing a screenshot can be used to actually see the result.[src] Moreover, it can facilitate running programs that require an X server to be active even when they do not display anything with it.[src] (e.g.[src] Browser Testing automation such as Selenium or Jenkins, Jira's Clover HTML reports, etc.) ==Usage examples== ===Screenshot example=== As an example, the following sequence of commands runs a virtual framebuffer X server as display :1, runs a program (xclock) on it, and captures the virtual screen in the file image.xwd using the xwd command: Xvfb :1 & xclock -display :1 & xwd -display :1 -silent -root -out image.xwd The result can be shown by running the xwud program ( xwud -in image.xwd ).[src] The program xvfb-run is often used to automate the process of finding an available display and managing authentication: xvfb-run command ===Remote control over SSH=== Xvfb is also used for remote control.[src] VNC over SSH can be faster than X11 over SSH, specially reducing latency over the internet.[src] In this case, Xvfb is often combined with a lightweight window manager (such as Fluxbox or Openbox) and a VNC server such as X11vnc.[src] A possible sequence of commands to start this on the server is: export DISPLAY=:1 Xvfb "$DISPLAY" -screen 0 1024x768x24 & fluxbox & x11vnc -display "$DISPLAY" -bg -nopw -listen localhost -xkb The next step is to start a SSH client such as PuTTY with tunneling to localhost port 5900 enabled.[src] A vncviewer can then connect to localhost to get remote control over the server.[src] ssh -N -T -L 5900:localhost:5900 user@remotehost & vncviewer -encodings 'copyrect tight zrle hextile' localhost:5900 x11vnc's man page also contains instructions.[src] Xvnc (not to be confused with x11vnc) is very similar to Xvfb.[src] ==References== ==External links== Xvfb manual page Xvfb + Firefox – making automatic screenshots of web pages, using Xvfb and Mozilla Firefox Xpra an alternative to Xvfb using a plain X11 server with dummy drivers[src]

29 sentences · 29 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Xvfb." encyclopegia.org, 2026, https://encyclopegia.org/wiki/xvfb. Accessed 27 November 2026.

Chicago

"Xvfb." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/xvfb.

APA

encyclopegia.org. (2026). Xvfb. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/xvfb

Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1364243131 · 0.5 · snapshot enwiki-001364243131

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.