#!/bin/bash # ============================================================================== # DisplayGuard • Autonomous Hardware Thermal Shield & Multi-Screen Studio # Crafted with pride by Solidrix Technologies (https://solidrix.com) # Hosted live on Tools24Now (https://tools24now.site) # ============================================================================== set -e # Audio speech helper (runs in background so it never blocks script) speak() { if [ -x "/usr/bin/say" ]; then /usr/bin/say -v Samantha "$1" >/dev/null 2>&1 & fi } echo "" echo "==========================================================" echo "🛡️ DisplayGuard • Blind Emergency Installer" echo " Powered by Solidrix Technologies • Tools24Now Hub" echo "==========================================================" echo "" speak "DisplayGuard emergency installer started. Downloading software for Apple Silicon." TEMP_DMG="/tmp/DisplayGuard_Installer_$$.dmg" DMG_URL="https://tools24now.site/displayguard/DisplayGuard-1.0.0-arm64.dmg" echo "==> 1. Downloading DisplayGuard from Tools24Now..." curl -fsSL "$DMG_URL" -o "$TEMP_DMG" echo "==> 2. Mounting DMG image..." MOUNT_DIR=$(mktemp -d /tmp/dg_mount_XXXXXX) hdiutil attach "$TEMP_DMG" -nobrowse -mountpoint "$MOUNT_DIR" -quiet echo "==> 3. Installing DisplayGuard into /Applications..." # Kill any prior running instance pkill -f "DisplayGuard" 2>/dev/null || true pkill -f "displayguard_web_stream" 2>/dev/null || true # Copy clean app bundle rm -rf "/Applications/DisplayGuard.app" cp -R "$MOUNT_DIR/DisplayGuard.app" "/Applications/" echo "==> 4. Cleaning up installer disks..." hdiutil detach "$MOUNT_DIR" -force -quiet 2>/dev/null || true rm -rf "$MOUNT_DIR" "$TEMP_DMG" echo "==> 5. Bypassing Gatekeeper Quarantine..." xattr -dr com.apple.quarantine "/Applications/DisplayGuard.app" 2>/dev/null || true echo "==> 6. Detecting Network & Local Bonjour Hostname..." WIFI_IP=$(ipconfig getifaddr en0 2>/dev/null || ipconfig getifaddr en1 2>/dev/null || echo "127.0.0.1") RAW_HOST=$(scutil --get LocalHostName 2>/dev/null || hostname -s 2>/dev/null || echo "mac") BONJOUR_HOST="$(echo "$RAW_HOST" | tr '[:upper:]' '[:lower:]').local" echo "==> 7. Launching DisplayGuard..." open "/Applications/DisplayGuard.app" # Give app a moment to initialize token & PIN sleep 1.5 DEVICE_ID="" if [ -f "/tmp/displayguard_config.json" ]; then DEVICE_ID=$(grep '"deviceId"' /tmp/displayguard_config.json 2>/dev/null | cut -d '"' -f 4 || echo "") fi PIN="" if [ -f "/tmp/displayguard_pin.txt" ]; then PIN=$(cat /tmp/displayguard_pin.txt 2>/dev/null || echo "") fi # Play macOS Glass Chime if [ -x "/usr/bin/afplay" ]; then /usr/bin/afplay "/System/Library/Sounds/Glass.aiff" >/dev/null 2>&1 & fi echo "" echo "==========================================================" echo "✅ DISPLAYGUARD INSTALLED & ACTIVE!" echo "==========================================================" echo "" echo "📱 REMOTE CONNECTION LINKS FOR YOUR PHONE / TABLET:" echo "" if [ -n "$DEVICE_ID" ]; then echo " • Global WAN URL: https://tools24now.site/remote?id=${DEVICE_ID}" echo " • Permanent PIN : ${PIN}" echo "" fi if [ "$WIFI_IP" != "127.0.0.1" ]; then echo " • Wi-Fi IP Link : http://${WIFI_IP}:8999" fi echo " • Bonjour Link : http://${BONJOUR_HOST}:8999" echo "" echo "⌨️ BLIND EMERGENCY SHORTCUTS (EVEN ON PITCH-BLACK SCREEN):" echo " • ⌘ + ⌥ + W : Instant Controlled Thermal Warm-up Pulse" echo " • ⌘ + ⌥ + M : Instant Web Screen Cast & Voice Announcement" echo "" echo "🌐 Ecosystem: https://solidrix.com • https://tools24now.site" echo "==========================================================" echo "" # Announce success and URLs clearly via speakers if [ -n "$PIN" ]; then speak "DisplayGuard installed successfully. Your remote security PIN is $(echo "$PIN" | sed 's/./& /g'). Remote desktop is online." elif [ "$WIFI_IP" != "127.0.0.1" ]; then IP_SPOKEN=$(echo "$WIFI_IP" | sed 's/\./ dot /g') speak "DisplayGuard installed successfully. Screen stream is online. Open your mobile browser and enter: $IP_SPOKEN colon 8 9 9 9. Or, $BONJOUR_HOST colon 8 9 9 9." else speak "DisplayGuard installed successfully. Screen stream is online. Open your mobile browser and enter: $BONJOUR_HOST colon 8 9 9 9." fi