From eb56dd25132ff18d0bd1304da1df945137123fbd Mon Sep 17 00:00:00 2001 From: poprhythm Date: Sun, 15 Feb 2026 02:42:05 +0000 Subject: [PATCH] Add Synchronet setup helper script --- synchronet/SETUP.sh | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 synchronet/SETUP.sh diff --git a/synchronet/SETUP.sh b/synchronet/SETUP.sh new file mode 100755 index 0000000..1a70839 --- /dev/null +++ b/synchronet/SETUP.sh @@ -0,0 +1,54 @@ +#!/bin/bash +# Synchronet BBS Initial Setup Script + +set -e + +echo "=== Synchronet BBS Setup ===" +echo "" + +# Check if container is running +if ! docker ps | grep -q synchronet; then + echo "Error: Synchronet container is not running!" + echo "Please deploy the stack in Portainer first." + exit 1 +fi + +echo "Step 1: Setting permissions on data directory..." +sudo chmod -R a+rwX /srv/synchronet + +echo "" +echo "Step 2: Waiting for initial configuration files to be created..." +sleep 5 + +echo "" +echo "Step 3: Running Synchronet configuration program (scfg)..." +echo "Important tasks to complete in scfg:" +echo " 1. System → Set your BBS name and sysop information" +echo " 2. Networks → Configure any network settings" +echo " 3. External Programs → Verify door games are available" +echo "" +echo "Press ENTER to launch scfg..." +read + +docker exec -it synchronet scfg + +echo "" +echo "Step 4: Installing/Enabling LORD door game..." +docker exec -it synchronet bash -c "cd /sbbs && ./exec/jsexec /sbbs/xtrn/install-xtrn.js lord || echo 'LORD may already be installed'" + +echo "" +echo "Step 5: Restarting Synchronet to apply changes..." +docker restart synchronet + +echo "" +echo "=== Setup Complete! ===" +echo "" +echo "Access your BBS:" +echo " Web Interface: http://$(hostname -I | awk '{print $1}'):8023" +echo " Telnet: telnet $(hostname -I | awk '{print $1}') 23" +echo " SSH: ssh -p 2222 new@$(hostname -I | awk '{print $1}')" +echo "" +echo "Next steps:" +echo " 1. Configure nginx-proxy-manager for web access (see README.md)" +echo " 2. Test LORD by connecting and selecting External Programs" +echo " 3. Invite your friends!"