XVFB on Windows Subsystem for Linux

Related: Install Xming X11 server for GUI programs in Windows Subsystem for Linux.


Use XVFB to create hidden desktop windows (say, Python Matplotlib figures) without having an actual X11 server.

This technique is effective on regular Linux systems as well as Windows Subsystem for Linux.

  1. install XVFB
    apt install xvfb
    
  2. add to ~/.bashrc
    Xvfb :99 &
    export DISPLAY=:99
    
  3. Open a new Terminal

Leave a Comment