Tag Archives: cli

installing inotool on the Raspberry Pi

For the basic install and configuration example, see my previous post inotool for busy people

When installing on a R-pi, few tools will not be installed by default on Raspbian, proceed to install all of them *before* attempting to clone the git repository.


apt-get install python-configobj python-setuptools git python-jinja2 python-serial

Enjoy!

inotool for busy people that uses Debian

TL;DR

check that you already have

 apt-get install python-configobj python-jinja2 minicom 

, you’ll need them.

clone ino from github:

mkdir -p ~/arduino/code/repository
cd ~/arduino/code/repository
git clone git://github.com/amperka/ino.git

cd ino
(sudo or su)
make install

Sometimes ino does not like the version string provided, cat the file /usr/share/arduino/lib/version.txt , it should look something like 1:1.0.5+dfsg2-1
, backup the file and leave just 1.0.5
You should be ready to start.

Follow this tutorial now:
ino quickstart

sample of my ~/.inorc:

[build]
board-model = diecimila

[upload]
board-model = diecimila
serial-port = /dev/ttyUSB0

[serial]
serial-port = /dev/ttyUSB0

Mac OS version and architecture from the command line

bash-3.2# uname -a
Darwin fv 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
bash-3.2# sw_vers
ProductName: Mac OS X
ProductVersion: 10.8.3
BuildVersion: 12D78

ESXi loop through all VMs ID from cli

for i in $(vim-cmd vmsvc/getallvm | awk -F' ' '/[0-9]/{print $1}'); do vim-cmd vmsvc/get.summary $i | grep name; vim-cmd vmsvc/power.getstate $i; done

The magic part is:
vim-cmd vmsvc/getallvm | awk -F' ' '/[0-9]/{print $1}'