from __future__ import annotations from .components import _code_window from .html_utils import SafeHtml, trusted def _linux_installer_section(base_url: str) -> SafeHtml: base_url = base_url.rstrip("/") system_install = f"curl -fsSL {base_url}/install.sh | sudo sh" system_uninstall = f"curl -fsSL {base_url}/uninstall.sh | sudo sh" return trusted( f"""

Linux cron updater

Linux updater.

Run this on a Linux box that is always on. It creates and registers a hostname, installs the updater, schedules cron, and prints your private dashboard link. Works with Debian, Ubuntu, Fedora, Arch, Alpine, and Proxmox hosts.

Install

Sets up the updater and cron job.

{_code_window(system_install, copy_label="install command", class_name="mt-3")}

Uninstall

Stops the updater and leaves private URLs on disk.

{_code_window(system_uninstall, copy_label="uninstall command", class_name="mt-3")}
""" )