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 insites-enabled. - certbot: the package has a renewal timer (
certbot.timer). - Postgres: the package makes and starts a cluster. Local logins use
peer, TCP logins usescram-sha-256. - Ubuntu
needrestartdoes 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 --initdbmakes 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.comdoes 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
dockeris 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 1The 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
zlabel indocker-compose.override.yml:services: proxy: volumes: !override - ./Caddyfile:/etc/caddy/Caddyfile:ro,zIn native mode, systemd cannot read
.envwhen the file has the labelvar_t(a new folder under/var/www). The services fail withFailed to load environment files: Permission denied. The script installspolicycoreutils-python-utilsif it is missing, then gives.envthe labeletc_t:sudo semanage fcontext -a -t etc_t '/var/www/zerodot/\.env' sudo restorecon /var/www/zerodot/.envIt 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. Ifpacmanshows "not found" or 404, the package lists are old. Runsudo pacman -Syu, then run the script again.If
/var/lib/pacman/db.lckexists, the script waits up to 5 minutes for the other pacman.Docker: the packages
docker,docker-composeanddocker-buildx.Caddy and cloudflared: in the Arch repositories.
nginx:
nginx.confdoes not load/etc/nginx/conf.d. The script asks to add this line in thehttp { }block:include /etc/nginx/conf.d/*.conf;certbot: the packages
certbotandcertbot-nginx. Arch has no renewal timer. The script addszerodot-certbot-renew.timer. It runscertbot renewtwice a day.Postgres: the script makes the data folder
/var/lib/postgres/datawithinitdb. Local logins usepeer, TCP logins usescram-sha-256.
macOS
- Versions: 13 or newer. CPU type:
x86_64orarm64. - 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--nativeare for Linux only. - Apple Silicon: the GHCR image is
amd64only 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.