Install InfluxDB
Part of FIBER Lite's complete pre-integrated software stack. Not part of a stock FIBER install.
-
Download the InfluxData repository GPG key and verify its fingerprint before trusting it:
curl --silent --location -O https://repos.influxdata.com/influxdata-archive.keygpg --show-keys --with-fingerprint --with-colons ./influxdata-archive.key 2>&1 \| grep -q '^fpr:\+24C975CBA61A024EE1B631787C3D57159FC2F927:$' \&& echo "fingerprint OK" -
Add the key and repository:
sudo mkdir -p /etc/apt/keyringscat influxdata-archive.key | gpg --dearmor | sudo tee /etc/apt/keyrings/influxdata-archive.gpg > /dev/nullrm influxdata-archive.keyecho 'deb [signed-by=/etc/apt/keyrings/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list -
Update the package list and install InfluxDB 2.x with its CLI:
sudo apt updatesudo apt install -y influxdb2 influxdb2-clisudo systemctl enable --now influxdb -
Initialize the organization, bucket, and API token non-interactively:
influx setup --username fiberlite --password '<choose a password>' \--org fiber-lite --bucket fiber-lite --token "$(openssl rand -hex 32)" --forcetipopenssl rand -hex 32generates a random 64-character token so you don't have to invent one. Immediately after, runinflux auth listto print it back out — store it, together with the password you chose; they are needed again for the Node-RED flow above and the Grafana datasource below.