Created
September 15, 2014 17:01
-
-
Save smali-kazmi/8447758b0301c26bd34e to your computer and use it in GitHub Desktop.
Install wkhtmltopdf on vagrant ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To Install wkhtmltopdf | |
sudo apt-get install -y wkhtmltopdf | |
sudo apt-get install -y xvfb | |
echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf $*' | sudo tee /usr/bin/wkhtmltopdf.sh > /dev/null | |
sudo chmod a+x /usr/bin/wkhtmltopdf.sh | |
sudo ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf | |
sudo apt-get install libicu48 |
Update FYI: with an up to date vagrant box (or up to date Homestead), you will need to do this:
sudo apt-get install libicu63
Instead of this:
sudo apt-get install libicu48
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I got this error after installing and trying out the wkhtmltopdf: