Tutorial to install the Mosquitto on Ubuntu 22.04 Jammy LTS including Management Web Graphical Interface Cedalo.
Eclipse Mosquitto is a lightweight message broker published under an open-source license. It implements MQTT protocol versions 5.0, 3.1.1, and 3.1. And because of its low power consumption, it can be used on boards like Raspberry Pi.
Whereas the MQTT protocol (MQ Telemetry Transport or Message Queue Telemetry Transport) was developed in 1999 for M2M (machine-to-machine) communication as part of a joint oil pipeline project between IBM and Arcom Control Systems.
The Mosquitto project also provides a C library for implementing MQTT clients and the very popular mosquitto_pub and mosquitto_sub command line MQTT clients.
Steps to install Mosquitto on Ubuntu 22.04 Linux
The commands given here are also applicable to other similar Linux based on Ubuntu such as Linux Mint, Elementary OS, POP OS, and more…
1. Update Ubuntu 20.04
Start with running the system update command to install available latest package updates.
sudo apt update
2. Add the PPA Mosquitto repository
The version of Mosquitto available to install through the Ubuntu 22.04 repository is not the latest one. Therefore, use the given command to add the PPA repo provided by the official developers of this tool.
sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa
3. Install Mosquitto on Ubuntu 22.04
Finally, use the system’s default apt package manager to install Mosquitto message broker on Ubuntu 22.04 or 20.04.
sudo apt install mosquitto mosquitto-clients
4. Check the version
After completing the installation, check the installed version, in your terminal run:
For other further available options to use with the Mosquitto can be seen here on its official website.
5. Mosquitto Management Web UI installation
There is also free and open-source Management known as Cedalo. That can be used to manage clients, groups, and roles as in the new Dynamic Security plugin. However, to install and set it up, we need the Docker platform on our Ubuntu to access this management interface.
Those who don’t have Docker on their Ubuntu system can see our tutorial – How to install Docker on Ubuntu Linux.
Whereas others who already have docker installed can run the given command:
docker run -it -v ~/cedalo_platform:/cedalo cedalo/installer:2-linux
Once the docker pulls the Cedalo platform, it will ask you what components you want to install. Let the pre-selected one and simply hit the Enter key.
Note: If you are installing GUI management then you must not select the installation of Mosquitto because we already did that whereas those who have not installed it can let the default settings as it is.
After completing the process, you will have the cedalo_platform directory under your
/home with all the required files we need to start this Mosquitto GUI management interface.
So, switch to it
There you will find
start.sh, run it:
The docker will perform some downloads if you are running the script for the first time. After that don’t close the Terminal, once the downloading is completed and the service is started because it will also close the Management Web GUI as well.
6. Access Management Center web GUI
By default, the Management Center Web UI runs on the
8088 port, therefore, to access it open your browser and type –
When it asks for the username and password, the default credentials are User:
mmcisawesome. To change them we can edit the docker-compose.yml file. Also, the Eclipse Mosquitto connection URL is: mqtt://localhost:1883
7. Eclipse Streamsheets Web UI
http://localhost:8081 in your browser. The default Credentials: User:
1234. Change your password in the administration menu.
⇒ 2 Ways to Install Eclipse IDE on Debian 11 Bullseye
⇒ 5 Best Linux Distros for Beginners in 2022 to use on a laptop or PC
⇒ How to start using MongoDB 6.0 in Ubuntu 20.04 LTS
⇒ Download Youtube videos on Ubuntu 22.04 via the command line