Skip to content

Instantly share code, notes, and snippets.

@fabienvauchelles
Last active October 17, 2015 21:43
Show Gist options
  • Save fabienvauchelles/f72daaebb7243911766e to your computer and use it in GitHub Desktop.
Save fabienvauchelles/f72daaebb7243911766e to your computer and use it in GitHub Desktop.
#!/bin/sh
# Command is:
# curl --silent --location <URL> | sudo bash -
# Install NodeJS
curl --silent --location https://deb.nodesource.com/setup_0.12 | bash -
apt-get install --yes nodejs
# Install proxy
curl https://gist.githubusercontent.com/fabienvauchelles/41ed9142368bff9ba796/raw/505f6037cf2f6496552cd912b321fdf2faed9842/proxy.js > /root/proxy.js
# Install at startup
curl https://gist.githubusercontent.com/fabienvauchelles/41ed9142368bff9ba796/raw/505f6037cf2f6496552cd912b321fdf2faed9842/proxyup.sh > /etc/init.d/proxyup.sh
chmod a+x /etc/init.d/proxyup.sh
update-rc.d proxyup.sh defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment