Last active
January 6, 2026 21:10
-
-
Save jimmyeao/9a6922cdf1c69da92f1be9c7e3463052 to your computer and use it in GitHub Desktop.
install-theiacast-client.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # TheiaCast Linux Client Installation Script (Wrapper) | |
| # Usage: curl -sSL https://gist.githubusercontent.com/jimmyeao/YOUR_GIST_ID/raw/install-theiacast-client.sh | bash | |
| # | |
| # This script downloads the latest TheiaCast client release and runs the installer. | |
| # Supports Ubuntu Desktop/Server and Raspberry Pi (all architectures). | |
| set -e | |
| echo "========================================" | |
| echo " TheiaCast Linux Client Installer" | |
| echo "========================================" | |
| echo "" | |
| # Detect architecture | |
| ARCH=$(uname -m) | |
| case $ARCH in | |
| x86_64) | |
| ARCH_NAME="amd64" | |
| ;; | |
| aarch64|arm64) | |
| ARCH_NAME="arm64" | |
| ;; | |
| armv7l) | |
| ARCH_NAME="armv7" | |
| ;; | |
| *) | |
| echo "β Unsupported architecture: $ARCH" | |
| exit 1 | |
| ;; | |
| esac | |
| echo "β Detected architecture: $ARCH ($ARCH_NAME)" | |
| echo "" | |
| # Download tarball from Azure Blob Storage | |
| TARBALL_NAME="theiacast-client-linux.tar.gz" | |
| DOWNLOAD_URL="https://thfhaappstore.blob.core.windows.net/theiacast/${TARBALL_NAME}" | |
| echo "π₯ Downloading latest client release..." | |
| echo " URL: $DOWNLOAD_URL" | |
| if ! curl -L -o "/tmp/${TARBALL_NAME}" "$DOWNLOAD_URL"; then | |
| echo "β Failed to download client" | |
| exit 1 | |
| fi | |
| echo "β Download complete" | |
| echo "" | |
| # Extract | |
| echo "π¦ Extracting..." | |
| cd /tmp | |
| tar -xzf "${TARBALL_NAME}" | |
| cd theiacast-client | |
| echo "β Extraction complete" | |
| echo "" | |
| # Run installer | |
| echo "π Running installer..." | |
| if [ -f "scripts/install.sh" ]; then | |
| sudo bash scripts/install.sh | |
| else | |
| echo "β install.sh not found in package" | |
| exit 1 | |
| fi | |
| echo "" | |
| echo "========================================" | |
| echo " β Installation Complete!" | |
| echo "========================================" | |
| echo "" | |
| echo "Next steps:" | |
| echo "1. Configure the client: sudo nano /opt/theiacast-client/.env" | |
| echo "2. Start the service: sudo systemctl start theiacast-client" | |
| echo "3. Check status: sudo systemctl status theiacast-client" | |
| echo "4. View logs: sudo journalctl -u theiacast-client -f" | |
| echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment