2011-10-28 00:01:36 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-01-09 23:27:25 +00:00
|
|
|
wget http://phantomjs.googlecode.com/files/phantomjs-1.4.1-linux-x86-dynamic.tar.gz
|
2012-01-10 00:25:16 +00:00
|
|
|
tar xzf phantomjs-*.tar.gz
|
2012-01-11 22:53:20 +00:00
|
|
|
mkdir ~/bin
|
2012-01-11 23:02:10 +00:00
|
|
|
ln -s `pwd`/phantomjs/bin/phantomjs ~/bin/phantomjs
|
2012-01-11 22:50:53 +00:00
|
|
|
Xvfb :0 2>/dev/null &
|
|
|
|
|
|
|
|
version=`phantomjs --version`
|
|
|
|
if [ "$?" = "0" ]; then
|
|
|
|
echo "PhantomJS $version installed successfully"
|
|
|
|
else
|
|
|
|
echo "Something went wrong with PhantomJS setup"
|
2012-01-11 22:59:36 +00:00
|
|
|
ls -la ~/bin/phantomjs
|
|
|
|
env
|
2012-01-11 22:50:53 +00:00
|
|
|
exit 1
|
|
|
|
fi
|