Skip menu

FreeBSD Installation

FreeBSD 14.0+ using pkg utility.

System packages

Perl modules

Install modules:

Imager::File::WEBP installation

Database

Edit /usr/local/pgsql/data/pg_hba.conf, add: local samizdat samizdat scram-sha-256

Then: sudo service postgresql restart

Application

Optional Webpack frontend:

For single installation:

For multiple sites (shared node_modules):

System-wide (requires root):

User-level (no root):

Then in each site: gmake webpack (will auto-detect and link to shared node_modules)

Note: The SHARP_FORCE_GLOBAL_LIBVIPS=1 environment variable tells sharp to use the system-installed libvips instead of downloading prebuilt binaries, which are not available for BSD systems.

SSL cert (dev):

Usage

Jails & Service

For jails: ensure network access, mount devfs, configure port forwarding.

Copy samizdat.rc to /usr/local/etc/rc.d/samizdat, then enable with: sudo chmod +x /usr/local/etc/rc.d/samizdat && sudo sysrc samizdat_enable=YES

Performance tuning in /etc/sysctl.conf: