Binary package
How to install Comentario locally from a binary package.
This page explains how you can install Comentario locally using a binary package.
Prerequisites
- Your system has systemd, because Comentario runs as a systemd service.
- Optional: PostgreSQL is installed and running, and the required database is created.
Installation
- Download a
.deb
or.rpm
binary package from the releases page. - Run
dpkg
orrpm
to install the package.
Configuration
Upon installation, Comentario (comentario.service
) will start with all the default configuration, which may not be entirely correct.
The default configuration assumes:
- Comentario is using a local, file-based SQLite3 database for storing comments, users, statistics etc. The database file will be created at
/var/lib/comentario/comentario.sqlite3
. - Comentario is listening on
localhost
port80
.
Feel free to make necessary changes:
- Edit the file
/etc/comentario/comentario.conf
containing the static configuration (as environment variables). - Edit the secrets in
/etc/comentario/secrets.yaml
. Make sure the file is only readable byroot
(has0600
permissions).
Then restart the service:
sudo systemctl restart comentario.service
Read more on configuring the backend here.