Skip to content

Latest commit

 

History

History
57 lines (57 loc) · 2.11 KB

install_beaglebone_black_wireless_source.md

File metadata and controls

57 lines (57 loc) · 2.11 KB

Installation on a Beaglebone Black Wireless from Source

  1. Download Debian Stretch IoT Image
  2. Flash image to micro sd card with Balena Etcher and insert into beaglebone
  3. Connect to beaglebone wifi access point (SSID: BeagleBone-XXXX, PWD: BeagleBone)
  4. Login to beaglebone
ssh [email protected]  # password: temppwd
  1. Change the password to something more secure
passwd  # default password is temppwd --> for non-secure images just use `openag12`
  1. 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
  1. 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
  1. 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
  1. 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
  1. 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
  1. Clone project repository
cd ~
git clone https://github.com/OpenAgInitiative/openag-device-software.git
  1. Install the software in preferred runtime mode
cd ~/openag-device-software
sudo -H -u debian ./install.sh --<runtime-mode>  # either --development or --production
  1. Verify the install
ps aux | grep autossh  # for both production and development
ps aux | grep python  # for production only
./run.sh  # for development only