Tag Archives: cli

balena.io quickstart

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

create a APP and build and download a base SD card zip

flash base SD card with etcher

$ balena-etcher-electron

install balena cli

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

browse to

Screenshot_2020-03-17 OpenWebRX Open Source SDR Web App for Everyone .png

Arduino CLI quick start

Arduino CLI quick start

as user

$ wget https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz
$ tar zxvf arduino-cli_latest_Linux_64bit.tar.gz

as root

# cd /opt
# mkdir arduino-cli
# cp ~$USER/arduino-cli arduino-cli
# ln -s /opt/arduino-cli/arduino-cli /usr/bin

# adduser $USER dialout
# adduser $USER tty

then

$ arduino-cli core update-index

then

$ lsusb

Bus 001 Device 003: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

then

$ arduino-cli board list

Port         Type              Board Name  FQBN            Core       
/dev/ttyACM0 Serial Port (USB) Arduino Uno arduino:avr:uno arduino:avr
/dev/ttyS0   Serial Port       Unknown                                
/dev/ttyS1   Serial Port       Unknown

refs

Arduino CLI

Arduino CLI

Arduino board names