mirror of
https://gitlab.com/fabinfra/fabaccess/docs.git
synced 2024-12-22 12:03:48 +01:00
Update install_steps_ubuntu.md
This commit is contained in:
parent
d21229e30f
commit
cce3655453
@ -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":**
|
**if the compiler prompts somthing like "error: linker 'cc' not found":**
|
||||||
`sudo apt install build-essential`
|
`sudo apt install build-essential`
|
||||||
`cargo build --release`
|
`cargo build --release`
|
||||||
|
|
||||||
|
|
||||||
8. Copy the configuration files (best done with the GUI filemanager of Ubuntu)
|
8. Copy the configuration files (best done with the GUI filemanager of Ubuntu)
|
||||||
copy files from "bffh/examples"
|
copy files from "bffh/examples"
|
||||||
paste them into "bffh/target/release/examples"
|
paste them into "bffh/target/release/examples"
|
||||||
|
|
||||||
9. Install mosquitto MQTT broker
|
9. Install mosquitto MQTT broker
|
||||||
Diflouroborane uses mosquitto MQTT broker to communicate with the Shellies.
|
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-add-repository ppa:mosquitto-dev/mosquitto-ppa`
|
`sudo apt update -y && sudo apt install mosquitto mosquitto-clients -y`
|
||||||
`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, ...*
|
|
||||||
|
|
||||||
10. Configuring mosquitto broker
|
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:
|
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
|
11. Stop mosquitto
|
||||||
`sudo service mosquitto stop`
|
`sudo service mosquitto stop`
|
||||||
12. Change into the "etc/mosquitto/" directory (lots of `cd ..` then `cd etc`, `cd mosquitto`)
|
12. Change into the "etc/mosquitto/" directory (lots of `cd ..` then `cd etc/mosquitto`)
|
||||||
13. Create a configuration file:
|
13. Edit the configuration fil:
|
||||||
`sudo touch file test.conf`
|
`sudo nano mosquitto.conf`
|
||||||
14. Edit the configuration fil:
|
|
||||||
`sudo nano -w test.conf`
|
|
||||||
add:
|
add:
|
||||||
`listener 1883`
|
`listener 1883`
|
||||||
`allow_anonymous true`
|
`allow_anonymous true`
|
||||||
Save (Strg-O) and close (Strg-X)
|
Save (Strg-O) and close (Strg-X)
|
||||||
15. Start mosquitto
|
14. Enable mosquitto to start at each start of the system
|
||||||
`mosquitto -v -c /etc/mosquitto/test.conf`
|
`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
|
16. Find the IP adress of your computer
|
||||||
**- new console**
|
**- new console**
|
||||||
@ -128,4 +123,4 @@ To connect to the demo instance
|
|||||||
- press: "Connect to new Server"
|
- press: "Connect to new Server"
|
||||||
- press: "Demo Host Address"
|
- press: "Demo Host Address"
|
||||||
- User: "Testuser"
|
- User: "Testuser"
|
||||||
- Passw: "secret"
|
- Passw: "secret"
|
||||||
|
Loading…
Reference in New Issue
Block a user