Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. USB Port

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    USB Port

    This topic has been deleted. Only users with topic management privileges can see it.
    • UncleSam
      UncleSam Developer @SMS last edited by

      @SMS Mal eine Frage: wie hast du alles installiert? Mit dem Einzeiler Skript oder irgendwie von Hand?

      SMS 1 Reply Last reply Reply Quote 0
      • SMS
        SMS @UncleSam last edited by SMS

        @UncleSam

        ich hatte das Image welches man hier (https://www.iobroker.net/#de/download) downloaden konnte

        UncleSam 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @SMS last edited by Thomas Braun

          @SMS
          Für USB sollte der user auch in tty drin sein.
          Versuch mal so:

          sudo usermod -aG tty audio video bluetooth redis gpio iobroker
          

          USB-Gerät ist nicht als /dev/ttyUSB... verfügbar

          Das kann dadurch verursacht sein, dass der aktuelle Benutzer nicht in der Gruppe tty eingetragen ist. Kontrollieren lässt sich das für den aktuellen Benutzer mit dem Befehl:

          SMS 1 Reply Last reply Reply Quote 0
          • UncleSam
            UncleSam Developer @SMS last edited by

            @SMS sagte in USB Port:

            ich hatte das Image welches mal hier (https://www.iobroker.net/#de/download) downloaden konnte

            OK, das ist der Fehler. Das Image ist über ein Jahr alt und hat nicht die richtigen Berechtigungen.

            Am einfachsten nimmst du das aktuelle Raspberry OS Image von ihrer Website und installierst dann mit diesem Einzeiler ioBroker:

            curl -sL https://iobroker.net/install.sh | bash -
            

            Damit hast du ein aktuelles System.

            SMS 1 Reply Last reply Reply Quote 0
            • UncleSam
              UncleSam Developer @Thomas Braun last edited by

              @Thomas-Braun sagte in USB Port:

              sudo usermod -aG GRUPPENNAME BENUTZERNAME

              Sorry, das war mein Fehler, es fehlte das "a"!

              1 Reply Last reply Reply Quote 0
              • SMS
                SMS @UncleSam last edited by

                @UncleSam

                das muss ich dann aber auf allen Pi's installieren? Ich habe einen Master und mehrere Slaves am laufen.

                UncleSam 1 Reply Last reply Reply Quote 0
                • SMS
                  SMS @Thomas Braun last edited by SMS

                  @Thomas-Braun

                  pi@kellerkind4GB:~ $ sudo usermod -aG tty audio video bluetooth redis gpio iobroker
                  Aufruf: usermod [Optionen] BENUTZERZUGANG
                  
                  Optionen:
                    -c, --comment KOMMENTAR       Neuer KOMMENTAR im GECOS-Feld
                    -d, --home HOME_DIR           Neues Home-Verzeichnis für den Benutzer-
                                                  zugang
                    -e, --expiredate ABL_DATUM    Ablaufdatum auf ABL_DATUM setzen
                    -f, --inactive INAKTIV        Passwort nach Ablauf von INAKTIV
                                                  deaktivieren
                    -g, --gid GRUPPE              Erzwinge GRUPPE als neue primäre Gruppe
                    -G, --groups GRUPPEN          Neue Liste zusätzlicher GRUPPEN
                    -a, --append                  Benutzer zu zusätzlichen Gruppen hinzufügen,
                                                  die mit der Option -G angegeben werden, ohne
                                                  ihn dabei aus anderen Gruppen zu entfernen
                    -h, --help                    Diese Hilfe anzeigen, sonst nichts
                    -l, --login NEUER_NAME        Neuer Wert für den Namen des Benutzerzugangs
                    -L, --lock                    Den Benutzerzugang sperren
                    -m, --move-home               Den Inhalt des Home-Verzeichnisses an den
                                                  neuen Ort verschieben (nur mit -d benutzen)
                    -o, --non-unique              Benutzung von doppelter (nicht einmaliger)
                                                  UID erlauben
                    -p, --password PASSWORD       Ein verschlüsseltes Passwort als neues
                                                  Passwort verwenden
                    -R, --root CHROOT_VERZ        Verzeichnis für chroot
                    -s, --shell SHELL             Neue Login-Shell für den Benutzerzugang
                    -u, --uid UID                 Neue UID des Benutzerzugangs
                    -U, --unlock                  Den Benutzerzugang entsperren
                    -v, --add-subuids FIRST-LAST  add range of subordinate uids
                    -V, --del-subuids FIRST-LAST  remove range of subordinate uids
                    -w, --add-subgids FIRST-LAST  add range of subordinate gids
                    -W, --del-subgids FIRST-LAST  remove range of subordinate gids
                    -Z, --selinux-user SEUSER     neue SELinux-Benutzer-Zuordnung für den
                                                  Benutzerzugang
                  
                  pi@kellerkind4GB:~ $
                  

                  wie heißt denn die Gruppe und der Benutzer?

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @SMS last edited by Thomas Braun

                    @SMS Dann geht das offenbar nur mit jeweils einer Gruppe. Hab das lange nicht mehr so gemacht...

                    sudo usermod -aG tty iobroker 
                    sudo usermod -aG gpio iobroker
                    

                    Dann am besten mal

                    sudo reboot
                    

                    damit die Gruppen auch neu eingelesen werden müssen.

                    [Edit:] Befehl vervollständigt...

                    SMS 1 Reply Last reply Reply Quote 0
                    • SMS
                      SMS @Thomas Braun last edited by

                      @Thomas-Braun

                      pi@kellerkind4GB:~ $ sudo -aG tty iobroker
                      usage: sudo -h | -K | -k | -V
                      usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
                      usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
                      usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] [VAR=value]
                                  [-i|-s] [<command>]
                      usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] file ...
                      pi@kellerkind4GB:~ $ sudo -aG gpio iobroker
                      usage: sudo -h | -K | -k | -V
                      usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
                      usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
                      usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] [VAR=value]
                                  [-i|-s] [<command>]
                      usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] file ...
                      pi@kellerkind4GB:~ $
                      

                      neustart ->

                      pi@kellerkind4GB:~ $ sudo -u iobroker groups
                      iobroker dialout
                      pi@kellerkind4GB:~ $
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @SMS last edited by

                        @SMS
                        Oh Quark von mir...
                        Mir kam der Behfehl gleich so kurz vor. 🙂

                        sudo usermod -aG tty iobroker 
                        sudo usermod -aG gpio iobroker
                        
                        SMS 1 Reply Last reply Reply Quote 0
                        • UncleSam
                          UncleSam Developer @SMS last edited by

                          @SMS sagte in USB Port:

                          das muss ich dann aber auf allen Pi's installieren? Ich habe einen Master und mehrere Slaves am laufen.

                          Am besten, ja. Du kannst aber auch einfach einen mal neu installieren (wenn du schon dabei bist).

                          SMS 1 Reply Last reply Reply Quote 0
                          • SMS
                            SMS @Thomas Braun last edited by

                            @Thomas-Braun

                            soweit so gut

                            pi@kellerkind4GB:~ $ sudo -u iobroker groups
                            iobroker tty dialout gpio
                            

                            aber im Adapter modbus kann ich immer noch nicht die USB Ports auswählen

                            1 Reply Last reply Reply Quote 0
                            • SMS
                              SMS @UncleSam last edited by

                              @UncleSam

                              Kann ich das auf einem Slave machen und dann auch wieder als Slave einbinden?

                              Andere Frage noch: Wenn ich über den Adapter RPI2 einen Ausgang ansteuere, sollte der doch auch Spannung ausgeben? Leider tut sich da auch nichts.
                              Ist nun was grundsätzlich auf allen Pi's passiert?

                              UncleSam 1 Reply Last reply Reply Quote 0
                              • UncleSam
                                UncleSam Developer @SMS last edited by

                                @SMS sagte in USB Port:

                                Kann ich das auf einem Slave machen und dann auch wieder als Slave einbinden?

                                Klar, das ist einfach die aktuelle Art und Weise ioBroker zu installieren. Alle Optionen (wie Multihost) stehen dir weiterhin zur Verfügung.

                                @SMS sagte in USB Port:

                                Wenn ich über den Adapter RPI2 einen Ausgang ansteuere, sollte der doch auch Spannung ausgeben?

                                Wie gesagt: gehe auf einen sauberen Stand (OS und ioBroker neu installieren). Wenn dann das Problem immer noch auftritt, kannst du gerne das Problem in einem Forumsbeitrag erklären. Ich glaube aber, dass sich all deine Probleme in Luft auflösen, da so viele Leute mit RasPi arbeiten (sonst hätten wir viel mehr Probleme hier).

                                SMS 1 Reply Last reply Reply Quote 0
                                • SMS
                                  SMS @UncleSam last edited by SMS

                                  @UncleSam

                                  1. also Speicherkarte platt machen
                                  2. dann ein Betriebssystem drauf (buster?)
                                  3. iobroker so installieren: curl -sL https://iobroker.net/install.sh | bash -

                                  vor Punkt 3 Node.js installieren? curl -sLf https://deb.nodesource.com/setup_10.x | sudo -E bash -
                                  sudo apt-get install -y nodejs

                                  UncleSam 1 Reply Last reply Reply Quote 0
                                  • UncleSam
                                    UncleSam Developer @SMS last edited by UncleSam

                                    @SMS sagte in USB Port:

                                    @UncleSam

                                    1. also Speicherkarte platt machen

                                    ja

                                    1. dann ein Betriebssystem drauf (buster?)

                                    Die aktuellste Version von Raspberry OS (ich glaube, da gibt es keine Debian Code Names mehr*):
                                    https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit

                                    Am besten nimmst du die "Lite" Version, dann hast du das absolute Minimum und keinen GUI Kram drauf.

                                    1. iobroker so installieren: curl -sL https://iobroker.net/install.sh | bash -

                                    Ja

                                    vor Punkt 3 Node.js installieren? curl -sLf https://deb.nodesource.com/setup_10.x | sudo -E bash -
                                    sudo apt-get install -y nodejs

                                    Nein! Mit dem Befehl oben machst du bereits alles. Es ist wirklich so einfach!

                                    Edit: * doch, der Name ist etwas versteckt, aber es ist Buster.

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate
                                    FAQ Cloud / IOT
                                    HowTo: Node.js-Update
                                    HowTo: Backup/Restore
                                    Downloads
                                    BLOG

                                    646
                                    Online

                                    31.9k
                                    Users

                                    80.2k
                                    Topics

                                    1.3m
                                    Posts

                                    usb port
                                    3
                                    29
                                    1173
                                    Loading More Posts
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    Community
                                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                    The ioBroker Community 2014-2023
                                    logo