#!/bin/bash # ============================================ # Super Advanced Terminal - Startup Script # ============================================ set -e echo "============================================" echo " Starting Super Advanced Terminal v2.0" echo "============================================" # Create necessary directories mkdir -p ~/workspace mkdir -p /tmp/nginx_client_body /tmp/nginx_proxy /tmp/nginx_fastcgi /tmp/nginx_uwsgi /tmp/nginx_scgi # ---- Start Terminal Emulator ---- echo "[1/2] Starting terminal on :7681..." sys-agent \ -c admin:superterminal \ -W \ -p 7681 \ -t fontSize=15 \ -t 'fontFamily="JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace' \ -t 'theme={"background":"#1a1b26","foreground":"#c0caf5","cursor":"#c0caf5","cursorAccent":"#1a1b26","selection":"#33467C","black":"#15161E","red":"#f7768e","green":"#9ece6a","yellow":"#e0af68","blue":"#7aa2f7","magenta":"#bb9af7","cyan":"#7dcfff","white":"#a9b1d6","brightBlack":"#414868","brightRed":"#f7768e","brightGreen":"#9ece6a","brightYellow":"#e0af68","brightBlue":"#7aa2f7","brightMagenta":"#bb9af7","brightCyan":"#7dcfff","brightWhite":"#c0caf5"}' \ zsh > /tmp/sys-agent.log 2>&1 & sleep 1 # ---- Start Nginx (foreground) ---- echo "[2/2] Starting Nginx on :7860..." echo "" echo "============================================" echo " All services running!" echo " Terminal: http://localhost:7860/" echo "============================================" exec nginx -c /etc/nginx/nginx.conf -g 'daemon off;'