
Fix “wkhtmltopdf: cannot connect to X server”
We got this error on a fresh installation of CentOS when trying to convert webpages to pdf’s using wkhtmltopdf: We’re getting this error because we do not have any sort of GUI environment installed (e.g. GNOME, KDE). To fix this…