• 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 Install ThingsBoard on Cloud Server or VPS

By Abhishek Ghosh March 30, 2021 9:15 am Updated on March 30, 2021

How to Install ThingsBoard on Cloud Server or VPS

Advertisement

ThingsBoard is an open-source IoT platform that supports MQTT, CoAP and HTTP protocols related to IoT. It is a software package that can be installed to add various prototyping boards including Raspberry Pi, Arduino, ESP32 for data collection, processing, visualization, and device management. When we install vanilla Mosquitto with Ellipse Paho, we get a basic UI. The default Mosquitto package is great to learn the core things of IoT but in real life, we need some solution that offers us something like the hosted cloud-based IoT platforms like IBM Watson IoT offers us. We need a ready to use a mobile app, a good number of examples with Arduino, and a dashboard with widgets. Thingsboard also runs on their cloud as a paid service with a trial. We can use the cloud-hosted version of Thingsboard to test and decide whether we can run Thingsboard on our server. Installing Thingsboard requires a VPS with a minimum of 1GB RAM.

How to Install ThingsBoard on Cloud Server or VPS

SSH to a new Ubuntu 18.04 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 :

Advertisement

---

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.2.2/thingsboard-3.2.2.deb
sudo dpkg -i thingsboard-3.2.2.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
sudo /usr/share/thingsboard/bin/install/install.sh --loadDemo
sudo service thingsboard start

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 543 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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 Install ThingsBoard on Cloud Server or VPS

  • WordPress XML-RPC Attack & Fake PHP5-FPM Error

    WordPress XML-RPC Attack Can Bring DDoS Resulting in Random 502 PHP5-FPM Errors on Nginx Server or Can Make the Database Down. Here is Fix.

  • Setup SFTP Without Shell Access For WordPress, Cloud Server

    Often We Need To Host Account On VPS OR Cloud Server Where It Is Desired To Have A Setup SFTP Without Shell Access For WordPress Like cPanel.

  • How Google Cloud Platform is Compared to IBM, OVH, DO, Linode?

    How Google Cloud Platform is When Compared to Other Cloud Webhosts IBM, OVH, DO, Linode? Not surprisingly not cost effective in terms of bench-marking.

  • Configure Apache With Fail2Ban on Ubuntu 18.04

    Here is How To Configure Apache With Fail2Ban on Ubuntu 18.04 to block more types of malicious attempts towards server to create a practical firewall.

  • How To Install Apache Phoenix (SQL on HBase)

    We talked about Apache Phoenix in our previous guides and articles such as How To Install Apache HBase and List of Apache Projects For Big Data. Apache Phoenix is a massively parallel, relational database engine supporting OLTP for Hadoop using Apache HBase as store. Phoenix provides a JDBC driver that cleverly hides the noSQL store […]

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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • How to Build a DIY Water Level Indicator? April 16, 2021
  • How Startups Can Convince the Investors April 14, 2021
  • What to Know About the Cloud Storage Services for Smartphones April 13, 2021
  • WonderFox HD Video Converter Factory Pro Review April 10, 2021
  • What is the Maximum Cable Length Between Arduino/ESP32 and a Sensor April 8, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "How to Install ThingsBoard on Cloud Server or VPS," in The Customize Windows, March 30, 2021, April 17, 2021, https://thecustomizewindows.com/2021/03/how-to-install-thingsboard-on-cloud-server-or-vps/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

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

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

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