From cce3655453d67f345cf251609033910e3681d012 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 23 Dec 2021 08:42:41 +0000 Subject: [PATCH] Update install_steps_ubuntu.md --- source/installation/install_steps_ubuntu.md | 31 +++++++++------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/source/installation/install_steps_ubuntu.md b/source/installation/install_steps_ubuntu.md index 669accb..cbbe080 100644 --- a/source/installation/install_steps_ubuntu.md +++ b/source/installation/install_steps_ubuntu.md @@ -39,38 +39,33 @@ there might be better places compared to where I created it, but it works... **if the compiler prompts somthing like "error: linker 'cc' not found":** `sudo apt install build-essential` `cargo build --release` + 8. Copy the configuration files (best done with the GUI filemanager of Ubuntu) copy files from "bffh/examples" paste them into "bffh/target/release/examples" 9. Install mosquitto MQTT broker -Diflouroborane uses mosquitto MQTT broker to communicate with the Shellies. -`sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa` -`sudo apt-get update` -`sudo apt-get install mosquitto` -`sudo apt-get install mosquitto-clients` -`sudo apt clean` -*find out which linux release is installed (for Ubuntu -> google)* -`uname -a` -`sudo wget http://repo.mosquitto.org/debian/mosquitto-bullseye.list` -*change "bullseye" according to your distro: bullseye, buster, stretch, jessie, ...* +Diflouroborane uses mosquitto MQTT broker to communicate with the Shellies. Starting from Ubuntu version 18.04, Mosquitto is already inside the official repositories. +`sudo apt update -y && sudo apt install mosquitto mosquitto-clients -y` + 10. Configuring mosquitto broker for some reason, starting with version 2.x mosquitto does not allow external communication via the broker per default. This needs to be changed via a config file: 11. Stop mosquitto `sudo service mosquitto stop` -12. Change into the "etc/mosquitto/" directory (lots of `cd ..` then `cd etc`, `cd mosquitto`) -13. Create a configuration file: -`sudo touch file test.conf` -14. Edit the configuration fil: -`sudo nano -w test.conf` +12. Change into the "etc/mosquitto/" directory (lots of `cd ..` then `cd etc/mosquitto`) +13. Edit the configuration fil: +`sudo nano mosquitto.conf` add: `listener 1883` `allow_anonymous true` Save (Strg-O) and close (Strg-X) -15. Start mosquitto -`mosquitto -v -c /etc/mosquitto/test.conf` +14. Enable mosquitto to start at each start of the system +`sudo systemctl enable mosquitto` +15. Restart the system. + +After restarting, the system is ready to be configured 16. Find the IP adress of your computer **- new console** @@ -128,4 +123,4 @@ To connect to the demo instance - press: "Connect to new Server" - press: "Demo Host Address" - User: "Testuser" -- Passw: "secret" \ No newline at end of file +- Passw: "secret"