OS notes

Ubuntu, Debian, Fedora, RHEL, Rocky, Alma, Arch, macOS, and Windows.

Notes for each supported system. For the list of versions, see Requirements.

Ubuntu and Debian

  • Package manager: apt. Firewall: ufw.
  • Docker: the script uses get.docker.com.
  • Caddy: from the Caddy repository on Cloudsmith.
  • nginx sites: /etc/nginx/sites-available/NAME.conf, with a link in sites-enabled.
  • certbot: the package has a renewal timer (certbot.timer).
  • Postgres: the package makes and starts a cluster. Local logins use peer, TCP logins use scram-sha-256.
  • Ubuntu needrestart does not restart other services during the install. The script sets it to list them only.

Fedora

  • Package manager: dnf. Firewall: firewalld.
  • SELinux is usually enforcing. See SELinux.
  • Docker: the Docker CE repository for Fedora (download.docker.com/linux/fedora).
  • Caddy: in the Fedora repositories.
  • nginx sites: /etc/nginx/conf.d/NAME.conf.
  • certbot: in the Fedora repositories, with the timer certbot-renew.timer.
  • Postgres: postgresql-setup --initdb makes the data folder /var/lib/pgsql/data.
  • Native mode: GCC 16 needs CXXFLAGS="-include cstdint" to build the code sandbox. The script sets it. See Troubleshooting.

RHEL, Rocky and Alma

  • Package manager: dnf. Firewall: firewalld.
  • SELinux is usually enforcing. See SELinux.
  • Docker: the Docker CE repository for CentOS (download.docker.com/linux/centos). get.docker.com does not support Rocky and Alma.
  • Docker CE can conflict with Podman, Buildah or runc. The script does not remove them. It stops. Remove them yourself, or use --native.
  • If docker is Podman (podman-docker), the script stops. Zerodot needs Docker Engine.
  • Caddy is not in the repositories. The script asks to turn on the COPR repository @caddy/caddy.
  • certbot is in EPEL. The script does not turn on EPEL. If certbot is missing, the site works on HTTP. Install certbot from EPEL, then run certbot --nginx -d zerodot.example.com.
  • nginx sites: /etc/nginx/conf.d/NAME.conf.

SELinux

With SELinux enforcing:

  • nginx cannot connect to the app. A confined Caddy also cannot. The script asks to set this boolean:

    sudo setsebool -P httpd_can_network_connect 1
    

    The script checks the SELinux type of the Caddy process. If Caddy is not confined (not httpd_t), it does not change the boolean.

  • In Docker mode, the Caddy container cannot read the mounted Caddyfile without a label. The script adds the z label in docker-compose.override.yml:

    services:
      proxy:
        volumes: !override
          - ./Caddyfile:/etc/caddy/Caddyfile:ro,z
    
  • In native mode, systemd cannot read .env when the file has the label var_t (a new folder under /var/www). The services fail with Failed to load environment files: Permission denied. The script installs policycoreutils-python-utils if it is missing, then gives .env the label etc_t:

    sudo semanage fcontext -a -t etc_t '/var/www/zerodot/\.env'
    sudo restorecon /var/www/zerodot/.env
    

    It writes the change to the log. To undo, run sudo semanage fcontext -d '/var/www/zerodot/\.env'.

To see the mode, run getenforce.

Postgres on Fedora and RHEL

pg_hba.conf uses ident for 127.0.0.1. A password login over TCP fails. The script adds password lines for the Zerodot user and database only, before the other rules. Other users keep ident.

When the script makes a new data folder, it uses peer for local logins and scram-sha-256 for TCP logins.

Arch Linux

  • Package manager: pacman. Firewall: ufw or firewalld, if one is on.

  • No partial upgrades. The script never runs pacman -Sy. A sync without an upgrade breaks Arch. If pacman shows "not found" or 404, the package lists are old. Run sudo pacman -Syu, then run the script again.

  • If /var/lib/pacman/db.lck exists, the script waits up to 5 minutes for the other pacman.

  • Docker: the packages docker, docker-compose and docker-buildx.

  • Caddy and cloudflared: in the Arch repositories.

  • nginx: nginx.conf does not load /etc/nginx/conf.d. The script asks to add this line in the http { } block:

    include /etc/nginx/conf.d/*.conf;
    
  • certbot: the packages certbot and certbot-nginx. Arch has no renewal timer. The script adds zerodot-certbot-renew.timer. It runs certbot renew twice a day.

  • Postgres: the script makes the data folder /var/lib/postgres/data with initdb. Local logins use peer, TCP logins use scram-sha-256.

macOS

  • Versions: 13 or newer. CPU type: x86_64 or arm64.
  • Docker mode only. Docker Desktop or OrbStack must be installed and running. The script does not install Docker.
  • Run the script without sudo. Homebrew refuses root.
  • Caddy: from Homebrew, started with brew services. nginx and --native are for Linux only.
  • Apple Silicon: the GHCR image is amd64 only at this time. The first install builds the image on the Mac (about 10 minutes).

See Install on macOS or Windows.

Windows

  • Windows 10 or 11, with install.ps1. Docker Desktop (WSL 2 backend) and git.
  • Docker mode only. Postgres and Valkey always run as containers.
  • WSL is Linux. In WSL, use install.sh.

See Install on macOS or Windows.

Container VPS (LXC, OpenVZ)

  • Docker often does not work in a container. The script recommends native mode.
  • The script cannot add swap in a container.

IPv6-only servers

github.com and ghcr.io have no IPv6 address. Turn on NAT64 and DNS64 at your provider, or add an IPv4 address. Without them, the script cannot get the code.

Change this page on GitHub