Permalink
Browse files

fixed proxy configuration & update readme to reflect changes, includi…

…ng the need for a reboot
  • Loading branch information...
1 parent 133a384 commit 5c86d067e9e3fe6bfc39962e6d04e3cdc56110d2 lab1 committed Jul 15, 2011
Showing with 20 additions and 21 deletions.
  1. +7 −1 README
  2. +0 −1 configure_proxy.sh
  3. +12 −19 setup.sh
  4. +1 −0 shim.js
View
8 README
@@ -1,5 +1,7 @@
ABOUT SHIM
-Shim is a project developed by the Boston Globe as a way to see how its web sites render on a variety of gadgets & browsers. It works by tweaking Wifi to enable the easy synchronization of browsing sessions across several devices, with no client configuration needed.
+Shim is a node.js app that enables simultaneous, synced web surfing across a variety of devices and browsers.
+
+Shim was developed by the Boston Globe as a timesaving way to see how its web sites render on a variety of gadgets & browsers. It works by tweaking Wifi to enable the easy synchronization of browsing sessions across several devices, with no client configuration needed.
This makes cross-browser and cross-device testing much easier. With one click, it's possible to see a page rendered on devices of varying screen size, input technology, etc.
@@ -21,6 +23,10 @@ INSTALLING SHIM
2 git clone git@github.com:marstall/shim.git
3 cd shim
4 sudo ./setup.sh
+5 Under Control Panel/Sharing, turn on Internet Sharing
+5 restart your Mac
+6 cd shim
+7 sudo ./configure_proxy.sh
RUNNING SHIM
View
@@ -6,7 +6,6 @@ echo "Adding firewall rule to forward all port-80 WiFi passthrough traffic to lo
sudo ipfw delete 02000
sudo ipfw -q add 02000 fwd 127.0.0.1,3128 tcp from any to any dst-port 80 in recv en1
-echo "Setting new.inet.ip flags to allow transparent-proxying ..."
sudo sysctl -w net.inet.ip.forwarding=1
sudo sysctl -w net.inet.ip.fw.enable=1
sudo sysctl -w net.inet.ip.fw.verbose=1
View
@@ -1,22 +1,15 @@
-#echo "installing npm ..."
-#sudo curl http://npmjs.org/install.sh | sudo sh
+echo "installing npm ..."
+sudo curl http://npmjs.org/install.sh | sudo sh
-# echo "installing node.js packages ..."
-#sudo npm install socket.io
-#sudo npm install http-proxy
-#sudo npm install ejs
+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
-echo "setting network interface privileges ..."
-sudo chgrp admin /dev/bpf*
-sudo chmod g+rw /dev/bpf*
-
-echo "Adding firewall rule to forward all port-80 WiFi passthrough traffic to localhost:3128 ..."
-sudo ipfw delete 02000
-sudo ipfw -q add 02000 fwd 127.0.0.1,3128 tcp from any to any dst-port 80 in recv en1
-
-echo "Setting new.inet.ip flags to allow transparent-proxying ..."
-sudo sysctl -w net.inet.ip.forwarding=1
-sudo sysctl -w net.inet.ip.fw.enable=1
-sudo sysctl -w net.inet.ip.fw.verbose=1
-sudo sysctl -w net.inet.ip.scopedroute=0
+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
+./configure_proxy.sh
View
@@ -283,6 +283,7 @@ server = http.createServer(function (req, res)
{
handle_attach(req,res);
console.log("device attaching.")
+ return;
}
if (is_settable(req))//&&ready_for_text_html(req,_path))

0 comments on commit 5c86d06

Please sign in to comment.