Saturday 21 October 2017

Setting up ThingsBoard

Recently I have been playing with ThingsBoard and decided to setup a local install of ThingsBoard on a virtual machine.

I decided to create a new Centos 7 VM since that is my preferred Linux distribution and it is supported by ThingsBoard.

Things to remember when setting it up:-

  • Add the EPEL repository to yum
    yum install epel-release
    yum repolist
  • Install Java 8 - OpenJava 8 is OK
    yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel
    alternatives --config java
    and ensure java 1.8 is the default
  • Follow the instructions on https://thingsboard.io/docs/user-guide/install/linux/ up to the point of downloading the RPM file. Once ThingsBoard RPM file is downloaded use yum installlocal <ThingsBoard RPM file>
  • Optionally edit the ThingsBoard conflict file to use port 80
  • Add the ports ThingsBoard is using to the firewall.
    • firewall-cmd --permanent --add-port=8080/tcp (for default)
    • firewall-cmd --permanent --add-port=80/tcp (for port 80)
    • firewall-cmd --permanent --add-port=1883/tcp (for MQTT)
    • firewall-cmd --reload
  • Connect your web browser to the Centos machine on the chosen port. You will be asked to login. The default username is sysadmin@thingsboard.org with a password of sysadmin. Now change the password and add tenants and devices etc.

No comments:

Post a Comment