Forrest logo
tool overview
On this page you find all important commands for the CLI tool xvfb-run. If the command you are looking for is missing please ask our AI.

xvfb-run

xvfb-run is a command line tool often used in Unix-like systems that enables the execution of graphical applications without a display server or a physical monitor connected to the machine. It stands for X Virtual Framebuffer run and is commonly used for headless software testing and automation.

By using xvfb-run, you can run an application, typically an X Window System application, in a virtual framebuffer environment. This means the application can create and interact with graphical elements, even though it doesn't have access to a physical display.

This tool is particularly useful for testing and running GUI applications in server environments, where there is no display available or where automating GUI tasks is necessary. It provides an isolated, virtual display where the application can run without interfering with the user's graphical environment.

The xvfb-run tool sets up a virtual framebuffer using the Xvfb (X Virtual Framebuffer) server, launches the specified application within this framebuffer, and captures the output, making it possible to display it in situations where a physical display is unavailable.

It also offers options for specifying display size, screen number, and other settings. Furthermore, it can be used in combination with other tools, such as Xephyr, to create nested X environments for additional testing or isolation purposes.

xvfb-run is a valuable tool in the arsenal of developers and system administrators who need to run graphical applications in headless environments or perform automated GUI testing on Unix-like systems.

List of commands for xvfb-run:

  • xvfb-run:tldr:167d1 xvfb-run: Run the specified command in a virtual X server.
    $ xvfb-run ${command}
    try on your machine
    explain this command
  • xvfb-run:tldr:3b94e xvfb-run: Pass arguments to the Xvfb server.
    $ xvfb-run --server-args "${-screen 0 1024x768x24}" ${command}
    try on your machine
    explain this command
  • xvfb-run:tldr:d987f xvfb-run: Try to get a free server number, if the default (99) is not available.
    $ xvfb-run --auto-servernum ${command}
    try on your machine
    explain this command
tool overview