Last active
August 29, 2015 14:16
-
-
Save dirkk0/f7169b42055a013758c3 to your computer and use it in GitHub Desktop.
Installing ppnet/ppnet-proxy on EC2/Ubuntu14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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