Skip to content

Instantly share code, notes, and snippets.

@xikaos
Created January 22, 2018 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xikaos/2fbd16deef8b0747cc85011b4a4c3fd7 to your computer and use it in GitHub Desktop.
Save xikaos/2fbd16deef8b0747cc85011b4a4c3fd7 to your computer and use it in GitHub Desktop.
Download/link Phantomjs bin
#!/bin/bash
#Wget Phantomjs
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
#Extract files
tar -xf phantomjs-2.1.1-linux-x86_64.tar.bz2
#Change to dir
cd phantomjs-2.1.1-linux-x86_64
#Create symlink to user
sudo ln -s $(pwd)/bin/phantomjs /usr/local/bin/phantomjs
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment