Installation of Node-RED Dashboard on Ubuntu

This article provides a practical and technical explanation of the topic, including real-world use cases and insights.

Installation of Node-RED Dashboard on Ubuntu

A complete step-by-step guide to install Node-RED on Ubuntu, add the modern FlowFuse Dashboard package, start the service, open the dashboard, and solve common access problems.

“`
Ubuntu Node-RED FlowFuse Dashboard Port 1880 IoT Dashboard
“`

Introduction

“`

Node-RED is a powerful visual programming tool used for automation, IoT systems, MQTT projects, sensor monitoring, and dashboard creation. In this tutorial, we will install Node-RED on Ubuntu and add the modern dashboard package: @flowfuse/node-red-dashboard.

The old package node-red-dashboard is deprecated. For a new installation, it is better to use FlowFuse Dashboard, which provides modern dashboard nodes such as gauges, charts, buttons, text widgets, and templates.

Objective Install Node-RED on Ubuntu, install FlowFuse Dashboard, restart Node-RED, and verify access to the dashboard from a web browser.
“`

Table of Contents

  1. Update Ubuntu
  2. Install useful dependencies
  3. Install Node-RED
  4. Start Node-RED manually
  5. Install FlowFuse Dashboard
  6. Restart Node-RED
  7. Enable Node-RED at startup
  8. Open the dashboard
  9. Create a simple test dashboard
  10. Allow port 1880 in the firewall
  11. Useful commands
  12. Troubleshooting

1. Update Ubuntu

“`

First, update the package list and upgrade the system packages. This step is important because Node-RED and Node.js depend on updated system libraries.

Update Ubuntu packages
sudo apt update
```

sudo apt upgrade -y
“`
Tip If the upgrade takes some time, wait until it finishes completely before installing Node-RED.
“`

2. Install Required Tools

“`

Install useful tools required for compiling packages and downloading installation scripts.

Install dependencies
sudo apt install -y build-essential git curl
Package Purpose
build-essential Provides compiler tools needed by some Node.js packages.
git Used to download and manage source code repositories.
curl Used to download scripts and files from the terminal.
“`

3. Install Node-RED

“`

Use the official Node-RED installation script for Debian and Ubuntu-based systems. This script installs or updates Node.js and Node-RED automatically.

Install Node-RED using the official script
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

During the installation, the script may ask if you want to continue installing or updating Node.js and Node-RED. Type:

Answer during installation
y
Important Let the installation finish completely. Do not close the terminal while Node-RED and Node.js are being installed.
“`

4. Start Node-RED Manually

“`

After installation, you can start Node-RED manually using this command:

Start Node-RED manually
node-red

When Node-RED starts successfully, open the editor in your browser:

Open Node-RED locally
http://localhost:1880

If you are connecting from another computer or phone on the same network, use the Ubuntu machine IP address:

Open Node-RED from another device
http://ADRESSE_IP_UBUNTU:1880

To find the IP address of your Ubuntu machine, run:

Find Ubuntu IP address
hostname -I
“`

5. Install FlowFuse Dashboard

“`

To install the modern Node-RED dashboard, go to the Node-RED user directory:

Go to Node-RED user folder
cd ~/.node-red

Now install the FlowFuse Dashboard package:

Install FlowFuse Dashboard
npm install @flowfuse/node-red-dashboard
Successful Installation Example If the installation finishes correctly, you may see a message similar to: added packages, audited packages, and found 0 vulnerabilities.
“`

6. Restart Node-RED

“`

After installing the dashboard package, restart Node-RED so the new dashboard nodes appear inside the editor.

Restart Node-RED using Node-RED command
node-red-restart

If Node-RED is running as a systemd service, restart it with:

Restart Node-RED service
sudo systemctl restart nodered

To check the service status:

Check Node-RED service status
sudo systemctl status nodered
“`

7. Enable Node-RED at Ubuntu Startup

