Install Mosquitto MQTT: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
   
   
== Git Install ==
== Git Install ==
Currently I install the old rpm 1.4.10 for leap 42.2 to get the opensuse infrastructure.
Then I install the latest tagged git version over it (need to adapt dest path to /usr in config.mk before calling make).


  cd ~/workspace
  cd ~/workspace
Line 19: Line 22:
== Configuration ==
== Configuration ==


only needed if options need to be changed from defaults (e.g for TLS cert or PSK encryption)
Only needed if options need to be changed from defaults (e.g for TLS cert or PSK encryption).
Better use the opensuse pattern of adding conf files in /etc/mosquitto/mosquitto.conf.d


  sudo cp /etc/mosquitto/mosquitto.conf.example /etc/mosquitto/mosquitto.conf
  sudo cp /etc/mosquitto/mosquitto.conf.example /etc/mosquitto/mosquitto.conf

Revision as of 00:40, 31 July 2017

Mosquitto Installation

Prerequisites

sudo zypper in libcares-devel docbook-xsl-stylesheets
cd /usr/share/xml/docbook/stylesheet
sudo ln -s nwalsh/current docbook-xsl

Git Install

Currently I install the old rpm 1.4.10 for leap 42.2 to get the opensuse infrastructure. Then I install the latest tagged git version over it (need to adapt dest path to /usr in config.mk before calling make).

cd ~/workspace
git clone https://github.com/eclipse/mosquitto.git
cd mosquitto
git tag
git checkout v1.4.14
make
sudo make install

Configuration

Only needed if options need to be changed from defaults (e.g for TLS cert or PSK encryption). Better use the opensuse pattern of adding conf files in /etc/mosquitto/mosquitto.conf.d

sudo cp /etc/mosquitto/mosquitto.conf.example /etc/mosquitto/mosquitto.conf