Xvfb - Wikipedia
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
Type | Display server |
---|---|
Website | x.org/releases/X11R7.7/doc/man/man1/Xvfb.1.xhtml |
Xvfb or X virtual framebuffer is a display server implementing the X11 display server protocol. In contrast to other display servers, Xvfb performs all graphical operations in virtual memory without showing any screen output. From the point of view of the X client app, it acts exactly like any other X display server, serving requests and sending events and errors as appropriate. However, no output is shown. 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. Only a network layer is necessary. Xvfb supports several X Protocol Extensions, such as Compositing and OpenGL GLX support via Mesa.[1]
Usage scenarios
[edit]Xvfb is primarily used for testing:
- 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.
- 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.
- Background running of clients. (the xwd program or a similar program for capturing a screenshot can be used to actually see the result)
- In General, Running programs that require an X server to be active even when they do not display anything with it. (e.g. Browser Testing automation such as Selenium[2] or Jenkins,[3] Jira's Clover HTML reports, etc)
Usage examples
[edit]Screenshot example
[edit]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-outimage.xwdThe result can be shown by running the xwud program (xwud -in image.xwd).
The program xvfb-run is often used to automate the process of finding an available display and managing authentication:
xvfb-runcommandRemote control over SSH
[edit]Xvfb is also used for remote control. VNC over SSH can be faster than X11 over SSH,[4] specially reducing latency over the internet.[5] In this case, Xvfb is often combined with a lightweight window manager (such as Fluxbox or Openbox) and a VNC server such as X11vnc. A possible sequence of commands to start this on the server is:
exportDISPLAY=:1 Xvfb"$DISPLAY"-screen01024x768x24& fluxbox& x11vnc-display"$DISPLAY"-bg-nopw-listenlocalhost-xkbThe next step is to fire up a SSH client such as PuTTY with tunneling to localhost port 5900 enabled. A vncviewer can then connect to localhost to get remote control over the server.
ssh-N-T-L5900:localhost:5900user@remotehost& vncviewer-encodings'copyrect tight zrle hextile'localhost:5900x11vnc's man page also contains instructions.
Xvnc (not to be confused with x11vnc) is very similar to Xvfb.
See also
[edit]- X11vnc
- headless software
References
[edit]- ^ "904851 – xvfb-run glxinfo fails". bugzilla.redhat.com. -- I think you also won't get GLX if you don't have mesa-dri-drivers installed in the chroot. -- Thanks. That helped.
- ^ "How to Run Your Tests Headless with Xvfb | Elemental Selenium". elementalselenium.com. 18 June 2024.
- ^ "Xvfb". plugins.jenkins.io. 14 July 2021.
- ^ "Accelerating Remote X Performance". dav.lbl.gov.
- ^ "VNC: A Faster Alternative to X11 - HECC Knowledge Base". www.nas.nasa.gov.
External links
[edit]- 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
Từ khóa » Xorg Xvfb
-
XVFB - X.Org
-
Xorg-server-xvfb 21.1.4-1 (x86_64) - Arch Linux
-
How To Install Xorg-x11-server-Xvfb On CentOS 7 - Installati.one
-
How To Run Your Tests Headlessly With Xvfb - Elemental Selenium
-
Install And Configure Xserver Virtual Frame Buffer (Xvfb) - TechDocs
-
Installing The X Virtual Frame Buffer On AIX Or Linux - IBM
-
Xorg X11 Server Xvfb Cos7 X86 64 - ::
-
SLC6X: User Interface/x: Xorg-x11-server-Xvfb - Ftp
-
How To Install Xvfb On Ubuntu - Linux Hint
-
Issues To Be Aware Of When Running On Linux
-
Debian -- Details Of Package Xvfb In Bullseye
-
Ubuntu – Details Of Package Xvfb In Focal
-
Xvfb (fake X11) Linux Without Display | Scientific Computing - SciVision
-
Tree - Rpms/xorg-x11-server - Fedora Package Sources