Created
January 22, 2018 16:54
-
-
Save xikaos/2fbd16deef8b0747cc85011b4a4c3fd7 to your computer and use it in GitHub Desktop.
Download/link Phantomjs bin
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
#!/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