Skip to content

Installing MQTT Broker on RPi

Warren Fernandes edited this page Dec 20, 2015 · 1 revision

Purpose

I want to run an MQTT broker at home for testing purposes. I prefer not using test.mosquitto.org for testing although it is very convenient. The intention here is to learn more about MQTT broker and in the future set up a secure MQTT broker.

I've tried to install it by googling instructions online, however they have not proven to be successful. So I'm going to make another effort where try things out step by step and record what works for me.

Install Instructions

Download GPG Key and add it

curl -O http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
rm mosquitto-repo.gpg.key

Download mosquitto repo list

cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-wheezy.list

Update all the packages

sudo apt-get update

List mosquitto packages available

sudo apt-cache search mosquitto

Or just install:

sudo apt-get install mosquitto

Resources

  1. Install Mosquitto on RPi
  2. Mosquitto Debian Repo
  • Home
  • [Setting up RPi](Setting up RPi)
  • [Installing MQTT Broker on RPi](Installing MQTT Broker on RPi)
  • [Thoughts on Deployment](Thoughts on Deployment)
  • FAQ
  • [Picking the tools for HA](Picking the tools for HA)
Clone this wiki locally