/ home / Phantom JS / phantom js - how to install it on debian & what it can do /

Phantom JS - How to Install it on Debian & What it can do

11:14 pm, February 25, 2016 655 232 1.2 @ 200 wpmrate up KruXoR

Original Post Date: 4:03 am, December 8, 2014

So i recently came across PhantomJS. I know its probably been around for a while, but i thought i would give it a go. Its pretty cool.

Heres how i installed it on my Debian server, as it does not have an apt package that i know of.

cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo tar xjf phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs

test that its working with:

phantomjs -v

It should print out its version number: 1.9.7

Right now what can we do with PhantomJS?

Well here is the official list of examples.

Want to take a screen shot of your webpage and save it to a jpg or png? Check out the code below to do it (you can also switch the .jpg for .png if you want a higher quality file:

11:14 pm, February 25, 2016 655 232



Add Report



This is a site where i basically just post whatever i feel like at the time, it has no one particular topic but usually. Just my ideas and links and random bits of code that i find.

Follow Me..



Looking for the kruxor minecraft server mc.kruxor.com? we have migrated it to... icekraft.com if you want to play on there just connect to play.icekraft.com:25535 or mc.kruxor.com should also still work.

Favorite Links