This solution is not complete. Its not world tested, in many areas not working as expected and is generally not stable. By using scripts from this repo you are risking to screw up your RPI configuration and/or loosing ALL data. Make sure you done proper backups and verified them before using any of the scripts or instructions provided. You have been warned :)
- Download latest Raspbian image and write into microSD card
- Enable SSH by adding "ssh" empty file to /boot directory
- Setup WIFI by adding
/etc/wpa_supplicant/wpa_supplicant.conf
file into /boot diretory on SD - Reboot
-
SSH to RPi and login. Username: pi; password: raspberry
-
Change default
pi
user password to something securesudo passwd pi
-
SSH to server and install the following prerequisites:
apt-get install -y --upgrade ffmpeg screen vsftpd ftp jq dnsutils imagemagick nginx sqlite3
vsftpd is installed with (above mentioned) prerequisites for cameras to push captured motion videos. vsftpd is configured on anonymous-only mode. Note FTP works on private network only. Its configured with single /etc/vsftpd.conf file.
- Upload all of
/var
and/etc
from local repo into corresponding folders on RPI - Install SSM agent using this AWS tutorial
Note: use
SSMServiceRole
role from already created list when creating activation request. - Execute
/etc/scripts/setup-rpi
to configure AWSCLI, AWSLOGS and rest of settings