Skip to content

Instantly share code, notes, and snippets.

@ManuelTS
Created September 28, 2017 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ManuelTS/99ea91747889d6934b5c5bb114a4a292 to your computer and use it in GitHub Desktop.
Save ManuelTS/99ea91747889d6934b5c5bb114a4a292 to your computer and use it in GitHub Desktop.
Installs CasperJS in your Debian/Ubuntu System.
#!/usr/bin/env bash
# Installs CasperJS in your Debian/Ubuntu System. Idea taken from http://docs.casperjs.org/en/latest/installation.html
#
# After you installed PhantomJS with https://gist.github.com/ManuelTS/935155f423374e950566d05d1448038d
# run this script as root with:
# sudo sh install_casperJs.sh
CASPER_JS="casperjs"
cd /usr/local/share/
git clone git://github.com/casperjs/$CASPER_JS.git
cd /usr/local/share/$CASPER_JS
ln -sf /usr/local/share/$CASPER_JS/bin/$CASPER_JS /usr/local/share/$CASPER_JS
ln -sf /usr/local/share/$CASPER_JS/bin/$CASPER_JS /usr/local/bin/$CASPER_JS
ln -sf /usr/local/share/$CASPER_JS/bin/$CASPER_JS /usr/bin/$CASPER_JS
echo "Installed CasperJS version:" && $CASPER_JS --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment