This guide describes how to install ThingsBoard IoT Gateway on Ubuntu Server 18.04 LTS. The minimum system requirements match official minimum requirements for the OS.
Download installation package.
wget https://github.com/thingsboard/thingsboard-gateway/releases/latest/download/python3-thingsboard-gateway.deb
Install ThingsBoard IoT Gateway as package and run it as daemon use the following command:
sudo apt install ./python3-thingsboard-gateway.deb -y
The deb package will automatically install the necessary libraries for the IOT Gateway to work:
systemctl status thingsboard-gateway
You may notice some errors in the output. However, it is expected, since gateway is not configured to connect to ThingsBoard yet:
... python3[7563]: ''2019-12-26 09:31:15' - ERROR - mqtt_connector - 181 - Default Broker connection FAIL with error 5 not authorised!'
... python3[7563]: ''2019-12-26 09:31:15' - DEBUG - mqtt_connector - 186 - "Default Broker" was disconnected.'
... python3[7563]: ''2019-12-26 09:31:16' - DEBUG - tb_client - 78 - connecting to ThingsBoard'
... python3[7563]: ''2019-12-26 09:31:17' - DEBUG - tb_client - 78 - connecting to ThingsBoard'
Now you can go to configuration guide to configure the gateway.