2022-09-08 06:45:39 +00:00
# Instruction for Debian / Ubuntu Systems
Please note that the software versions referenced in this document might have changed and might not be available/working unless updated.
More details are available in the [README.md ](../README.md ) file.
2022-09-20 15:55:40 +00:00
All commands should be run as root or through sudo.
2022-09-08 06:45:39 +00:00
## Install the Java Runtime from repository
```shell
2022-09-20 15:55:40 +00:00
apt-get install default-jre-headless
2022-09-08 06:45:39 +00:00
```
## Download and Install InfluxDB
```shell
wget https://dl.influxdata.com/influxdb/releases/influxdb_1.8.10_amd64.deb
2022-09-20 15:55:40 +00:00
dpkg -i influxdb_1.8.10_amd64.deb
systemctl daemon-reload
systemctl enable influxdb
systemctl start influxdb
2022-09-08 06:45:39 +00:00
```
Run the ```influx``` cli command and create the *hmci* database.
## Download and Install Grafana
```shell
sudo apt-get install -y adduser libfontconfig1
wget https://dl.grafana.com/oss/release/grafana_9.1.3_amd64.deb
2022-09-20 15:55:40 +00:00
dpkg -i grafana_9.1.3_amd64.deb
systemctl daemon-reload
systemctl enable grafana-server
systemctl start grafana-server
2022-09-08 06:45:39 +00:00
```
When logged in to Grafana (port 3000, admin/admin) create a datasource that points to the local InfluxDB. Now import the provided dashboards.
## Download and Install HMCi
2023-01-18 14:40:58 +00:00
[Download ](https://git.data.coop/nellemann/-/packages/generic/hmci/ ) the latest version of HMCi packaged for deb.
2022-09-08 06:45:39 +00:00
```shell
2022-09-20 15:55:40 +00:00
dpkg -i hmci_1.3.1-1_all.deb
2022-09-08 06:45:39 +00:00
cp /opt/hmci/doc/hmci.toml /etc/
cp /opt/hmci/doc/hmci.service /etc/systemd/system/
2022-09-20 15:55:40 +00:00
systemctl daemon-reload
systemctl enable hmci
2022-09-08 06:45:39 +00:00
```
Now modify */etc/hmci.toml* and test setup by running ```/opt/hmci/bin/hmci -d``` manually and verify connection to HMC and InfluxDB. Afterwards start service with ```systemctl start hmci``` .