Cette page existe aussi en français. Lire en français
Install on Linux
PostgreSQL, then Adekio as a hardened systemd service, on Ubuntu, Debian or RHEL / Rocky.
Example for Ubuntu 24.04 and Debian 12; the RHEL / Rocky 9 commands are given as comments. Adekio is built for x86-64
(amd64) and ARM64 (arm64) processors. Replace <password> with a password of your choice (letters, digits, -
and _).
1. Install PostgreSQL 17
sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh # official PostgreSQL repository
sudo apt install -y postgresql-17
# RHEL/Rocky 9: repository https://download.postgresql.org/pub/repos/yum/, then dnf install postgresql17-server
# and /usr/pgsql-17/bin/postgresql-17-setup initdb && systemctl enable --now postgresql-17
sudo -u postgres psql -c "CREATE ROLE adekio LOGIN PASSWORD '<password>';"
sudo -u postgres psql -c "CREATE DATABASE adekio OWNER adekio;"
PostgreSQL 15 or 16, shipped by the distribution, should work but are not tested. With MariaDB 11.8, the address is
mariadb://adekio:<password>@127.0.0.1:3306/adekio (database in utf8mb4).
2. Install Adekio
Download the archive for your processor from the latest release, then:
mkdir -p ~/adekio && tar xzf adekio_<version>_linux_amd64.tar.gz -C ~/adekio && cd ~/adekio
sudo ./install.sh --database-url 'postgres://adekio:<password>@127.0.0.1:5432/adekio?sslmode=disable'
The script creates the adekio system user and installs:
| What | Where |
|---|---|
| Program | /opt/adekio/bin/adekio |
| Configuration | /etc/adekio/config.yaml |
Data (measurements, secret.key) |
/var/lib/adekio |
| Service | adekio (systemd, hardened: only ping and listening on a port below 1024 are granted) |
It waits for the server to answer, then shows the address and where the initial password is. Options: --port 8443,
--binary <path>.
3. Open the firewall
sudo ufw allow 8080/tcp
# RHEL/Rocky: sudo firewall-cmd --permanent --add-port=8080/tcp && sudo firewall-cmd --reload
4. First sign-in
Open http://<server>:8080. The temporary password of the admin account:
sudo cat /var/lib/adekio/initial-admin-password.txt
See First sign-in and settings. Service status and logs: systemctl status adekio,
journalctl -u adekio -f.
Next steps
- Switch to HTTPS: Enable HTTPS.
- Plan the backups: Back up.
Was this page helpful?
Thank you for your feedback. Tell us what is missing