add balena etcher repo
# echo "deb https://deb.etcher.io stable etcher" | \ sudo tee /etc/apt/sources.list.d/balena-etcher.list # apt-key adv --keyserver keyserver.ubuntu.com \ --recv-keys 379CE192D401AB61
install balena etcher
# aptitude update # aptitude install balena-etcher-electron
understand difference between balena dev v prod images
- https://www.balena.io/docs/reference/OS/overview/2.x/
- https://www.balena.io/docs/reference/OS/overview/2.x/#development-vs-production-images
create a APP and build and download a base SD card zip
flash base SD card with etcher
$ balena-etcher-electron
install balena cli
- https://www.balena.io/docs/reference/balena-cli/
- https://github.com/balena-io/balena-cli/blob/master/INSTALL.md
note add you SSH key to github BEFORE running npm install balena-cli
cmds
# aptitude install npm # npm -g install typescript # npm install balena-cli -g --production --unsafe-perm
add SSH key to your balena.io account
login to balena
$ balena login
web auth
verify connection
$ balena apps ID APP NAME DEVICE TYPE ONLINE DEVICES DEVICE COUNT
get a project and push it
cmds to clone push and deploy
$ git clone myproj $ cd myproj $ balena push MYAPP
deploy a balena container
- wait for https://dashboard.balena-cloud.com/devices/ to say UPDATED
browse to