Xvfb
Virtual framebuffer X server
TLDR
Start virtual display
SYNOPSIS
Xvfb [:display] [options]
DESCRIPTION
Xvfb (X Virtual FrameBuffer) is an X server that performs all graphical operations in memory without any physical display. It implements the X11 protocol, allowing X applications to run without visible output.
Common use cases include running GUI applications on headless servers, automated testing of graphical applications, rendering graphics for web services, and CI/CD pipelines that require X applications.
The xvfb-run wrapper script simplifies usage by automatically selecting a display number and handling authentication.
Default screen configuration is 1280x1024x24 (width x height x depth in bits).
PARAMETERS
:display
Display number (default: 0).-screen num WxHxD
Configure screen: number, width x height x depth.-pixdepths list
Additional pixmap depths to support.-fbdir dir
Directory for memory-mapped framebuffer files.-shmem
Use shared memory for framebuffer.-linebias n
Adjust line pixelization.-blackpixel value
Set black pixel value.-whitepixel value
Set white pixel value.
XVFB-RUN OPTIONS
-a, --auto-servernum
Find available display number automatically.-s args
Arguments to pass to Xvfb.-e file
File to store Xvfb error output.-f file
Authority file to use.-n num
Server number to use.
CAVEATS
No GPU acceleration. Some applications may behave differently without real display. Memory usage scales with screen size and depth. Applications expecting specific display features may fail.
HISTORY
Xvfb has been part of the X.Org server distribution since the X11R5 release. It was developed to enable X applications to run on systems without display hardware, supporting server-side rendering and automated testing long before headless browser technologies.
