Debian Installation
You must have Debian >= 8 or Ubuntu >= 16.04.
When using the Debian package, the Noflux daemon is supervised by systemd.
Make sure to install and configure Postgresql before installing Noflux.
Install Noflux with the Debian package ¶
- Download the Debian package from the GitHub Releases page.
- Install the Debian package:
dpkg -i noflux_2.0.13_amd64.deb
Install Noflux from the APT Repository ¶
You can configure APT to use Noflux repository.
To start, create a noflux.list file in the /etc/apt/sources.list.d directory.
You will need sudo access to make these changes:
Here is a basic template for /etc/apt/sources.list.d/noflux.list:
deb [trusted=yes] https://repo.noflux.app/apt/ * *
Or run this one-liner:
echo "deb [trusted=yes] https://repo.noflux.app/apt/ * *" | sudo tee /etc/apt/sources.list.d/noflux.list > /dev/null
Update the list of packages:
apt update
Then install the package:
apt install noflux
To upgrade Noflux, run apt upgrade noflux, and don’t forget to run the database migrations.
https://apt.noflux.app/ is deprecated in favor of https://repo.noflux.app/apt/.Configure Noflux ¶
- Define the environment variable
DATABASE_URLin/etc/noflux.conf - Run the SQL migrations manually:
noflux -migrate -config-file /etc/noflux.conf, or set the variableRUN_MIGRATIONS=1in/etc/noflux.conf - Create an admin user:
noflux -create-admin -config-file /etc/noflux.conf - Restart the process:
systemctl restart noflux - Check the process status:
systemctl status noflux
The Debian package is available for multiple architectures: amd64, arm64, and armhf.
This way, it’s very easy to install Noflux on a Raspberry Pi.
Systemd reads the environment variables from the file /etc/noflux.conf.
You must restart the service to take the new values into consideration.
Make sure to take a look at the list of configuration parameters to customize your installation.