From 93f2648106a8af3148ae70feeca1d7363e29f780 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Sep 2014 15:47:01 +0100 Subject: [PATCH] Preamble --- install-freedombone.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 1a1ea38b..29ab5110 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -30,10 +30,18 @@ # su (password "root") # passwd # adduser $MY_USERNAME -# exit -# exit (again) -# scp install-freedombone.sh $MY_USERNAME@192.168.7.2:/home/$MY_USERNAME -# ssh $MY_USERNAME@192.168.7.2 +# sed -i '/iface eth0 inet dhcp/a\iface eth0 inet static' /etc/network/interfaces +# sed -i '/iface eth0 inet static/a\ dns-nameservers 213.73.91.35 85.214.20.141' /etc/network/interfaces +# sed -i "/iface eth0 inet static/a\ gateway $MY_ROUTER_IP" /etc/network/interfaces +# sed -i '/iface eth0 inet static/a\ netmask 255.255.255.0' /etc/network/interfaces +# sed -i "/iface eth0 inet static/a\ address $MY_BBB_STATIC_IP" /etc/network/interfaces +# sed -i '/iface usb0 inet static/,/ gateway 192.168.7.1/ s/^/#/' /etc/network/interfaces +# shutdown now +# +# Connect BBB to router +# +# scp install-freedombone.sh $MY_USERNAME@$MY_BBB_STATIC_IP:/home/$MY_USERNAME +# ssh $MY_USERNAME@$MY_BBB_STATIC_IP # su # ./install-freedombone.sh [DOMAIN_NAME] [MY_USERNAME]