Update RPi scripts with new ASCII art banner and simpler headers

- Add stegosaurus-themed ASCII art with diamond plates and halftone dots
- Replace box-drawing characters with simple dashes for headers
- Consistent styling across first-boot-wizard.sh, setup.sh, sanitize-for-image.sh

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Aaron D. Lee
2026-01-03 21:13:38 -05:00
parent b60880c8b3
commit cccb40dc3a
3 changed files with 59 additions and 66 deletions

View File

@@ -30,14 +30,21 @@ clear
echo -e "${CYAN}" echo -e "${CYAN}"
cat << 'BANNER' cat << 'BANNER'
_____ _
/ ____| | · . · . · . · . · . · . · . · . · . · . · . · . · . · . · ·
| (___ | |_ ___ __ _ __ _ ___ ___ ___ . · . · . · . · . · . · . · . · . · . · . · . · . · . · . .
\___ \| __/ _ \/ _` |/ _` / __|/ _ \ / _ \ · . · . · . · . · /\ · . · /\ · . · /\ · . · /\ · . · . · ·
____) | || __/ (_| | (_| \__ \ (_) | (_) | . · . · . · . · ./ \· . ./ \· . ./ \· . ./ \. · . · . .
|_____/ \__\___|\__, |\__,_|___/\___/ \___/ · . · . · . · . · \/ · . · \/ · . · \/ · . · \/ · . · . · ·
__/ | · . · . · . · . · . · . · . · . · . · . · . · . · . · . · ·
|___/ First Boot Wizard . ___ _____ ___ ___ _ ___ ___ ___ · . · . .
· / __||_ _|| __| / __| /_\ / __| / _ \ / _ \ · . · . ·
. \__ \ | | | _| | (_ | / _ \ \__ \| (_) || (_) |. · . · .
· |___/ |_| |___| \___|/_/ \_\|___/ \___/ \___/ · . · . ·
. · . · . · . · . · . · . · . · . · . · . · . · . · . · . .
· . · . · . · . · . · . · . · . · . · . · . · . · . · . · ·
. · ~~~~ · . · . · First Boot Wizard · . · . · ~~~~ · . · .
· . tail · . · . · . · . · . · . · . · . · . · head · . · ·
BANNER BANNER
echo -e "${NC}" echo -e "${NC}"
@@ -62,9 +69,8 @@ CHANNEL_KEY=""
# ============================================================================= # =============================================================================
clear clear
echo -e "${BLUE}╔═══════════════════════════════════════════════════════════════╗${NC}" echo -e "${BOLD}Step 1 of 3: HTTPS Configuration${NC}"
echo -e "${BLUE}${NC} ${BOLD}Step 1 of 3: HTTPS Configuration${NC} ${BLUE}${NC}" echo -e "${BLUE}-------------------------------------------------------${NC}"
echo -e "${BLUE}╚═══════════════════════════════════════════════════════════════╝${NC}"
echo "" echo ""
echo "HTTPS encrypts all traffic between your browser and this server" echo "HTTPS encrypts all traffic between your browser and this server"
echo "using a self-signed certificate." echo "using a self-signed certificate."
@@ -90,9 +96,8 @@ fi
if [ "$ENABLE_HTTPS" = "true" ]; then if [ "$ENABLE_HTTPS" = "true" ]; then
clear clear
echo -e "${BLUE}╔═══════════════════════════════════════════════════════════════╗${NC}" echo -e "${BOLD}Step 2 of 3: Port Configuration${NC}"
echo -e "${BLUE}${NC} ${BOLD}Step 2 of 3: Port Configuration${NC} ${BLUE}${NC}" echo -e "${BLUE}-------------------------------------------------------${NC}"
echo -e "${BLUE}╚═══════════════════════════════════════════════════════════════╝${NC}"
echo "" echo ""
echo "The standard HTTPS port is 443, which means you can access" echo "The standard HTTPS port is 443, which means you can access"
echo "Stegasoo without specifying a port in the URL." echo "Stegasoo without specifying a port in the URL."
@@ -120,9 +125,8 @@ fi
# ============================================================================= # =============================================================================
clear clear
echo -e "${BLUE}╔═══════════════════════════════════════════════════════════════╗${NC}" echo -e "${BOLD}Step 3 of 3: Channel Key Configuration${NC}"
echo -e "${BLUE}${NC} ${BOLD}Step 3 of 3: Channel Key Configuration${NC} ${BLUE}${NC}" echo -e "${BLUE}-------------------------------------------------------${NC}"
echo -e "${BLUE}╚═══════════════════════════════════════════════════════════════╝${NC}"
echo "" echo ""
echo "A channel key creates a private encoding channel." echo "A channel key creates a private encoding channel."
echo "" echo ""
@@ -151,11 +155,9 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "" echo ""
echo -e " ${BOLD}${YELLOW}$CHANNEL_KEY${NC}" echo -e " ${BOLD}${YELLOW}$CHANNEL_KEY${NC}"
echo "" echo ""
echo -e " ${RED}╔═══════════════════════════════════════════════════════════╗${NC}" echo -e " ${RED}*** IMPORTANT: Write down or copy this key NOW! ***${NC}"
echo -e " ${RED}║ IMPORTANT: Write down or copy this key NOW! ║${NC}" echo -e " ${RED}You'll need to share it with anyone who should decode${NC}"
echo -e " ${RED}║ You'll need to share it with anyone who should decode ║${NC}" echo -e " ${RED}your images. This key won't be shown again.${NC}"
echo -e " ${RED}║ your images. This key won't be shown again. ║${NC}"
echo -e " ${RED}╚═══════════════════════════════════════════════════════════╝${NC}"
echo "" echo ""
read -p "Press Enter when you've saved the key..." read -p "Press Enter when you've saved the key..."
else else
@@ -173,9 +175,8 @@ fi
# ============================================================================= # =============================================================================
clear clear
echo -e "${BLUE}╔═══════════════════════════════════════════════════════════════╗${NC}" echo -e "${BOLD}Applying Configuration...${NC}"
echo -e "${BLUE}${NC} ${BOLD}Applying Configuration...${NC} ${BLUE}${NC}" echo -e "${BLUE}-------------------------------------------------------${NC}"
echo -e "${BLUE}╚═══════════════════════════════════════════════════════════════╝${NC}"
echo "" echo ""
# Find the stegasoo user (whoever owns the install dir) # Find the stegasoo user (whoever owns the install dir)

View File

@@ -35,24 +35,22 @@ if [ "$EUID" -ne 0 ]; then
exit 1 exit 1
fi fi
BOLD='\033[1m'
if [ "$SOFT_RESET" = true ]; then if [ "$SOFT_RESET" = true ]; then
echo -e "${CYAN}" echo ""
echo "+-----------------------------------------------------------------+" echo -e "${BOLD}Soft Reset (Factory Defaults)${NC}"
echo "| Soft Reset (Factory Defaults) |" echo -e "${CYAN}-------------------------------------------------------${NC}"
echo "| |" echo " WiFi credentials will be KEPT for continued testing."
echo "| WiFi credentials will be KEPT for continued testing. |" echo " Everything else will be reset to first-boot state."
echo "| Everything else will be reset to first-boot state. |" echo ""
echo "+-----------------------------------------------------------------+"
echo -e "${NC}"
else else
echo -e "${YELLOW}" echo ""
echo "+-----------------------------------------------------------------+" echo -e "${BOLD}Sanitize Pi for Image Distribution${NC}"
echo "| Sanitize Pi for Image Distribution |" echo -e "${YELLOW}-------------------------------------------------------${NC}"
echo "| |" echo " This will remove ALL personal data for imaging."
echo "| This will remove ALL personal data for imaging. |" echo " The system will shut down when complete."
echo "| The system will shut down when complete. |" echo ""
echo "+-----------------------------------------------------------------+"
echo -e "${NC}"
fi fi
read -p "Continue? This cannot be undone! [y/N] " -n 1 -r read -p "Continue? This cannot be undone! [y/N] " -n 1 -r
@@ -327,15 +325,13 @@ fi
# ============================================================================= # =============================================================================
echo "" echo ""
if [ $VALIDATION_ERRORS -eq 0 ]; then if [ $VALIDATION_ERRORS -eq 0 ]; then
echo -e "${GREEN}+-----------------------------------------------------------------+${NC}" echo -e "${BOLD}Sanitization Complete!${NC}"
echo -e "${GREEN}| Sanitization Complete! |${NC}" echo -e "${GREEN}-------------------------------------------------------${NC}"
echo -e "${GREEN}| All validation checks passed. |${NC}" echo -e " ${GREEN}All validation checks passed.${NC}"
echo -e "${GREEN}+-----------------------------------------------------------------+${NC}"
else else
echo -e "${RED}+-----------------------------------------------------------------+${NC}" echo -e "${BOLD}Sanitization Complete with Errors${NC}"
echo -e "${RED}| Sanitization Complete with Errors |${NC}" echo -e "${RED}-------------------------------------------------------${NC}"
echo -e "${RED}| $VALIDATION_ERRORS validation check(s) failed |${NC}" echo -e " ${RED}$VALIDATION_ERRORS validation check(s) failed${NC}"
echo -e "${RED}+-----------------------------------------------------------------+${NC}"
fi fi
echo "" echo ""

View File

@@ -24,6 +24,7 @@ RED='\033[0;31m'
GREEN='\033[0;32m' GREEN='\033[0;32m'
YELLOW='\033[1;33m' YELLOW='\033[1;33m'
BLUE='\033[0;34m' BLUE='\033[0;34m'
BOLD='\033[1m'
NC='\033[0m' # No Color NC='\033[0m' # No Color
# Configuration # Configuration
@@ -32,14 +33,12 @@ PYTHON_VERSION="3.12"
STEGASOO_REPO="https://github.com/adlee-was-taken/stegasoo.git" STEGASOO_REPO="https://github.com/adlee-was-taken/stegasoo.git"
JPEGIO_REPO="https://github.com/dwgoon/jpegio.git" JPEGIO_REPO="https://github.com/dwgoon/jpegio.git"
echo -e "${BLUE}" echo ""
echo "╔═══════════════════════════════════════════════════════════════╗" echo -e "${BOLD}Stegasoo Raspberry Pi Setup${NC}"
echo "║ Stegasoo Raspberry Pi Setup Script ║" echo -e "${BLUE}-------------------------------------------------------${NC}"
echo " " echo " This will install Stegasoo with full DCT support"
echo " This will install Stegasoo with full DCT support ║" echo " Estimated time: 15-20 minutes on Pi 5"
echo "║ Estimated time: 15-20 minutes on Pi 5 ║" echo ""
echo "╚═══════════════════════════════════════════════════════════════╝"
echo -e "${NC}"
# Check if running on ARM # Check if running on ARM
ARCH=$(uname -m) ARCH=$(uname -m)
@@ -206,9 +205,8 @@ sudo systemctl daemon-reload
sudo systemctl enable stegasoo.service sudo systemctl enable stegasoo.service
echo "" echo ""
echo -e "${BLUE}╔═══════════════════════════════════════════════════════════════╗${NC}" echo -e "${BOLD}Installation Complete!${NC}"
echo -e "${BLUE}${NC} ${GREEN}Installation Complete!${NC} ${BLUE}${NC}" echo -e "${BLUE}-------------------------------------------------------${NC}"
echo -e "${BLUE}╚═══════════════════════════════════════════════════════════════╝${NC}"
echo "" echo ""
echo -e "Stegasoo installed to: ${YELLOW}$INSTALL_DIR${NC}" echo -e "Stegasoo installed to: ${YELLOW}$INSTALL_DIR${NC}"
echo "" echo ""
@@ -217,9 +215,8 @@ echo ""
# Interactive Configuration # Interactive Configuration
# ============================================================================= # =============================================================================
echo -e "${BLUE}╔═══════════════════════════════════════════════════════════════╗${NC}" echo -e "${BOLD}Configuration${NC}"
echo -e "${BLUE}${NC} ${YELLOW}Configuration${NC} ${BLUE}${NC}" echo -e "${BLUE}-------------------------------------------------------${NC}"
echo -e "${BLUE}╚═══════════════════════════════════════════════════════════════╝${NC}"
echo "" echo ""
# Track configuration choices # Track configuration choices
@@ -342,9 +339,8 @@ sudo systemctl daemon-reload
# ============================================================================= # =============================================================================
echo "" echo ""
echo -e "${BLUE}╔═══════════════════════════════════════════════════════════════╗${NC}" echo -e "${BOLD}Setup Complete!${NC}"
echo -e "${BLUE}${NC} ${GREEN}Setup Complete!${NC} ${BLUE}${NC}" echo -e "${BLUE}-------------------------------------------------------${NC}"
echo -e "${BLUE}╚═══════════════════════════════════════════════════════════════╝${NC}"
echo "" echo ""
PI_IP=$(hostname -I | awk '{print $1}') PI_IP=$(hostname -I | awk '{print $1}')