Installation on a Beaglebone Black Wireless from Source
Download Debian Stretch IoT Image
Flash image to micro sd card with Balena Etcher and insert into beaglebone
Connect to beaglebone wifi access point (SSID: BeagleBone-XXXX, PWD: BeagleBone)
Login to beaglebone
ssh [email protected] # password: temppwd
Change the password to something more secure
passwd # default password is temppwd --> for non-secure images just use `openag12`
Expand the file system
df -h / # view current partition size
sudo /opt/scripts/tools/grow_partition.sh
sudo reboot
df -h / # View updated partition size
Copy & paste get_wifi_ssids_beaglebone.sh and join_wifi_beaglebone.sh scripts onto device
cd ~
nano get_wifi_ssids_beaglebone.sh # Paste in code from script (see link)
nano join_wifi_beaglebone.sh # Paste in code from script (see link)
chmod +x get_wifi_ssids_beaglebone.sh join_wifi_beaglebone.sh
Connect beaglebone to wifi network
./get_wifi_ssids_beaglebone.sh
sudo ./join_wifi_beaglebone.sh <wifi-ssid> <wifi-password>
ping google.com # verify network is connected
Install remote sublime for easy remote text editing
sudo wget -O /usr/local/bin/subl https://raw.github.com/aurora/rmate/master/rmate && sudo chmod +x /usr/local/bin/subl
Update & Upgrade Software
sudo apt-get update -y && sudo apt-get upgrade -y
# When prompted, choose to not use the robotics cape and select none for the initial boot program
Clone project repository
cd ~
git clone https://github.com/OpenAgInitiative/openag-device-software.git
Install the software in preferred runtime mode
cd ~/openag-device-software
sudo -H -u debian ./install.sh --<runtime-mode> # either --development or --production
Verify the install
ps aux | grep autossh # for both production and development
ps aux | grep python # for production only
./run.sh # for development only