From 10a77ff5238605f4c3f105c8575cc1d38358323e Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Sun, 29 Nov 2026 12:18:12 -0500 Subject: [PATCH] Add install.sh --- install.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..90435f8 --- /dev/null +++ b/install.sh @@ -0,0 +1,35 @@ +# 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