Skip to content

Instantly share code, notes, and snippets.

@westonwatson
Created December 1, 2013 15:40
Show Gist options
  • Save westonwatson/7735462 to your computer and use it in GitHub Desktop.
Save westonwatson/7735462 to your computer and use it in GitHub Desktop.
install nodejs phantomjs and casperjs
apt-get update
apt-get -y install rpcbind nfs-common
apt-get -y install libfontconfig
apt-get -y install git
wget http://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2
tar -xvf phantomjs-1.9.1-linux-x86_64.tar.bz2
sudo mv phantomjs-1.9.1-linux-x86_64 /usr/local/src/phantomjs
rm phantomjs-1.9.1-linux-x86_64.tar.bz2
sudo ln -sf /usr/local/src/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
phantomjs --version
cd /usr/local/src/
sudo git clone git://github.com/n1k0/casperjs.git
sudo ln -sf /usr/local/src/casperjs/bin/casperjs /usr/local/bin/casperjs
casperjs --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment