Last active
October 17, 2015 21:43
-
-
Save scrapoxy/f72daaebb7243911766e to your computer and use it in GitHub Desktop.
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
#!/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