Update RPi scripts and docs for v4.2.0
- Default branch: 4.1 → 4.2 - Update prebuilt URL to v4.2.0 - Update example filenames to 4.2.0 - Remove jpegio references (now using jpeglib) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,7 +37,7 @@ sudo apt-get update && sudo apt-get install -y git zstd jq
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /opt
|
cd /opt
|
||||||
git clone -b 4.1 https://github.com/adlee-was-taken/stegasoo.git stegasoo
|
git clone -b 4.2 https://github.com/adlee-was-taken/stegasoo.git stegasoo
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 5: Copy Pre-built Tarball (from host)
|
## Step 5: Copy Pre-built Tarball (from host)
|
||||||
@@ -107,7 +107,7 @@ Remove SD card, insert into your Linux machine:
|
|||||||
lsblk
|
lsblk
|
||||||
|
|
||||||
# Pull image (auto-resizes to 16GB, compresses with zstd)
|
# Pull image (auto-resizes to 16GB, compresses with zstd)
|
||||||
sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.1.5.img.zst
|
sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.2.0.img.zst
|
||||||
```
|
```
|
||||||
|
|
||||||
The script automatically resizes rootfs to 16GB (for smaller download), preserves auto-expand, and compresses.
|
The script automatically resizes rootfs to 16GB (for smaller download), preserves auto-expand, and compresses.
|
||||||
@@ -170,7 +170,7 @@ scp admin@stegasoo.local:/tmp/stegasoo-rpi-runtime-env-arm64.tar.zst ./
|
|||||||
# On Pi (after SSH):
|
# On Pi (after SSH):
|
||||||
sudo chown admin:admin /opt
|
sudo chown admin:admin /opt
|
||||||
sudo apt-get update && sudo apt-get install -y git zstd jq
|
sudo apt-get update && sudo apt-get install -y git zstd jq
|
||||||
cd /opt && git clone -b 4.1 https://github.com/adlee-was-taken/stegasoo.git stegasoo
|
cd /opt && git clone -b 4.2 https://github.com/adlee-was-taken/stegasoo.git stegasoo
|
||||||
|
|
||||||
# On host (copy tarball):
|
# On host (copy tarball):
|
||||||
scp rpi/stegasoo-rpi-runtime-env-arm64.tar.zst admin@stegasoo.local:/opt/stegasoo/rpi/
|
scp rpi/stegasoo-rpi-runtime-env-arm64.tar.zst admin@stegasoo.local:/opt/stegasoo/rpi/
|
||||||
@@ -182,5 +182,5 @@ curl -k https://localhost:5000
|
|||||||
sudo /opt/stegasoo/rpi/sanitize-for-image.sh
|
sudo /opt/stegasoo/rpi/sanitize-for-image.sh
|
||||||
|
|
||||||
# On host (pull image - auto-resizes to 16GB):
|
# On host (pull image - auto-resizes to 16GB):
|
||||||
sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.1.5.img.zst
|
sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.2.0.img.zst
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ sudo apt-get update && sudo apt-get install -y git
|
|||||||
|
|
||||||
# Clone and run setup
|
# Clone and run setup
|
||||||
cd /opt
|
cd /opt
|
||||||
git clone -b 4.1 https://github.com/adlee-was-taken/stegasoo.git stegasoo
|
git clone -b 4.2 https://github.com/adlee-was-taken/stegasoo.git stegasoo
|
||||||
cd stegasoo
|
cd stegasoo
|
||||||
./rpi/setup.sh
|
./rpi/setup.sh
|
||||||
```
|
```
|
||||||
@@ -159,7 +159,7 @@ sudo apt-get update && sudo apt-get install -y git
|
|||||||
|
|
||||||
# Clone and run setup
|
# Clone and run setup
|
||||||
cd /opt
|
cd /opt
|
||||||
git clone -b 4.1 https://github.com/adlee-was-taken/stegasoo.git stegasoo
|
git clone -b 4.2 https://github.com/adlee-was-taken/stegasoo.git stegasoo
|
||||||
cd stegasoo
|
cd stegasoo
|
||||||
./rpi/setup.sh
|
./rpi/setup.sh
|
||||||
```
|
```
|
||||||
@@ -200,7 +200,7 @@ After Pi shuts down, remove SD card and on another Linux machine:
|
|||||||
lsblk
|
lsblk
|
||||||
|
|
||||||
# Pull image (auto-resizes to 16GB, compresses with zstd)
|
# Pull image (auto-resizes to 16GB, compresses with zstd)
|
||||||
sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.1.5.img.zst
|
sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.2.0.img.zst
|
||||||
```
|
```
|
||||||
|
|
||||||
The `pull-image.sh` script automatically:
|
The `pull-image.sh` script automatically:
|
||||||
|
|||||||
@@ -80,9 +80,9 @@ if [ -z "$1" ]; then
|
|||||||
echo "Supported formats: .img, .img.zst, .img.xz, .img.gz, .img.zst.zip"
|
echo "Supported formats: .img, .img.zst, .img.xz, .img.gz, .img.zst.zip"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Examples:"
|
echo "Examples:"
|
||||||
echo " $0 stegasoo-rpi-4.1.1.img.zst # auto-detect SD card"
|
echo " $0 stegasoo-rpi-4.2.0.img.zst # auto-detect SD card"
|
||||||
echo " $0 stegasoo-rpi-4.1.1.img.zst.zip # from GitHub release"
|
echo " $0 stegasoo-rpi-4.2.0.img.zst.zip # from GitHub release"
|
||||||
echo " $0 stegasoo-rpi-4.1.1.img.zst /dev/sdb # specify device"
|
echo " $0 stegasoo-rpi-4.2.0.img.zst /dev/sdb # specify device"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Resizes rootfs to 16GB for consistent image size, then pulls
|
# Resizes rootfs to 16GB for consistent image size, then pulls
|
||||||
#
|
#
|
||||||
# Usage: ./pull-image.sh <device> <output.img.zst>
|
# Usage: ./pull-image.sh <device> <output.img.zst>
|
||||||
# Example: ./pull-image.sh /dev/sdb stegasoo-rpi-4.1.5.img.zst
|
# Example: ./pull-image.sh /dev/sdb stegasoo-rpi-4.2.0.img.zst
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ NC='\033[0m'
|
|||||||
|
|
||||||
if [ $# -ne 2 ]; then
|
if [ $# -ne 2 ]; then
|
||||||
echo "Usage: $0 <device> <output.img.zst>"
|
echo "Usage: $0 <device> <output.img.zst>"
|
||||||
echo "Example: $0 /dev/sdb stegasoo-rpi-4.1.5.img.zst"
|
echo "Example: $0 /dev/sdb stegasoo-rpi-4.2.0.img.zst"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
19
rpi/setup.sh
19
rpi/setup.sh
@@ -4,14 +4,14 @@
|
|||||||
# Tested on: Raspberry Pi 4/5 with Raspberry Pi OS (64-bit)
|
# Tested on: Raspberry Pi 4/5 with Raspberry Pi OS (64-bit)
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# curl -sSL https://raw.githubusercontent.com/adlee-was-taken/stegasoo/4.1/rpi/setup.sh | bash
|
# curl -sSL https://raw.githubusercontent.com/adlee-was-taken/stegasoo/4.2/rpi/setup.sh | bash
|
||||||
# # or
|
# # or
|
||||||
# wget -qO- https://raw.githubusercontent.com/adlee-was-taken/stegasoo/4.1/rpi/setup.sh | bash
|
# wget -qO- https://raw.githubusercontent.com/adlee-was-taken/stegasoo/4.2/rpi/setup.sh | bash
|
||||||
#
|
#
|
||||||
# What this script does:
|
# What this script does:
|
||||||
# 1. Installs system dependencies
|
# 1. Installs system dependencies
|
||||||
# 2. Installs Python 3.12 via pyenv (Pi OS ships with 3.13 which is incompatible)
|
# 2. Installs Python 3.11+ (uses system Python or pyenv)
|
||||||
# 3. Patches and builds jpegio for ARM
|
# 3. Installs jpeglib for DCT steganography (Python 3.13+ compatible)
|
||||||
# 4. Installs Stegasoo with web UI
|
# 4. Installs Stegasoo with web UI
|
||||||
# 5. Creates systemd service for auto-start
|
# 5. Creates systemd service for auto-start
|
||||||
# 6. Enables the service
|
# 6. Enables the service
|
||||||
@@ -77,7 +77,7 @@ show_help() {
|
|||||||
echo " INSTALL_DIR Install location (default: /opt/stegasoo)"
|
echo " INSTALL_DIR Install location (default: /opt/stegasoo)"
|
||||||
echo " PYTHON_VERSION Python version (default: 3.12)"
|
echo " PYTHON_VERSION Python version (default: 3.12)"
|
||||||
echo " STEGASOO_REPO Git repo URL"
|
echo " STEGASOO_REPO Git repo URL"
|
||||||
echo " STEGASOO_BRANCH Git branch (default: 4.1)"
|
echo " STEGASOO_BRANCH Git branch (default: 4.2)"
|
||||||
echo ""
|
echo ""
|
||||||
echo " Example:"
|
echo " Example:"
|
||||||
echo " export INSTALL_DIR=\"/home/pi/stegasoo\""
|
echo " export INSTALL_DIR=\"/home/pi/stegasoo\""
|
||||||
@@ -97,8 +97,7 @@ done
|
|||||||
INSTALL_DIR="${INSTALL_DIR:-/opt/stegasoo}"
|
INSTALL_DIR="${INSTALL_DIR:-/opt/stegasoo}"
|
||||||
PYTHON_VERSION="${PYTHON_VERSION:-3.12}"
|
PYTHON_VERSION="${PYTHON_VERSION:-3.12}"
|
||||||
STEGASOO_REPO="${STEGASOO_REPO:-https://github.com/adlee-was-taken/stegasoo.git}"
|
STEGASOO_REPO="${STEGASOO_REPO:-https://github.com/adlee-was-taken/stegasoo.git}"
|
||||||
STEGASOO_BRANCH="${STEGASOO_BRANCH:-4.1}"
|
STEGASOO_BRANCH="${STEGASOO_BRANCH:-4.2}"
|
||||||
JPEGIO_REPO="https://github.com/dwgoon/jpegio.git"
|
|
||||||
|
|
||||||
# Load config files (system, then user - user overrides system)
|
# Load config files (system, then user - user overrides system)
|
||||||
for config_file in "/etc/stegasoo.conf" "$HOME/.config/stegasoo/stegasoo.conf"; do
|
for config_file in "/etc/stegasoo.conf" "$HOME/.config/stegasoo/stegasoo.conf"; do
|
||||||
@@ -212,10 +211,10 @@ else
|
|||||||
cd "$INSTALL_DIR"
|
cd "$INSTALL_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Pre-built environment tarball (skips 20+ min compile time)
|
# Pre-built environment tarball (skips compile time)
|
||||||
# Includes both pyenv Python 3.12 AND venv with all dependencies
|
# Includes venv with all dependencies
|
||||||
PREBUILT_TARBALL="$INSTALL_DIR/rpi/stegasoo-rpi-runtime-env-arm64.tar.zst"
|
PREBUILT_TARBALL="$INSTALL_DIR/rpi/stegasoo-rpi-runtime-env-arm64.tar.zst"
|
||||||
PREBUILT_URL="${PREBUILT_URL:-https://github.com/adlee-was-taken/stegasoo/releases/download/v4.1.5/stegasoo-rpi-runtime-env-arm64.tar.zst}"
|
PREBUILT_URL="${PREBUILT_URL:-https://github.com/adlee-was-taken/stegasoo/releases/download/v4.2.0/stegasoo-rpi-runtime-env-arm64.tar.zst}"
|
||||||
USE_PREBUILT=true
|
USE_PREBUILT=true
|
||||||
|
|
||||||
# Use local tarball if present, otherwise will download
|
# Use local tarball if present, otherwise will download
|
||||||
|
|||||||
Reference in New Issue
Block a user