• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » How to Setup ThingsBoard IoT on Ubuntu/Debian Server

By Abhishek Ghosh November 29, 2022 9:11 pm Updated on November 29, 2022

How to Setup ThingsBoard IoT on Ubuntu/Debian Server

Advertisement

In earlier guides, we have mentioned that ThingsBoard is an open-source IoT platform which supports MQTT, CoAP and HTTP protocol. Supporting HTTP requests is quite important in some use cases. For example, when you need a toggle button to control your AC powered appliances, then the easiest way is to control with a cURL request. This you could do with IBM Watson IoT, but as we have said earlier, IBM Watson IoT platform will be retired soon. ThingsBoard is a software package that can be used for data collection, processing, visualization, and device management. All you need is a virtual server with 1GB RAM with root access.

How to Setup ThingsBoard IoT on Ubuntu

Above is a screenshot of ThingsBoard cloud. You’ll get a similar UI on your server.

 

Steps to Install ThingsBoard IoT on Ubuntu/Debian Server

 

It is practical to use a subdomain or domain and setup Let’s Encrypt/Certbot. The steps of the later will be similar to that shown in our earlier guide.

Advertisement

---

SSH to the instance. First, we have to install OpenJDK 11 and set it to use by the operating system by default :

Vim
1
2
3
4
5
sudo apt update
sudo apt install -y wget curl mlocate
sudo apt install openjdk-11-jdk
sudo update-alternatives --config java
java -version

Next, we have to install PostgreSQL and configure it :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# update locate database
sudo updatedb
# import the repository signing key
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# add repository contents to your system:
RELEASE=$(lsb_release -cs)
echo "deb http://apt.postgresql.org/pub/repos/apt/ ${RELEASE}"-pgdg main | sudo tee /etc/apt/sources.list.d/pgdg.list
# install and launch the postgresql service:
sudo apt update
sudo apt -y install postgresql-12
sudo service postgresql start
sudo su - postgres
psql
\password
\q
# press CTRL + D
psql -U postgres -d postgres -h 127.0.0.1 -W
CREATE DATABASE thingsboard;
\q

Now we will install Thingsboard and add the database details:

Vim
1
2
3
wget https://github.com/thingsboard/thingsboard/releases/download/v3.4.1/thingsboard-3.4.1.deb
sudo dpkg -i thingsboard-3.4.1.deb
nano /etc/thingsboard/conf/thingsboard.conf

These things you need to add to the configuration file :

Vim
1
2
3
4
5
6
7
8
9
10
11
export DATABASE_ENTITIES_TYPE=sql
export DATABASE_TS_TYPE=sql
export SPRING_JPA_DATABASE_PLATFORM=org.hibernate.dialect.PostgreSQLDialect
export SPRING_DRIVER_CLASS_NAME=org.postgresql.Driver
export SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/thingsboard
export SPRING_DATASOURCE_USERNAME=postgres
export SPRING_DATASOURCE_PASSWORD=PUT_YOUR_POSTGRESQL_PASSWORD_HERE
export SPRING_DATASOURCE_MAXIMUM_POOL_SIZE=5
export SQL_POSTGRES_TS_KV_PARTITIONING=MONTHS
# Update ThingsBoard memory usage restricted to 256MB
export JAVA_OPTS="$JAVA_OPTS -Xms256M -Xmx256M"

Now, run the installation script and start ThingsBoard :

Vim
1
2
3
4
sudo /usr/share/thingsboard/bin/install/install.sh --loadDemo
sudo service thingsboard start
# If you want ThingsBoard to start automatically upon a reboot, you must enable it:
sudo service thingsboard enable

Now, you will be able to open Web UI at this address:

Vim
1
http://server-IP-address:8080/

The demo script has three user accounts. sysadmin@thingsboard.org with sysadmin as the password, tenant@thingsboard.org with tenant as the password and customer@thingsboard.org with customer as the password.

Next, you can follow this official guide to get started with Thingsboard :

Vim
1
2
https://thingsboard.io/docs/getting-started-guides/helloworld/
https://thingsboard.io/docs/samples/esp32/gpio-control-pico-kit-dht22-sensor/

This Article Has Been Shared 235 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Setup ThingsBoard IoT on Ubuntu/Debian Server

  • Fundamentals on Hovering Data Cloud

    From the basic idea of ​​communication between cars, the concept of Hovering Data Cloud system is developed. It is related to telecom & IoT.

  • Internet of Things in the Smart Home : Part II

    The devices in the smart home act independently, networked or both. Intelligence is intended to expand functions or introduce new functions into the already known devices, thus creating added value for the user.

  • Getting Started With IBM Cloud IoT (Watson IoT Platform)

    Here is How To Get Started With IBM Cloud IoT (Watson IoT Platform). We Provided the Basic Idea of What Watson IoT Platform Does And What to Expect.

  • Cloud Based SMS vs Push Notifications for IoT

    A Brief Article on Cloud Based SMS vs Push Notifications for IoT Will Help the Developers to Choose Between Two Options With Maximum Delivery Rate.

  • How to Connect Apache Kafka With MQTT

    We Can Connect Apache Kafka With MQTT in Different Ways With Different Types of Available Connectors, Including Connectors Based on REST API.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

About This Article

Cite this article as: Abhishek Ghosh, "How to Setup ThingsBoard IoT on Ubuntu/Debian Server," in The Customize Windows, November 29, 2022, February 2, 2023, https://thecustomizewindows.com/2022/11/how-to-setup-thingsboard-iot-on-ubuntu-debian-server/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT