Devicehub Installation Guide en
Devicehub Installation Guide en
Installation Guide
1
Preface
This guide teaches you how to install Milesight on-premises DeviceHub platform.
Readers
This guide is intended for the following users:
- Distributors
- Network Planners
- On-site technical support and maintenance personnel
- Network administrators responsible for network configuration and maintenance
Revision History
Date Doc Version Description
Aug. 29, 2018 V 1.0 Initial version
Mar. 18, 2021 V 2.0 Brand Replace and add features
Jul. 12, 2022 V 2.1 Support Ubuntu 20.04 version
2
Contents
Introduction ................................................................................................................................ 4
System Requirements .............................................................................................................................. 4
Installation .................................................................................................................................. 5
Requirements ............................................................................................................................................ 5
Software Upload ....................................................................................................................................... 5
DeviceHub Installation ............................................................................................................................. 6
DeviceHub Uninstallation .........................................................................................................................8
Registration ............................................................................................................................................... 8
Services and Ports ................................................................................................................... 10
Expand Manage Devices ..........................................................................................................10
3
Introduction
Milesight DeviceHub provides a high-efficency, low maintenance solution to easily deploy Milesight
IoT devices across multiple locations, reducing complexity and increasing productivity. Milesight
offers cloud and on-premises version according to customer requirements. This guide will describe
how to install on-premises DeviceHub. For cloud version please contact Milesight IoT sales or click
here to apply for DeviceHub Cloud platform account.
System Requirements
Hardware
Software
4
Installation
Requirements
Ubuntu Server
DeviceHub Software
WinSCP
Putty (or other SSH tool)
Software Upload
Following steps are based on WinSCP tool. You can also use other tools to upload packages.
1. Download the DeviceHub software from Milesight IoT website.
Note: this file only works with Ubuntu 20.04 server; if you need to backup Ubuntu 16.04 DeviceHub
database to Ubuntu 20.04 server, please contact Milsight technical support.
3. Select the DeviceHub folder and click “Upload”, select the server path and click “OK” to upload.
5
DeviceHub Installation
1. Log in the server via Putty. You can also use other SSH tools.
2. Ensure the netwrok tool is installed in the server. You can type ifconfig to check it. If not found,
excute apt install net-tools to install it.
3. Navigate to the path including DeviceHub deb file to install DeviceHub software. Take the 2.2.7
version as example, type following command:
6
apt update
apt install -y ./milesight_devicehub_2.2.7_amd64.deb
The network interface of this server will show. Select and type the main interface name, then click
Enter to start the installation.
It will take about 5 minutes to complete the installation and there will show following message
when the installation complete.
7
DeviceHub Uninstallation
If you need to uninstall the DeviceHub, run following commands:
/etc/init.d/devicehub.sh stop
systemctl stop statistic.service
ip=$(ps -ef | grep clouddata | grep stund | grep -v grep | awk '{print $10}')
systemctl stop stund@$ip.service
rm -rf /home/webapps
rm -rf /clouddata
dpkg -r devicehub
Registration
After installation, open the browser and type the IP address to open the registration page. Fill in the
following information and click “Install” to complete the registration.
Administrator Account(Required)
Admin Email: the email address working as root account of the DeviceHub
Password: define the password of the root account
Outgoing Mail Server(Option)
SMTP Email: Email address used for sending alarm emails or sub-account activation emails
Password: Password of the email address
Server: SMTP server address for email service
Port: SMTP server port for email service
Security: encryption mode for email service
After completing all information, click “TEST” to check if your outgoing mail server is valid. If yes, a
SUCCESS prompt will show and DeviceHub will save the email settings.
8
Otherwise there is error message “Authentication failed”.
Note:
1) Outgoing mail server information is option and you can click “Install” to skip the configurations.
2) You can also log in the DeviceHub via administrator account and go to “Settings > Email” to
configure or change the outgoing mail server settings.
3) If the outgoing mail server is not verified by “TEST” button, it will not be saved.
After registration, you can log in the DeviceHub via administrator account.
9
Services and Ports
In order to ensure the security and unblocked communication, here are ports for services:
Port Protocol Description
22 TCP SSH Service
80 TCP NGINX Agent(Non-encrypted)
443 TCP NGINX Agent(Encrypted)
3478 UDP STUND Service
3479 UDP STUND Service
6379 TCP Message Broker
8080 TCP TR069 Service(Non-encrypted)
8443 TCP TR069 Service(Encrypted)
10000-10100 TCP Remote Access Service
20000-20100 TCP Remote Access Service
10
-END-
11