Hallo zusammen,
und zwar habe ich PuTTY installiert und alle soweit eingerichtet. Nun hab ich im Terminal für Benutzer und Passwort "ROBOPro" benutzt und erfolgrteich mit dem TXT-Controller verbunden. Nun möchte ich eine neue Datei anlegen, jedoch bekomme ich die Nachricht "Permission denied". Ich benötige die Rechte. Kann mir einer Sagen wie man das Passwort herausfindet das jedes mal abgefragt wird? Oder gibt es eine andere Möglickeit dies zu tun? Ohne die Rechte zu haben.
Übrigens findet ihr im Anhang ein Ausschnitt von einem GitHub Post für die Erstellung einer Cloud. Dort muss man eine Datei erstellen sowie ich es in diesem Fall machen möchte.
Aus diesem Grund wäre es echt nett, wenn mir jemand hier weiterhelfen könnte.
PuTTY Datei erstellen (Rechte werden benötigt)
Forumsregeln
Bitte beachte die Forumsregeln!
Bitte beachte die Forumsregeln!
PuTTY Datei erstellen (Rechte werden benötigt)
- Dateianhänge
-
- Unbenannt.JPG (71.52 KiB) 1204 mal betrachtet
Re: PuTTY Datei erstellen (Rechte werden benötigt)
When you use the role: MQTT broker, the MQTT service will start with the mosquitto.conf.
And you can publish and subscribe without any problem, from other TXT and also from other device in the same local network.
No other rights are needed.
Use fix IP-address (DHCP table) in your router for this local network.
Don't forget to set your Windows machine to private network, otherwise the firewall is blocking the ports.
In the role: master, the TXT also starts the MQTT broker with the Mosquitto.conf.
To change the Mosquitto.conf, for example to change the log settings or the password file, you need root permissions.
• configuration files are situated in: /etc/mosquitto/
o /etc/mosquitto/mosquitto.conf
o /etc/mosquitto/ft-txt-bridge-cloud.conf
And you can publish and subscribe without any problem, from other TXT and also from other device in the same local network.
No other rights are needed.
Use fix IP-address (DHCP table) in your router for this local network.
Don't forget to set your Windows machine to private network, otherwise the firewall is blocking the ports.
In the role: master, the TXT also starts the MQTT broker with the Mosquitto.conf.
To change the Mosquitto.conf, for example to change the log settings or the password file, you need root permissions.
• configuration files are situated in: /etc/mosquitto/
o /etc/mosquitto/mosquitto.conf
o /etc/mosquitto/ft-txt-bridge-cloud.conf
Re: PuTTY Datei erstellen (Rechte werden benötigt)
Hi vleeuwen,
Björn
And the original question was how to get the root permissions....To change the Mosquitto.conf, for example to change the log settings or the password file, you need root permissions.
Björn
https://gundermann-software.de/shop/
Der Shop für viele Community Projekte
Der Shop für viele Community Projekte
Re: PuTTY Datei erstellen (Rechte werden benötigt)
Root password for TXT, see fischertechnik web site. Support/Robotic/TXT.
A document about that subject has been publish a long time ago.
=====================================================================================
However you don't need the root password to use the MQTT broker on the TXT in a local network.
It is also possible to stop and restart the MQTT broker from the TXT command line (under ROBOPro, ROBOPro) with your own configuration file (cloud or local network).
The Mosquitto MQTT documentation is very clear and to the point.
The MQTT documentation in the fischertechnik github factory4.0 is incomplete and not entirely correct.
In practice I recently experienced that the factory4.0 can work well and easily in a local network or cloud under the role: MQTT broker.
=========================================================================================
Additional hints:
For testing the MQTT broker on the TXT, at a Windows system (or a Raspberry Pi or a Linux) to the local network.
PC as private network and in the mosquitto conf at least the
listener 1883,
otherwise only localhost will be accessible.
Install Mosquitto MQTT on that system and subscribe and/or publish MQTT message with
mosquitto_sub.exe and mosquitto_pub.exe to the MQTT broker on the TXT
Examples:
<directory>\mosquitto_sub.exe" -h <ip of the broker> -t # -v -d
<directory>\mosquitto_pub.exe" -h <ip of the broker> -t test/topic -m helloWorld -u xl -Px -d
u and P are optional
With Putty remote connection command prompt with the TXT (no screen -r; ROBOPro, ROBOPro):
/usr/bin/mosquitto_pub -h localhost -t test/topic -m helloWorld -u txt -P xtx -d
u and P are optional
/usr/bin/mosquitto_sub -h localhost -t # -v -d
It could be that you need to change the option in the mosquitto conf:
allow_anonymous true
For the TXT4.0 it is the same.
Have fun with the Mosquitto MQTT, it is working very well on the TXT.
A document about that subject has been publish a long time ago.
=====================================================================================
However you don't need the root password to use the MQTT broker on the TXT in a local network.
It is also possible to stop and restart the MQTT broker from the TXT command line (under ROBOPro, ROBOPro) with your own configuration file (cloud or local network).
The Mosquitto MQTT documentation is very clear and to the point.
The MQTT documentation in the fischertechnik github factory4.0 is incomplete and not entirely correct.
In practice I recently experienced that the factory4.0 can work well and easily in a local network or cloud under the role: MQTT broker.
=========================================================================================
Additional hints:
For testing the MQTT broker on the TXT, at a Windows system (or a Raspberry Pi or a Linux) to the local network.
PC as private network and in the mosquitto conf at least the
listener 1883,
otherwise only localhost will be accessible.
Install Mosquitto MQTT on that system and subscribe and/or publish MQTT message with
mosquitto_sub.exe and mosquitto_pub.exe to the MQTT broker on the TXT
Examples:
<directory>\mosquitto_sub.exe" -h <ip of the broker> -t # -v -d
<directory>\mosquitto_pub.exe" -h <ip of the broker> -t test/topic -m helloWorld -u xl -Px -d
u and P are optional
With Putty remote connection command prompt with the TXT (no screen -r; ROBOPro, ROBOPro):
/usr/bin/mosquitto_pub -h localhost -t test/topic -m helloWorld -u txt -P xtx -d
u and P are optional
/usr/bin/mosquitto_sub -h localhost -t # -v -d
It could be that you need to change the option in the mosquitto conf:
allow_anonymous true
For the TXT4.0 it is the same.
Have fun with the Mosquitto MQTT, it is working very well on the TXT.
- MasterOfGizmo
- Beiträge: 2720
- Registriert: 30 Nov 2014, 07:44
Re: PuTTY Datei erstellen (Rechte werden benötigt)
Dieses Dokument beschreibt, wie man auf dem TXT an das Root-Passwort kommt:
https://www.fischertechnik.de/-/media/f ... 43_en.ashx
https://www.fischertechnik.de/-/media/f ... 43_en.ashx
Arduino für fischertechnik: ftDuino http://ftduino.de, ftDuino32 http://ftduino.de/32