“`

To make Node-RED start automatically when Ubuntu boots, enable the Node-RED service:

Enable Node-RED service at startup
sudo systemctl enable nodered.service

Start the service manually if it is not already running:

Start Node-RED service
sudo systemctl start nodered.service
Result Node-RED will now launch automatically every time your Ubuntu machine starts.
“`

8. Useful Node-RED Management Commands

“`

Node-RED provides simple commands to start, stop, restart, and read logs.

Command Description
node-red-start Start Node-RED.
node-red-stop Stop Node-RED.
node-red-restart Restart Node-RED.
node-red-log Display Node-RED logs and errors.
Node-RED management commands
node-red-start
```

node-red-stop node-red-restart node-red-log

9. Open the Node-RED Dashboard

“`

After restarting Node-RED, open the Node-RED editor:

Node-RED editor URL
http://ADRESSE_IP_UBUNTU:1880

In the left sidebar, you should see new dashboard nodes such as:

  • ui-button
  • ui-text
  • ui-gauge
  • ui-chart
  • ui-template

The dashboard page is usually available at:

Dashboard URL
http://ADRESSE_IP_UBUNTU:1880/dashboard
“`

10. Create a Simple Dashboard Test

“`

To verify that the dashboard works, create a very simple test flow.

  1. Add an inject node.
  2. Add a ui-text or ui-gauge node.
  3. Connect the inject node to the dashboard node.
  4. Double-click the dashboard node.
  5. Create a new Page and a new Group.
  6. Click Deploy.
  7. Open the dashboard URL in your browser.
Open dashboard test page
http://ADRESSE_IP_UBUNTU:1880/dashboard
Expected Result You should see your dashboard widget displayed in the browser.
“`

11. Allow Port 1880 in the Firewall

“`

If you cannot access Node-RED from another PC or phone on the same network, the firewall may be blocking port 1880.

Allow Node-RED port 1880 using UFW:

Allow port 1880
sudo ufw allow 1880/tcp
```

sudo ufw reload
“`

Then try opening Node-RED again:

Access Node-RED from browser
http://ADRESSE_IP_UBUNTU:1880
Network Note Your Ubuntu machine and your phone or PC must be connected to the same local network.
“`

12. Quick Command Summary

“`

Here is the complete list of essential commands used in this tutorial.

Complete command summary
sudo apt update && sudo apt upgrade -y
```

sudo apt install -y build-essential git curl bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) cd ~/.node-red npm install @flowfuse/node-red-dashboard sudo systemctl enable nodered.service sudo systemctl restart nodered.service

13. Troubleshooting

“`
Problem Solution
Dashboard nodes do not appear Restart Node-RED and check logs using node-red-log.
Dashboard inaccessible from another device Check the Ubuntu IP address using hostname -I and allow port 1880/tcp with UFW.
Node-RED does not start Run sudo systemctl status nodered and node-red-log to read the errors.
npm install fails Check internet connection, update Ubuntu, and make sure you are inside ~/.node-red.
Useful troubleshooting commands
hostname -I
```

node-red-log sudo systemctl status nodered sudo ufw allow 1880/tcp sudo ufw reload

Final Result

“`

After completing this tutorial, Node-RED and FlowFuse Dashboard should be installed and running on your Ubuntu machine.

Node-RED Editor http://ADRESSE_IP_UBUNTU:1880
Dashboard Page http://ADRESSE_IP_UBUNTU:1880/dashboard
Dashboard Package @flowfuse/node-red-dashboard
Default Port 1880
Useful Log Command node-red-log
Installation Completed You can now create professional dashboards for IoT data, MQTT sensors, Raspberry Pi projects, LoRa monitoring, and real-time system visualization.
“`

Conclusion

This article highlights key aspects and practical applications of the discussed technology.

References

  • IEEE Xplore Digital Library
  • SpringerLink Research
  • Google Scholar

Author: Mourad Elgorma
IoT & Networking Specialist

👉 Read more: Explore more ICT articles

Choose your Reaction!