Mosquitto: Difference between revisions
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
==MQTT Users== | ==MQTT Users== | ||
<source lang="bash" highlight="5,6, | <source lang="bash" highlight="5,6,10,11" line> | ||
cat > /etc/mosquitto/conf.d/users.conf <<'EOF' | cat > /etc/mosquitto/conf.d/users.conf <<'EOF' | ||
# Chorke Academia, Inc | # Chorke Academia, Inc | ||
Line 25: | Line 25: | ||
allow_anonymous false | allow_anonymous false | ||
password_file /etc/mosquitto/ | password_file /etc/mosquitto/mqpass | ||
EOF | EOF | ||
cd /etc/mosquitto/ | |||
mosquitto_passwd -b | mosquitto_passwd -c mqpass admin | ||
mosquitto_passwd -b mqpass arduino | |||
cd $HOME | |||
</source> | </source> | ||
Revision as of 22:29, 19 March 2020
df -h
vcgencmd measure_temp
apt list --upgradable
apt upgrade
apt -f install
apt install mosquitto/stable
apt install mosquitto-clients/stable
df -h
mosquitto -v
systemctl start mosquitto
systemctl status mosquitto
systemctl enable mosquitto
ssh -L 1883:localhost:1883 [email protected]
MQTT Users
cat > /etc/mosquitto/conf.d/users.conf <<'EOF'
# Chorke Academia, Inc
# MQTT Users Config
allow_anonymous false
password_file /etc/mosquitto/mqpass
EOF
cd /etc/mosquitto/
mosquitto_passwd -c mqpass admin
mosquitto_passwd -b mqpass arduino
cd $HOME
NodeRED
df -h
vcgencmd measure_temp
apt list --upgradable
apt upgrade
apt -f install
apt install nodered/stable
df -h
systemctl start nodered
systemctl status nodered
systemctl enable nodered
ssh -L 1880:localhost:1880 [email protected] http://localhost:1880/