mirror of
https://gitlab.com/fabinfra/fabaccess/docs.git
synced 2024-12-22 20:13: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":**
|
||||
`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"
|
||||
- Passw: "secret"
|
||||
|
Loading…
Reference in New Issue
Block a user