### Universal Agent DVR Installer (Linux/macOS) Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt A single command to automatically detect the operating system (Linux or macOS) and architecture, then download and execute the appropriate Agent DVR installation script. This is the quickest way to get started. ```bash bash <(curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/install.sh") ``` -------------------------------- ### Automated Agent DVR Installation for ARM/Raspberry Pi Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt This command fetches and executes the Agent DVR installation script specifically optimized for ARM architecture devices like the Raspberry Pi. The script automates the setup of the Agent DVR environment and its dependencies. ```bash curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/ffmpeg6_build_armhf.sh" | bash ``` -------------------------------- ### Linux Agent DVR Installation Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Provides a comprehensive installation script for Linux systems, including dependency management, FFmpeg compilation options, and systemd service setup. ```APIDOC ## Linux Agent DVR Installation ### Description Full installation script for Linux systems with optional FFmpeg compilation and systemd service setup. This script automates dependency installation, Agent DVR download, and service configuration. ### Method Shell Script ### Endpoint N/A (Direct script execution) ### Parameters None ### Request Example ```bash bash <(curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/linux_setup2.sh") ``` ### Notes The script performs the following actions: 1. Creates the AgentDVR directory. 2. Installs necessary dependencies (unzip, apt-transport-https, alsa-utils, libxext-dev, fontconfig, libva-drm2). 3. Stops the coturn service if it's running, as Agent DVR includes a built-in TURN server. 4. Downloads the latest Agent DVR version suitable for your system's architecture. 5. Prompts the user to set up Agent DVR as a systemd service for automatic startup. ### Example Output ``` Finding installer for x86_64 Downloading https://www.ispyconnect.com/downloads/Agent_Linux64.zip Adding execute permissions Setup AgentDVR as system service (y/n)? ``` ``` -------------------------------- ### Universal Agent DVR Installer Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt This script automatically detects the operating system (Linux or macOS) and initiates the installation process for Agent DVR. ```APIDOC ## Universal Agent DVR Installer ### Description Run the one-liner installer that auto-detects your operating system and architecture for a seamless Agent DVR installation. ### Method Shell Script ### Endpoint N/A (Direct script execution) ### Parameters None ### Request Example ```bash bash <(curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/install.sh") ``` ### Response N/A (Executes installation commands) ``` -------------------------------- ### macOS Agent DVR Installation Script Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Installs Agent DVR on macOS. It ensures Homebrew is installed, installs FFmpeg via Homebrew, downloads the correct Agent DVR build for Intel or Apple Silicon, and optionally sets it up as a launchd daemon for automatic startup. It uses different Homebrew paths for Intel and Apple Silicon Macs. ```bash bash <(curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/osx_setup2.sh") ``` -------------------------------- ### macOS Agent DVR Installation Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Installation script for macOS that utilizes Homebrew for dependency management and configures the Agent DVR as a launchd daemon. ```APIDOC ## macOS Agent DVR Installation ### Description Installation script for macOS with Homebrew dependency management and launchd service setup. This script handles Homebrew installation, FFmpeg setup, Agent DVR download, and daemon configuration. ### Method Shell Script ### Endpoint N/A (Direct script execution) ### Parameters None ### Request Example ```bash bash <(curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/osx_setup2.sh") ``` ### Notes The script performs the following actions: 1. Installs Homebrew if it's not already present. 2. Installs FFmpeg version 6 using Homebrew. 3. Downloads the appropriate Agent DVR version for your Mac's architecture (Intel or Apple Silicon). 4. Prompts the user to set up Agent DVR as a launchd daemon for automatic startup. ### Platform Specifics - **Apple Silicon (M1/M2):** Uses `/opt/homebrew/bin/brew` and downloads the `OSXARM64` build. - **Intel Macs:** Uses `/usr/local/bin/brew` and downloads the `OSX64` build. ### Example Output ``` Installing homebrew Installing ffmpeg Downloading https://www.ispyconnect.com/downloads/AgentDVR_OSX_ARM64.tar.gz Setup AgentDVR as system service (y/n)? ``` ``` -------------------------------- ### Download Agent DVR Package Only (Linux/macOS) Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Downloads the latest Agent DVR package for the current platform without running the full installation or setup. After downloading, manual extraction and execution are required. The script auto-detects the platform (Linux x64, Linux ARM, macOS Intel, macOS ARM) and downloads the appropriate archive. ```bash bash <(curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/download.sh") ``` ```bash unzip Agent_Linux64.zip -d AgentDVR chmod +x AgentDVR/Agent cd AgentDVR && ./Agent ``` -------------------------------- ### Linux Agent DVR Installation Script Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Installs Agent DVR on Linux systems. This script handles dependency installation (like unzip, apt-transport-https), downloads the latest Agent DVR binaries for the detected architecture, and optionally configures it as a systemd service for automatic startup. It may also compile FFmpeg and stop conflicting services like coturn. ```bash bash <(curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/linux_setup2.sh") ``` -------------------------------- ### Download Agent DVR Only Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt This script downloads the latest Agent DVR package for the detected platform without executing the full installation or setup process. ```APIDOC ## Download Agent DVR Only ### Description Download the latest Agent DVR package for your platform without running the full installer. This script auto-detects the OS and architecture and downloads the relevant binary. ### Method Shell Script ### Endpoint N/A (Direct script execution) ### Parameters None ### Request Example ```bash bash <(curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/download.sh") ``` ### Supported Platforms Auto-Detection - Linux x64: Downloads `Linux64` or `LinuxARM64` - Linux ARM: Downloads `LinuxARM` (armv6l, armv7l) or `LinuxARM64` (aarch64) - macOS Intel: Downloads `OSX64` - macOS ARM: Downloads `OSXARM64` ### Example Output ``` finding installer for x86_64 Downloading https://www.ispyconnect.com/downloads/Agent_Linux64.zip Saved to Agent_Linux64.zip ``` ### Manual Extraction and Execution After downloading, you can manually extract and run Agent DVR: ```bash unzip Agent_Linux64.zip -d AgentDVR chmod +x AgentDVR/Agent cd AgentDVR && ./Agent ``` ``` -------------------------------- ### Update Agent DVR and Plugins Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Uses the update script to apply patches or install plugins to an existing Agent DVR installation. ```bash curl -O "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/agent-update.sh" chmod +x agent-update.sh ./agent-update.sh -update ./agent-update.sh -plugins PluginName ``` -------------------------------- ### Install FFmpeg Dependencies on Ubuntu/Debian Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt This command installs the necessary build tools and media libraries required for custom FFmpeg compilation on Debian-based systems. It includes support for x264, x265, mp3lame, and other essential codecs. ```bash sudo apt-get install -y build-essential yasm cmake libtool pkg-config libx264-dev libx265-dev libmp3lame-dev libopus-dev libvorbis-dev libfdk-aac-dev libvpx-dev libva-dev ``` -------------------------------- ### Configure macOS launchd Service Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Downloads and installs a launchd plist file to manage Agent DVR as a background daemon on macOS. ```bash curl -O "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/com.ispy.agent.dvr.plist" INSTALL_PATH="${PWD}/AgentDVR" sed -i '' "s|AGENT_LOCATION|${INSTALL_PATH}|g" com.ispy.agent.dvr.plist sed -i '' "s|YOUR_USERNAME|$(whoami)|g" com.ispy.agent.dvr.plist sudo cp com.ispy.agent.dvr.plist /Library/LaunchDaemons/ sudo chown root:wheel /Library/LaunchDaemons/com.ispy.agent.dvr.plist sudo launchctl load -w /Library/LaunchDaemons/com.ispy.agent.dvr.plist ``` -------------------------------- ### Get Agent DVR Download URL via API (curl) Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Uses curl to query the ispyconnect.com API for the direct download URL of Agent DVR for a specific platform. This is useful for scripting downloads or integrating with other tools. Supported platforms include various Linux architectures and macOS versions (Intel/ARM). ```bash # Linux 64-bit curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=Linux64&fromVersion=0" ``` ```bash # Linux ARM 64-bit (Raspberry Pi 4, etc.) curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=LinuxARM64&fromVersion=0" ``` ```bash # Linux ARM 32-bit (Raspberry Pi 3 and older) curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=LinuxARM&fromVersion=0" ``` ```bash # macOS Intel curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=OSX64&fromVersion=0" ``` ```bash # macOS Apple Silicon (M1/M2) curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=OSXARM64&fromVersion=0" ``` -------------------------------- ### Build FFmpeg from Source Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Compiles FFmpeg with hardware acceleration support (VAAPI) and necessary codecs for optimal Agent DVR performance on Linux. ```bash mkdir -p ffmpeg-v5 cd ffmpeg-v5 curl -s "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/ffmpeg_build.sh" | bash -s -- --build --enable-gpl-and-non-free ``` -------------------------------- ### Configure Linux Systemd Service Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Downloads and configures a systemd service file to enable automatic startup of Agent DVR on Linux distributions. ```bash curl -O "https://raw.githubusercontent.com/ispysoftware/agent-install-scripts/main/v2/AgentDVR.service" INSTALL_PATH="/home/$(whoami)/AgentDVR" sed -i "s|AGENT_LOCATION|${INSTALL_PATH}|g" AgentDVR.service sed -i "s|YOUR_USERNAME|$(whoami)|g" AgentDVR.service sudo cp AgentDVR.service /etc/systemd/system/ sudo systemctl daemon-reload sudo systemctl enable AgentDVR.service sudo systemctl start AgentDVR ``` -------------------------------- ### Download Agent DVR with Architecture Detection Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Detects the system architecture and downloads the appropriate Agent DVR package from the official API. ```bash PLATFORM="Linux64" case $(uname -m) in 'aarch64'|'arm64') PLATFORM="LinuxARM64" ;; 'arm'|'armv6l'|'armv7l') PLATFORM="LinuxARM" ;; esac URL=$(curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=${PLATFORM}&fromVersion=0" | tr -d '"') curl -L "$URL" -o AgentDVR.zip ``` -------------------------------- ### ispyconnect.com Download API Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt API endpoint to retrieve the direct download URL for Agent DVR based on the specified platform. ```APIDOC ## ispyconnect.com Download API ### Description The API endpoint returns the download URL for the specified platform. This allows for direct downloads of Agent DVR binaries without using installation scripts. ### Method GET ### Endpoint `/api/Agent/DownloadLocation4` ### Query Parameters - **platform** (string) - Required - The target platform for the download (e.g., `Linux64`, `LinuxARM64`, `OSX64`, `OSXARM64`). - **fromVersion** (integer) - Required - Typically set to `0` to get the latest version. ### Request Example ```bash # Get download URL for specific platform # Supported platforms: Linux64, LinuxARM, LinuxARM64, OSX64, OSXARM64 # Linux 64-bit curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=Linux64&fromVersion=0" # Linux ARM 64-bit (Raspberry Pi 4, etc.) curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=LinuxARM64&fromVersion=0" # Linux ARM 32-bit (Raspberry Pi 3 and older) curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=LinuxARM&fromVersion=0" # macOS Intel curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=OSX64&fromVersion=0" # macOS Apple Silicon (M1/M2) curl -s "https://www.ispyconnect.com/api/Agent/DownloadLocation4?platform=OSXARM64&fromVersion=0" ``` ### Response #### Success Response (200) - **string** (string) - The direct download URL for the Agent DVR package. #### Response Example ```json "https://www.ispyconnect.com/downloads/Agent_Linux64.zip" ``` ``` -------------------------------- ### Uninstall Agent DVR Service Source: https://context7.com/ispysoftware/agent-install-scripts/llms.txt Removes the system service configuration for Agent DVR on either Linux or macOS without deleting application data. ```bash # Linux removal sudo systemctl stop AgentDVR.service sudo systemctl disable AgentDVR.service sudo rm /etc/systemd/system/AgentDVR.service sudo systemctl daemon-reload # macOS removal sudo launchctl unload -w /Library/LaunchDaemons/com.ispy.agent.dvr.plist sudo rm -f /Library/LaunchDaemons/com.ispy.agent.dvr.plist ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.