Running Calibre’s ebook-convert on Headless Servers with Xvfb
When GitBook or other tools call Calibre’s ebook-convert command on a headless server, you’ll hit this error: RuntimeError: X server required. If you are running on a headless machine, use xvfb This happens because Calibre needs an X11 display server, even though you’re just converting files. The solution is to wrap ebook-convert with xvfb-run, which…
