Server Installation

Understand what the one-line bootstrap installer checks, how version pinning works, and how to customize or manually deploy the server.

One-Line Bootstrap Installer

Run on Ubuntu 22.04 LTS or Ubuntu 24.04 LTS (AMD64 or ARM64):

curl -fsSL https://synora.codesec.me/install.sh | sudo bash

What docs/install.sh Performs

  1. Root verification: Confirms execution as root (EUID == 0).
  2. OS check: Reads /etc/os-release and enforces Ubuntu 22.04 or 24.04 (override only with --allow-unsupported-os).
  3. Architecture check: Verifies x86_64/amd64 (AMD64) or aarch64/arm64 (ARM64).
  4. Dependency check: Checks for curl, git, tar, openssl, and sha256sum (or shasum). On Ubuntu, missing base packages are installed via apt-get.
  5. Existing installation protection: Inspects /opt/synora (or your chosen --dir) for existing deployment/lite, deployment/standard, or legacy state. It refuses to overwrite without explicit confirmation and always preserves .env, data/, and backups/ when updating repository files.
  6. Pinned download & verification: Downloads release tag 0.3.1 into a temporary directory cleaned up via shell EXIT/INT/TERM traps, verifies published SHA256SUMS (when available for the tag) or an explicit --sha256 digest, and validates the extracted repository structure.
  7. Guided setup handoff: Reattaches /dev/tty when piped through curl | sudo bash and executes installer/install.sh, which handles hardware sizing, Docker Engine + Compose installation, .env creation (mode 0600), and container startup.

Version Selection and Options

Stable installs default to verified tag 0.3.1 rather than tracking mutable main. Pass arguments after bash -s -- or via environment variables:

curl -fsSL https://synora.codesec.me/install.sh | sudo bash -s --   --version 0.3.1   --dir /opt/synora
Flag Environment Variable Default Purpose
-v, --version <tag> SYNORA_VERSION 0.3.1 Select release tag (or explicit branch ref)
-d, --dir <path> SYNORA_INSTALL_DIR /opt/synora Target installation directory on the VPS
--sha256 <hex> SYNORA_SHA256 empty Require exact SHA-256 match for downloaded archive
--git SYNORA_DOWNLOAD_METHOD=git auto Clone via git clone --depth 1 --branch <tag>
--confirm-existing SYNORA_CONFIRM_EXISTING=1 0 Allow in-place code update without interactive prompt
--dry-run SYNORA_DRY_RUN=1 0 Run preflight checks without downloading or writing files

Manual Git Installation

If you prefer inspecting the repository before running the installer:

sudo apt-get update && sudo apt-get install -y git
git clone --branch 0.3.1 https://github.com/altafpasha/synora.git /opt/synora
cd /opt/synora
sudo bash installer/install.sh

Hardware Sizing & Docker

installer/lib/system-detect.sh collects RAM, CPU cores, available disk, OS, Docker/Compose status, ports 80/443/3000, and any existing deployment:

  • < 950 MB RAM: Triggers a low-RAM warning requiring explicit confirmation; recommends Lite Mode.
  • 1 GB to < 2 GB RAM (or single vCPU): Recommends Lite Mode.
  • ≥ 1900 MB RAM and ≥ 2 vCPU: Recommends Standard Mode.

If Docker Engine or Docker Compose v2 is missing, installer/install.sh installs docker-ce, docker-ce-cli, containerd.io, docker-buildx-plugin, and docker-compose-plugin from Docker's official Ubuntu APT repository.

Optional Cloud-Init Template

The repository includes installer/cloud-init.yaml to pre-install git, curl, and ca-certificates when provisioning a new Ubuntu VPS.