Last active
October 13, 2015 14:38
-
-
Save ikawka/4210853 to your computer and use it in GitHub Desktop.
xvfb-run
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
#wkhtmltoimage ge the amd64 | |
http://code.google.com/p/wkhtmltopdf/wiki/compilation | |
#get binary | |
wget http://wkhtmltopdf.googlecode.com/files/wkhtmltoimage-0.11.0_rc1-static-amd64.tar.bz2 | |
#extract | |
tar -xvf wkhtmltoimage-0.11.0_rc1-static-amd64.tar.bz2 | |
#move to /usr/local/bin/ | |
mv wkhtmltoimage-amd64 /usr/local/bin/ | |
#make a link | |
cd /usr/bin && ln -s /usr/local/bin/wkhtmltoimage-amd64 wkhtmltoimage | |
#the Xvfb Server | |
yum install Xvfb xorg-x11-fonts* libXfont | |
#test install | |
Xvfb :1 -screen 0 1024x768x24 |
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
#adding xvfb-run command for X-Server | |
#get the source | |
wget http://svn.exactcode.de/t2/trunk/package/xorg/xorg-server/xvfb-run.sh | |
#save to /usr/local/bin | |
#make executable | |
chmod +x xvfb-run.sh | |
#rename | |
mv xvfb-run.sh xvfb-run | |
#make a sym link to /usr/bin for apache | |
cd /usr/bin && ln -s /usr/local/bin/xvfb-run xvfb-run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment