Skip to content

Instantly share code, notes, and snippets.

@dirkk0
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirkk0/f7169b42055a013758c3 to your computer and use it in GitHub Desktop.
Save dirkk0/f7169b42055a013758c3 to your computer and use it in GitHub Desktop.
Installing ppnet/ppnet-proxy on EC2/Ubuntu14
sudo apt-get update
sudo apt-get -y install couchdb
# curl http://localhost:5984
sudo apt-get install -y python-software-properties
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs
sudo apt-get install --yes git
git clone https://github.com/pixelpark/ppnet
git clone https://github.com/pixelpark/ppnet-proxy.git
sudo rm -r ppnet-proxy/www/
mv ppnet/www ppnet-proxy/
# get public ip
# curl http://169.254.169.254/latest/meta-data/public-ipv4 > public.ip
curl ifconfig.me/ip > public.ip
# write it to config.json
mv ppnet-proxy/www/config.json del.txt
sed -e "s/couchdb.simple-url.com/`cat public.ip`/g" del.txt > temp && mv temp del.txt
mv del.txt ppnet-proxy/www/config.json
cd ppnet-proxy; npm install; sudo node proxy.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment