Difference between revisions of "Fonera"

From MioWiki
Jump to: navigation, search
Line 17: Line 17:
  
 
[http://linux-tips.org/article/66/dropbear-rsa-key-problem Dropbear + scp + public key authentication] - 1
 
[http://linux-tips.org/article/66/dropbear-rsa-key-problem Dropbear + scp + public key authentication] - 1
 +
 +
~/.ssh$ dropbearkey -t rsa -f id_rsa
 +
~$ dbclient -y -i ~/.ssh/id_rsa user@ip
 +
~$ scp -S dbclient -i ~/.ssh/id_rsa fileName user@ip:/dir
  
 
[http://wl500g.info/showthread.php?t=2501 Dropbear + scp + public key authentication] - 2
 
[http://wl500g.info/showthread.php?t=2501 Dropbear + scp + public key authentication] - 2
 +
 +
#!/bin/sh
 +
 +
# on_event_start scp_file "%Y-%m-%d %T"
 +
 +
#change to suit your needs:
 +
SCP="/usb/sbin/scp ....."
 +
#Destination server
 +
TO="root@www"
 +
 +
#Don't change anything below this line
 +
echo -e "This is an automated message generated by motion.\n\nMotion detected: $1\n\n" | $SCP -s "$SUBJECT" $TO

Revision as of 12:01, 21 September 2009

Motion on the Fonera 2.0

Motion installation on Fonera

Motion home page

BusyBox


  • create a script to be executed when a movement is detected, to:
    • upload the picture to our web server
    • send an email (or create a script on the web server to send an email when the picture is uploaded)
  • create a php script on the web server to access the uploaded pictures


Dropbear + scp + public key authentication - 1

~/.ssh$ dropbearkey -t rsa -f id_rsa ~$ dbclient -y -i ~/.ssh/id_rsa user@ip ~$ scp -S dbclient -i ~/.ssh/id_rsa fileName user@ip:/dir

Dropbear + scp + public key authentication - 2

  1. !/bin/sh
  1. on_event_start scp_file "%Y-%m-%d %T"
  1. change to suit your needs:

SCP="/usb/sbin/scp ....."

  1. Destination server

TO="root@www"

  1. Don't change anything below this line

echo -e "This is an automated message generated by motion.\n\nMotion detected: $1\n\n" | $SCP -s "$SUBJECT" $TO