|
@@ -57,53 +57,11 @@
|
57
|
57
|
# Prerequisites
|
58
|
58
|
# =============
|
59
|
59
|
#
|
60
|
|
-# Debian image sites:
|
61
|
|
-# http://ynezz.ibawizard.net/beagleboard/jessie/
|
62
|
|
-# https://rcn-ee.net/deb/rootfs/jessie/
|
|
60
|
+# You will need to initially prepare a microSD card with a Debian
|
|
61
|
+# image on it. This can be done using the initial_setup.sh script.
|
63
|
62
|
#
|
64
|
|
-# cd ~/
|
65
|
|
-# wget https://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2014-08-13.tar.xz
|
66
|
|
-#
|
67
|
|
-# Verify it.
|
68
|
|
-#
|
69
|
|
-# sha256sum debian-jessie-console-armhf-2014-08-13.tar.xz
|
70
|
|
-# fc225cfb3c2dfad92cccafa97e92c3cd3db9d94f4771af8da364ef59609f43de
|
71
|
|
-#
|
72
|
|
-# Uncompress it.
|
73
|
|
-#
|
74
|
|
-# tar xJf debian-jessie-console-armhf-2014-08-13.tar.xz
|
75
|
|
-# cd debian-jessie-console-armhf-2014-08-13
|
76
|
|
-#
|
77
|
|
-# sudo apt-get install u-boot-tools dosfstools git-core kpartx wget parted
|
78
|
|
-# sudo ./setup_sdcard.sh --mmc /dev/sdX --dtb beaglebone
|
79
|
|
-#
|
80
|
|
-# When finished eject the micrtoSD then reinsert it
|
81
|
|
-#
|
82
|
|
-# sudo cp /media/$USER/BOOT/bbb-uEnv.txt /media/$USER/BOOT/uEnv.txt
|
83
|
|
-# sync
|
84
|
|
-#
|
85
|
|
-# Eject microSD, insert into BBB, attach USB cable between BBB and laptop.
|
86
|
|
-# On Ubuntu wait until you see the "connected" message.
|
87
|
|
-#
|
88
|
|
-# ssh-keygen -f "/home/$USER/.ssh/known_hosts" -R 192.168.7.2
|
89
|
|
-# ssh debian@192.168.7.2 (password "temppwd")
|
90
|
|
-# su (password "root")
|
91
|
|
-# passwd
|
92
|
|
-# adduser $MY_USERNAME
|
93
|
|
-# sed -i '/iface eth0 inet dhcp/a\iface eth0 inet static' /etc/network/interfaces
|
94
|
|
-# sed -i '/iface eth0 inet static/a\ dns-nameservers 213.73.91.35 85.214.20.141' /etc/network/interfaces
|
95
|
|
-# sed -i "/iface eth0 inet static/a\ gateway $MY_ROUTER_IP" /etc/network/interfaces
|
96
|
|
-# sed -i '/iface eth0 inet static/a\ netmask 255.255.255.0' /etc/network/interfaces
|
97
|
|
-# sed -i "/iface eth0 inet static/a\ address $MY_BBB_STATIC_IP" /etc/network/interfaces
|
98
|
|
-# sed -i '/iface usb0 inet static/,/ gateway 192.168.7.1/ s/^/#/' /etc/network/interfaces
|
99
|
|
-# shutdown now
|
100
|
|
-#
|
101
|
|
-# Connect BBB to router
|
102
|
|
-#
|
103
|
|
-# scp install-freedombone.sh $MY_USERNAME@$MY_BBB_STATIC_IP:/home/$MY_USERNAME
|
104
|
|
-# ssh $MY_USERNAME@$MY_BBB_STATIC_IP
|
105
|
|
-# su
|
106
|
|
-# ./install-freedombone.sh [DOMAIN_NAME] [MY_USERNAME]
|
|
63
|
+# If you are not using a Beaglebone Black then just prepare the
|
|
64
|
+# target system with a fresh installation of Debian Jessie.
|
107
|
65
|
|
108
|
66
|
DOMAIN_NAME=$1
|
109
|
67
|
MY_USERNAME=$2
|