#!/usr/bin/env bash # ============================================================================== # ⚡ ZothNet Sovereign Darknet Mesh Universal Linux Installer # Engineered by Neal Frazier Tech (@1nc0gn30) • NullAI Platform # ============================================================================== set -e BOLD="\033[1m" GOLD="\033[38;2;184;134;11m" GREEN="\033[32m" RED="\033[31m" RESET="\033[0m" echo -e "${GOLD}${BOLD}" cat << 'EOF' ☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵ ______ ____ ______ __ ___ _ _________________ /_ / / / / / /_ __// / / / | / / / ____/_ __/ ___/ / / / / / / / / / /_/ / |/ / / __/ / / \__ \ / /_/ /_/ /___/ / / __ / /| / / /___ / / ___/ / /___/\____/_____/ /_/ /_/_/ |_/ /_____/ /_/ /____/ ☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵☵ EOF echo -e "${RESET}" echo -e "${BOLD}Installing ZothNet Sovereign Darknet Mesh Daemon & Browser...${RESET}" # 1. Detect Architecture ARCH="$(uname -m)" OS="$(uname -s)" if [ "$OS" != "Linux" ]; then echo -e "${RED}[!] This automated installer is for Linux systems. Please download manually from https://zothnet.nullai.tech${RESET}" exit 1 fi BIN_URL="https://zothnet.nullai.tech/downloads/zothnet-linux-amd64" if [ "$ARCH" != "x86_64" ]; then echo -e "${GOLD}[*] Non-x86_64 architecture detected (${ARCH}). Attempting universal download...${RESET}" fi # 2. Target installation directory TARGET_DIR="${HOME}/.local/bin" mkdir -p "$TARGET_DIR" TARGET_BIN="${TARGET_DIR}/zothnet" echo -e "[*] Downloading sovereign binary to ${TARGET_BIN}..." if command -v curl >/dev/null 2>&1; then curl -fsSL "$BIN_URL" -o "$TARGET_BIN" elif command -v wget >/dev/null 2>&1; then wget -qO "$TARGET_BIN" "$BIN_URL" else echo -e "${RED}[!] Neither curl nor wget was found. Please install either to continue.${RESET}" exit 1 fi chmod +x "$TARGET_BIN" # 3. Create Desktop Launcher Entry DESKTOP_DIR="${HOME}/.local/share/applications" mkdir -p "$DESKTOP_DIR" cat << EOF > "${DESKTOP_DIR}/zothnet.desktop" [Desktop Entry] Name=ZothNet Sovereign Browser Comment=Sovereign Darknet Mesh Workstation & App Engine Exec=${TARGET_BIN} run Icon=utilities-terminal Terminal=true Type=Application Categories=Network;Security;WebBrowser; EOF chmod +x "${DESKTOP_DIR}/zothnet.desktop" # 4. Completion echo -e "\n${GREEN}${BOLD}[✓] ZothNet installed successfully!${RESET}" echo -e "Binary location: ${GOLD}${TARGET_BIN}${RESET}" echo -e "\nTo launch the sovereign daemon and open your web workstation:" echo -e " ${GOLD}zothnet run${RESET}" echo -e "\nOr open in your browser directly: ${GOLD}http://127.0.0.1:9900${RESET}\n"