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
- Root verification: Confirms execution as root (
EUID == 0). - OS check: Reads
/etc/os-releaseand enforces Ubuntu22.04or24.04(override only with--allow-unsupported-os). - Architecture check: Verifies
x86_64/amd64(AMD64) oraarch64/arm64(ARM64). - Dependency check: Checks for
curl,git,tar,openssl, andsha256sum(orshasum). On Ubuntu, missing base packages are installed viaapt-get. - Existing installation protection: Inspects
/opt/synora(or your chosen--dir) for existingdeployment/lite,deployment/standard, or legacy state. It refuses to overwrite without explicit confirmation and always preserves.env,data/, andbackups/when updating repository files. - Pinned download & verification: Downloads release tag
0.3.1into a temporary directory cleaned up via shellEXIT/INT/TERMtraps, verifies publishedSHA256SUMS(when available for the tag) or an explicit--sha256digest, and validates the extracted repository structure. - Guided setup handoff: Reattaches
/dev/ttywhen piped throughcurl | sudo bashand executesinstaller/install.sh, which handles hardware sizing, Docker Engine + Compose installation,.envcreation (mode0600), 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.