Mosquitto?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
pakikje
Posts: 90
Joined: Fri Nov 11, 2016 2:04 pm

Mosquitto?

Post by pakikje » Sun Jan 13, 2019 9:18 am

Hello guys,

I am looking for a good install / configuration / troubleshooting guide for mosquitto. (i can't connect to it in a browser at port 1883).

Thnx!

ps: some info

DietPi V16.9.7
OdroidC2

User avatar
WarHawk
Posts: 492
Joined: Thu Jul 20, 2017 7:55 am

Re: Mosquitto?

Post by WarHawk » Mon Jan 14, 2019 4:20 am

DietPi is ALOT like rasberry pi...just remember DietPi doesn't have admin user named pi so installing stuff for that and/or Debian ARM should work...custom drivers and whatnot are a different critter all together

Seems like a simple install here
https://www.instructables.com/id/Instal ... pberry-Pi/

Checking if MQTT is a easy install package for DietPi

User avatar
MichaIng
Legend
Posts: 1025
Joined: Sat Nov 18, 2017 5:21 pm

Re: Mosquitto?

Post by MichaIng » Tue Jan 15, 2019 9:49 pm

Jep Odroid C2 we install a custom Debian image by Meveric, so any Debian guide should work.

When installing Mosquitto via dietpi-software it does not more than installing the APT package from Debian repo (apt install mosquitto) and creating a systemd unit to run/supersede the init.d service:

Code: Select all

rm /etc/init.d/mosquitto
cat << _EOF_ > /etc/systemd/system/mosquitto.service
[Unit]
Description=Mosquitto (DietPi)
After=network.target
[Service]
Type=simple
ExecStart=$(which mosquitto) -c /etc/mosquitto/mosquitto.conf
[Install]
WantedBy=multi-user.target
_EOF_
To there are no more custom adjustments done to it.

I am currently doing a test install to check browser access.
EDIT: Install works fine, service runs well, indeed access via browser is not possible. But I guess this is due to browsers not supporting the MQTT protocol. You need a Mosquitto client to successfully connect, I believe. See the link by WarHawk about how to install a client and test the connection.

Post Reply