X: ubuntu, the complete method. I installed wkhtmltopdf on linunx (ubuntu) and found several methods and it hasn’t worked. Finally, it works. Now the methods on the Internet are messy and terrible.
1. Check the system version
cat /proc/version
2. Execute download and install wkhtmltopdf
How to use it, just stick this bunch to the linux window for execution, wait for the installation to complete, it will be installed in /usr/local/bin/wkhtmltopdf by default
sudo su
apt-get update
apt-get install wkhtmltopdf
apt-get install xvfb
echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh
chmod a+rx /usr/bin/wkhtmltopdf.sh
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf
/usr/local/bin/wkhtmltopdf http://www.baidu.com output.pdf