Complete project rebrand for better positioning in the press freedom and digital security space. FieldWitness communicates both field deployment and evidence testimony — appropriate for the target audience of journalists, NGOs, and human rights organizations. Rename mapping: - soosef → fieldwitness (package, CLI, all imports) - soosef.stegasoo → fieldwitness.stego - soosef.verisoo → fieldwitness.attest - ~/.soosef/ → ~/.fwmetadata/ (innocuous data dir name) - SOOSEF_DATA_DIR → FIELDWITNESS_DATA_DIR - SoosefConfig → FieldWitnessConfig - SoosefError → FieldWitnessError Also includes: - License switch from MIT to GPL-3.0 - C2PA bridge module (Phase 0-2 MVP): cert.py, export.py, vendor_assertions.py - README repositioned to lead with provenance/federation, stego backgrounded - Threat model skeleton at docs/security/threat-model.md - Planning docs: docs/planning/c2pa-integration.md, docs/planning/gtm-feasibility.md Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
48 lines
1.2 KiB
Bash
Executable File
48 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build a bootable Debian Live USB image with FieldWitness pre-installed.
|
|
#
|
|
# Prerequisites:
|
|
# apt install live-build
|
|
#
|
|
# Usage:
|
|
# cd deploy/live-usb
|
|
# sudo ./build.sh
|
|
#
|
|
# Output: live-image-amd64.hybrid.iso (flash to USB with dd or Balena Etcher)
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
FIELDWITNESS_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
|
|
echo "=== FieldWitness Live USB Image Builder ==="
|
|
echo "Source: $FIELDWITNESS_ROOT"
|
|
echo
|
|
|
|
cd "$SCRIPT_DIR"
|
|
|
|
# Clean previous builds
|
|
lb clean 2>/dev/null || true
|
|
|
|
# Configure live-build
|
|
lb config \
|
|
--distribution bookworm \
|
|
--architectures amd64 \
|
|
--binary-images iso-hybrid \
|
|
--memtest none \
|
|
--bootappend-live "boot=live components locales=en_US.UTF-8 keyboard-layouts=us" \
|
|
--apt-indices false \
|
|
--security true \
|
|
--updates true
|
|
|
|
# Build
|
|
echo "Building image (this takes 10-20 minutes)..."
|
|
lb build
|
|
|
|
echo
|
|
echo "=== Build complete ==="
|
|
echo "Image: $(ls -lh live-image-*.iso 2>/dev/null || echo 'Check for .iso file')"
|
|
echo
|
|
echo "Flash to USB:"
|
|
echo " sudo dd if=live-image-amd64.hybrid.iso of=/dev/sdX bs=4M status=progress"
|
|
echo " (replace /dev/sdX with your USB device)"
|