JobeeArm

Project.JobeeArm History

Hide minor edits - Show changes to output

January 24, 2017, at 10:03 PM by Jody - screenrc log
Added lines 114-122:
(:sourceend:)

!!! Log output of screen

~/.screenrc
(:source lang=bash:)
deflog on
shelltitle monitor
logfile /home/jobee/screen.log
January 24, 2017, at 09:57 PM by Jody - disable bluetooth
Changed lines 58-59 from:
(:source lang=bash:
#bt
to:

(:source lang=bash:)
# create the file
#/etc/modprobe.d/local-blacklist.conf
# Bluetooth
Added lines 54-61:
(:sourceend:)


!!! Disable Bluetooth
(:source lang=bash:
#bt
blacklist btbcm
blacklist hci_uart
Added lines 84-103:
!!! Autossh with systemd

(:source lang=bash:)
#/etc/systemd/system/autossh.service
# cf: http://nlug.ml1.co.uk/2016/03/resilient-ssh-with-autossh-andor-systemd/5148
[Unit]
Description=AutoSSH tunnel service port 7777
After=network.target

[Service]
Environment="AUTOSSH_GATETIME=0"
Environment="AUTOSSH_DEBUG=1"

ExecStart=/usr/bin/autossh -M 0 -N -T -q -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -i /root/.ssh/andaines_jodaille -R 7777:localhost:22 jobeeuser@jodaille.org -p 22


[Install]
WantedBy=multi-user.target

(:sourceend:)
January 24, 2017, at 07:28 PM by Jody - timezone config raspbian
Added lines 32-36:
(:sourceend:)

!!! Configure timezone
(:source lang=bash:)
dpkg-reconfigure tzdata
October 30, 2016, at 10:56 AM by Jody - snapshot each minute and gif
Added lines 77-104:
(:sourceend:)


!!! Take a screenshot and scp to server

(:source lang=bash:)
#!/bin/bash

IMAGENAME=`date +%Y-%m-%d%H%M%S`
echo $IMAGENAME



wget  http://admin:admin@192.168.1.13/tmpfs/snap.jpg -O $IMAGENAME.jpg && scp "$IMAGENAME.jpg" "jodaille.org:/var/www/wiki/snapshots/$IMAGENAME.jpg"

(:sourceend:)

(:source lang=bash:)
#crontab -e
* * * * * /home/jobee/snapshot.sh >> ~/snaplog.log

(:sourceend:)

!!! Make a gif
(:source lang=bash:)
for file in `ls 2016-10*`;do echo $file;convert $file -crop 800x700+310+280 "thumb/$file.jpg" ;done;

convert *.jpg bees.gif
Added lines 11-13:
* '''Allwinner A10 Cortex-A8 processor typically running at 1GHz and Mali 400 GPU'''

* '''512MB DDR3 RAM memory'''
Added lines 2-5:

We will try a [[ Project/JobeeVideo | video monitoring]] with [[JobeeOpenCV | OpenCV]] to count bees and possibily detect a borning swarm.

We need amore powerfull computer than a router like, to fetch image and run [[JobeeOpenCV | OpenCV]] on it.
Changed lines 3-5 from:
!! Olimex Olinuxino A13 Lime

!! Olimex Olinuxino A20
to:
!! Olimex Olinuxino A10 Lime

https://www.olimex.com/Products/OLinuXino/A10/A10-OLinuXino-LIME/


!! Olimex A20-OLinuXino-MICRO

https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-MICRO/open-source-hardware

Changed line 11 from:
(:source lang=bash)
to:
(:source lang=bash:)
Changed line 17 from:
(:source lang=bash)
to:
(:source lang=bash:)
Changed line 23 from:
(:source lang=bash)
to:
(:source lang=bash:)
Changed line 29 from:
(:source lang=bash)
to:
(:source lang=bash:)
Changed line 40 from:
(:source lang=bash)
to:
(:source lang=bash:)
Changed line 46 from:
(:source lang=bash)
to:
(:source lang=bash:)
Changed line 53 from:
(:source lang=bash)
to:
(:source lang=bash:)
Changed line 58 from:
(:source lang=bash)
to:
(:source lang=bash:)
October 28, 2016, at 04:21 PM by Jody - Autossh configuration
Changed lines 9-12 from:
!!! Installed packages

!!! Diable wifi

to:
!!! Keyboard configuration
Added lines 12-29:
dpkg-reconfigure keyboard-configuration
(:sourceend:)

!!! Locales configuration

(:source lang=bash)
dpkg-reconfigure locales
(:sourceend:)

!!! Installed packages

(:source lang=bash)
openssh-server autossh opencv-data python-opencv screen inotify-tools git
(:sourceend:)

!!! Disable wifi

(:source lang=bash)
Added lines 36-63:
(:sourceend:)

!!! SSH configuration

(:source lang=bash)
ssh-keygen -t rsa
(:sourceend:)

!!! Autossh configuration

(:source lang=bash)
autossh -M 10984 -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -R 6666:localhost:22 jobeeuser@jodaille.org -p 22
(:sourceend:)


With root, try at least one time to accept server key:

(:source lang=bash)
autossh -M 10984 -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -i /root/.ssh/jobee_jodaille -R 6666:localhost:22 jobeeuser@jodaille.org -p 22
(:sourceend:)


(:source lang=bash)
#/etc/rc.local

# autossh
autossh -M 10984  -N -f -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -i /root/.ssh/jobee_jodaille -R 6666:localhost:22 jobeeuser@jodaille.org -p 22

October 28, 2016, at 04:11 PM by Jody - disable wifi Raspberry PI
Added lines 9-20:
!!! Installed packages

!!! Diable wifi

(:source lang=bash)
# create the file
#/etc/modprobe.d/local-blacklist.conf
# Disable wifi

blacklist brcmfmac
blacklist brcmutil
(:sourceend:)
October 28, 2016, at 04:09 PM by Jody - ARM computer installation for remote monitoring
Added lines 1-8:
! ARM computer: small & "powerfull"

!! Olimex Olinuxino A13 Lime

!! Olimex Olinuxino A20

!! Raspberry PI3