# EyeSpy Setup script # Update sudo apt update sudo apt full-upgrade sudo apt install --reinstall libcamera-apps # Turn on i2c + hardware serial (turn off serial login) sudo raspi-config # PiSugar 2/3 -> http://localhost:8421 wget https://cdn.pisugar.com/release/pisugar-power-manager.sh bash pisugar-power-manager.sh -c release # Add `dtoverlay=i2c-rtc,ds3231` to /boot/firmware/config.txt # GPS sudo apt install gpsmon chrony echo "refclock SHM 0 offset 0.125 delay 0.2 refID GPS rate 1" | sudo tee -a /etc/chrony/chrony.conf # Camera wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh chmod +x install_pivariety_pkgs.sh ./install_pivariety_pkgs.sh -p libcamera_dev ./install_pivariety_pkgs.sh -p libcamera_apps # SED COMMAND TO TURN OFF: camera_auto_detect=0 cat "dtoverlay=imx519,i2c_bus=10" | sudo tee -a /boot/firmware/config.txt # Node / Server curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash source ~/.bashrc nvm install 26 && nvm use 26 sudo reboot sudo timedatectl set-local-rtc 0 sudo systemctl run hwclock-save.service 2>/dev/null || sudo systemctl restart systemd-timesyncd