This file contains hidden or 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
apt-get update | |
aptitude install xfonts-base xfonts-75dpi fontconfig xvfb | |
mkdir ~/src/wkhtmltopdf -p | |
cd ~/src/wkhtmltopdf | |
wget https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb | |
dpkg -i wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb | |
echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/local/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh | |
chmod a+rx /usr/bin/wkhtmltopdf.sh | |
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/sbin/wkhtmltopdf | |
/usr/local/sbin/wkhtmltopdf https://www.google.fr output.pdf |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
xenmigrate.py | |
Xen Migrate | |
Migrate XenServer to Open Source Xen | |
(c)2011 Jolokia Networks and Mark Pace -- jolokianetworks.com | |
[email protected] | |
AGPL License | |
source=open(refdir+filename,'rb') | |
while True: |