Skip to content

Instantly share code, notes, and snippets.

@azisaka
Last active July 25, 2017 15:38
Show Gist options
  • Save azisaka/86a77b1cfe28870f68c71a0e6569db7a to your computer and use it in GitHub Desktop.
Save azisaka/86a77b1cfe28870f68c71a0e6569db7a to your computer and use it in GitHub Desktop.
Download and Install PhantomJS
#!/bin/bash
PHANTOMJS=phantomjs-2.1.1-linux-x86_64
PHANTOMJS_FILE=$PHANTOMJS.tar.bz2
cd /tmp
curl -LO https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMJS_FILE
tar xvjf $PHANTOMJS_FILE
mv $PHANTOMJS/bin/phantomjs /usr/local/bin
rm -rf $PHANTOMJS
rm /tmp/$PHANTOMJS_FILE
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment