-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·23 lines (18 loc) · 851 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·23 lines (18 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
echo "installing npm ..."
sudo curl http://npmjs.org/install.sh | sudo sh
echo "installing node.js packages ..."
sudo npm install socket.io@0.7.7
sudo npm install http-proxy@0.5.11
sudo npm install ejs@0.4.3
sudo npm install ejs@0.4.3
sudo npm install -g supervisor
echo "copying new.inet.ip flags to /etc/sysctl.conf to allow transparent-proxying ..."
sudo touch /etc/sysctl.conf
sudo cp /etc/sysctl.conf __sysctl.conf
sudo cat _sysctl.conf>>__sysctl.conf
sudo cp __sysctl.conf /etc/sysctl.conf
echo '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC \
"-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist \
version="1.0"><dict><key>Kernel \
Flags</key><string>net.inet.ip.scopedroute=0</string></dict></plist>' > /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
./configure_proxy.sh