Browse Webpages in sync


#1

I want to share a script for browsing in collaborative mode.

Install

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev

Install these packages needed by PhantomJS to work correctly.

sudo apt-get install libfreetype6 libfreetype6-dev
sudo apt-get install libfontconfig1 libfontconfig1-dev

Get the PhantomJS

cd ~
export PHANTOM_JS="phantomjs-1.9.8-linux-x86_64"
wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2
sudo tar xvjf $PHANTOM_JS.tar.bz2

Once downloaded, move Phantomjs folder to /usr/local/share/ and create a symlink:

sudo mv $PHANTOM_JS /usr/local/share
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin

Now, It should have PhantomJS properly on your system.

phantomjs --version

Download and extract the archive from this adress:

http://transmissiongate.com/cobrowsing.zip

go to the cobrowsing folder

cd cobrowsing

Edit this files and replace ‘185.57.82.200’ with your IP address:

server.js
/scripts/browser.js 
/scripts/content.js

Save this files and run install:

npm install

Run the webproxy:

node wsproxy.js

The proxy will run on port 8081

Run the phantomjs

phantomjs --ignore-ssl-errors=true --web-security=false server.js

Open in webEntity the adress:

http://yourIP:8082

First user that will put an adress in the adress field will become master
Other users will see the browsing action of the master.

Happy Browsing!