Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Neue Installationsroutine (für Linux)

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Neue Installationsroutine (für Linux)

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Stoertebeker67 last edited by

      @Stoertebeker67 sagte in Neue Installationsroutine und neue Anleitungen (für Linux-basierte Systeme):

      und wann kommt dann HomeMatic dazu?

      Was meinst du damit?

      • Anbindung an Homematic?
      • Eine Homematic-Zentrale auf dem gleichen SBC einrichten?
      • irgend etwas anderes?
      S 1 Reply Last reply Reply Quote 0
      • S
        Stoertebeker67 @Homoran last edited by

        @Homoran said in Neue Installationsroutine und neue Anleitungen (für Linux-basierte Systeme):

        Was meinst du damit?

        • Anbindung an Homematic?
        • Eine Homematic-Zentrale auf dem gleichen SBC einrichten?
        • irgend etwas anderes?

        alles zusammen auf dem Raspi, habe aber mittlerweile gesehen das es wohl mit der Ram Größe Probleme gibt?

        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Stoertebeker67 last edited by

          @Stoertebeker67 sagte in Neue Installationsroutine und neue Anleitungen (für Linux-basierte Systeme):

          habe aber mittlerweile gesehen das es wohl mit der Ram Größe Probleme gibt?

          kommt drauf an, welchen

          @Stoertebeker67 sagte in Neue Installationsroutine und neue Anleitungen (für Linux-basierte Systeme):

          auf dem Raspi

          Du verwendest und wofür.

          Es gibt ja bereits fertige all-In-One Images für den Raspi.
          für kleinere Installationen ist das durchaus brauchbar.

          Wenn du mit dem Raspi einen Pi4 mit 2GB oder gar 4GB RAM meinst gibt es vom RAM her sowieso überhaupt keine Probleme.

          Mit dem Buster pivccu-Image von Alex kann es jedoch zu Problemen kommen.
          Wenn du das nutzen willst, melde dich bitte vor der INstallation von node nochmal

          1 Reply Last reply Reply Quote 0
          • Oberjembker
            Oberjembker last edited by

            Guten Abend.
            Ich habe mir die Stable und die Buster Installationsskripte mal angeschaut und möchte ein paar kleinere Änderungen vorschlagen.

            1. Vorschlag: Einführung der Variable SUDOX (o.ä.):
            if [[ $EUID -eq 0 ]];
            then IS_ROOT=true;  SUDOX=""
            else IS_ROOT=false; SUDOX="sudo "; fi
            

            Damit wird an vielen Stellen ein

            if [ "$IS_ROOT" = true ]; then
            	...
            else
            	...
            fi
            

            überflüssig.
            Z.B. diese "geschrumpften" Funktionen:

            set_root_permissions() {
            	file="$1"
            	$SUDOX chown root:$ROOT_GROUP $file
            	$SUDOX chmod 755 $file
            }
            make_executable() {
            	file="$1"
            	$SUDOX chmod 755 $file
            }
            create_user_linux() {
            	...
            	$SUDOX useradd -m -s /usr/sbin/nologin "$username"
            	...
            }
            
            

            usw.

            1 Reply Last reply Reply Quote 3
            • Oberjembker
              Oberjembker last edited by Oberjembker

              1. Anmerkung aus Zeile 203 (stable):
                # TODO: ^ Can we reduce code repetition in these 3 blocks? ^
                Folgender Vorschlag, der gesamte Block Zeilen 148 - 203 ersetzt durch:
              # 3 blocks code repetition reduced
              function add2sudoers() {
              	local xsudoers=$1
              	shift
              	xarry=("$@")
              	for cmd in "${xarry[@]}"; do
              		# Test each command if and where it is installed
              		cmd_bin=$(echo $cmd | cut -d ' ' -f1)
              		cmd_path=$(which $cmd_bin 2> /dev/null)
              		if [ $? -eq 0 ]; then
              			# Then add the command to SUDOERS_CONTENT
              			full_cmd=$(echo "$cmd" | sed -e "s|$cmd_bin|$cmd_path|")
              			SUDOERS_CONTENT+=$xsudoers"NOPASSWD: $full_cmd\n"
              		fi
              	done
              }
              
              	SUDOERS_CONTENT="$username ALL=(ALL) ALL\n"
              
              	# Add the user to all groups we need and give him passwordless sudo privileges
              	# Define which commands iobroker may execute as sudo without password
              	declare -a iob_commands=(
              		"shutdown -h now" "halt" "poweroff" "reboot"
              		"systemctl start" "systemctl stop"
              		"mount" "umount" "systemd-run"
              		"apt-get" "apt" "dpkg" "make"
              		"ping" "fping" "arp-scan"
              		"setcap" "vcgencmd" "cat" "df"
              	)
              	add2sudoers "$username ALL=(ALL) " "${iob_commands[@]}"
              
              	# Additionally, define which iobroker-related commands may be executed by every user
              	declare -a all_user_commands=(
              			"systemctl start iobroker"
              			"systemctl stop iobroker"
              			"systemctl restart iobroker"
              	)
              	add2sudoers "ALL ALL=" "${all_user_commands[@]}"
              
              	# Furthermore, allow all users to execute node iobroker.js as iobroker
              	if [ "$IOB_USER" != "$USER" ]; then
              		add2sudoers "ALL ALL=($IOB_USER) " "node $CONTROLLER_DIR/iobroker.js"
              	fi
              

              Habe ich unter Raspberry/Buster getestet.

              1 Reply Last reply Reply Quote 1
              • Oberjembker
                Oberjembker last edited by

                1. Stable und Buster sind prinzipiell gleich, leider ist das Datum bei beiden veraltet und gleich:
                INSTALLER_VERSION="2019-07-21"
                

                Wäre es nicht auch Zeit, die beiden zusammenzuführen?
                Lieben Gruß,
                Arne.

                1 Reply Last reply Reply Quote 0
                • apollon77
                  apollon77 last edited by

                  @Oberjembker Super Ideen, magst Du unter https://github.com/ioBroker/ioBroker mal einen PR erstellen für installer und fixer? Wenn du es bei dir schon so getestet hast ist das vllt das besten das beim Transfer Deiner Vorschläge nichts verloren geht ...

                  1 Reply Last reply Reply Quote 0
                  • nieIP
                    nieIP last edited by

                    Hallo

                    ich habe ioBroker auf einem RasPi 3 noch nach der "alten" Methode installiert. heute habe ich so viel am System auf der Kommandozeile zerbastelt, dass ioBroker nach dem ReBoot nicht mehr allein startet und sich Adapter nur noch mit Fehlermeldungen kompilieren lassen.

                    Ich würde gern auf einer frischen SD Karte das Betriebssystem und ioBroker neu installieren.
                    Es gibt vom backitup Adpater ein minimales und ein total Backup.

                    Wie gehe ich am besten vor. Nach Möglchkeit möchte ich nicht die Einstellungen aller Adapter neu machen müssen. Und die VIS Views sollen auch wiederhergestellt werden.
                    Reicht dafür ein Minimal Backup?

                    J Röstkartoffel 2 Replies Last reply Reply Quote 0
                    • J
                      Jan1 @nieIP last edited by

                      @nieIP
                      Neue SD Karte, Debian Buster nach Anleitung installieren, IOBroker nach Doku installieren, Backitup Adapter drauf und minimal Backup wieder herstellen, lange warten, fertig.

                      nieIP 1 Reply Last reply Reply Quote 0
                      • crunchip
                        crunchip Forum Testing Most Active last edited by

                        Warum wird eigentlich immer eine Sd-Karte genommen?
                        Ein Usb-Stick läuft doch stabiler/sicherer und verkraftet auch eher mal ein plötzlich Strom weg als eine Sd

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jan1 @crunchip last edited by

                          @crunchip
                          Weil ein USB Stick hier die schlechtere Wahl wäre. Einer SD ist ein Stromausfall auch egal, aber dem Filesystem darauf genau so wenig wie beim USB Stick.

                          1 Reply Last reply Reply Quote 0
                          • Röstkartoffel
                            Röstkartoffel @nieIP last edited by Röstkartoffel

                            @nieIP sagte in Neue Installationsroutine (für Linux):

                            ich habe ioBroker auf einem RasPi 3 noch nach der "alten" Methode installiert.
                            ...
                            Es gibt vom backitup Adpater ein minimales und ein total Backup.
                            ...
                            Und die VIS Views sollen auch wiederhergestellt werden.
                            Reicht dafür ein Minimal Backup?

                            wie @Jan1 schon schrieb, ist das die richtige Vorgehensweise.
                            Aber schau bitte ersteinmal, ob im minimal der Ordner /files/vis.0 enthalten und dort drin auch dein VIS-Projekt liegt.
                            War bei meiner alten Installation auf dem Rock64 und dem Backup davon leider nicht der Fall, so das ich nach dem Restore mittels Filezilla den extrahierten VIS.0 Ordner aus dem Total-Backup in das neue ioBroker vom NUC geschoben habe.

                            nieIP 1 Reply Last reply Reply Quote 0
                            • nieIP
                              nieIP @Röstkartoffel last edited by

                              @Röstkartoffel sagte in Neue Installationsroutine (für Linux):

                              Aber schau bitte ersteinmal, ob im minimal der Ordner /files/vis.0 enthalten und dort drin auch dein VIS-Projekt liegt.

                              Ja, ist da. Das ist aber ausser leeren Ordnern und dem backup.json auch das einzige, was da drin ist , hmm

                              1 Reply Last reply Reply Quote 0
                              • nieIP
                                nieIP @Jan1 last edited by nieIP

                                @Jan1 sagte in Neue Installationsroutine (für Linux):
                                Debian Buster nach Anleitung installieren, I

                                ok, danke, werde ist versuchen.
                                Warum Debian und nicht Raspbian ?

                                Das habe ich mir selbst beantworten können, weil Raspbian auf Debian aufbaut.

                                Reicht die "Lite" Version für ein ioBroker?

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  Jan1 @nieIP last edited by Jan1

                                  @nieIP
                                  Ok, beim Pi eben Raspian 😎
                                  Lite ist ausreichend.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    marco-mh last edited by

                                    Hallo Leute, ich versuche schon seit Donnerstag den Iobroker auf einer QNAP TS251+ in der Linux Station unter Ubuntu 18.04 zu installieren.
                                    ich habe mich eigentlich an die Anleitung gehalten. node und nodejs sind 10.7, rpm ist 6.11.3
                                    ich bekomme folgende Ausgabe.

                                    User iobroker created
                                    Created /etc/sudoers.d/iobroker
                                    chown: invalid group: ‘admin:admin’
                                    Directory /opt/iobroker created
                                    touch: cannot touch '/opt/iobroker/INSTALLER_INFO.txt': Permission denied
                                    chmod: cannot access '/opt/iobroker/INSTALLER_INFO.txt': No such file or directory
                                    bash: line 724: /opt/iobroker/INSTALLER_INFO.txt: Permission denied
                                    bash: line 725: /opt/iobroker/INSTALLER_INFO.txt: Permission denied
                                    bash: line 726: /opt/iobroker/INSTALLER_INFO.txt: Permission denied
                                    
                                    ==========================================================================
                                        Installing ioBroker (3/4)
                                    ==========================================================================
                                    
                                    chown: invalid group: ‘admin:admin’
                                    bash: line 746: /opt/iobroker/INSTALLER_INFO.txt: Permission denied
                                    npm ERR! code EACCES
                                    npm ERR! syscall access
                                    npm ERR! path /opt/iobroker
                                    npm ERR! errno -13
                                    npm ERR! Error: EACCES: permission denied, access '/opt/iobroker'
                                    npm ERR!  { [Error: EACCES: permission denied, access '/opt/iobroker']
                                    npm ERR!   stack: 'Error: EACCES: permission denied, access \'/opt/iobroker\'',
                                    npm ERR!   errno: -13,
                                    npm ERR!   code: 'EACCES',
                                    npm ERR!   syscall: 'access',
                                    npm ERR!   path: '/opt/iobroker' }
                                    npm ERR! 
                                    npm ERR! The operation was rejected by your operating system.
                                    npm ERR! It is likely you do not have the permissions to access this file as the current user
                                    npm ERR! 
                                    npm ERR! If you believe this might be a permissions issue, please double-check the
                                    npm ERR! permissions of the file and its containing directories, or try running
                                    npm ERR! the command again as root/Administrator.
                                    
                                    npm ERR! A complete log of this run can be found in:
                                    npm ERR!     /home/admin/.npm/_logs/2019-11-29T11_42_35_030Z-debug.log
                                    
                                    ==========================================================================
                                        Finalizing installation (4/4)
                                    ==========================================================================
                                    
                                    bash: line 772: /opt/iobroker/INSTALLER_INFO.txt: Permission denied
                                    Enabling autostart...
                                    Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service → /lib/systemd/system/iobroker.service.
                                    Autostart enabled!
                                    bash: line 947: /opt/iobroker/INSTALLER_INFO.txt: Permission denied
                                    Fixing directory permissions...
                                    This system does not support setting default permissions.
                                    Do not use npm to manually install adapters unless you know what you are doing!
                                    main: line 551: /opt/iobroker/INSTALLER_INFO.txt: Permission denied
                                    main: line 272: return: 192.168.178.10: numeric argument required
                                    
                                    ==========================================================================
                                    
                                        ioBroker was installed successfully
                                        Open http://:8081 in a browser and start configuring!
                                    
                                    ==========================================================================
                                    
                                    
                                    You need to re-login before doing anything else on the console!
                                    
                                    

                                    unter 16.04 in der Linux Station funktioniert es wunderbar.

                                    danke für eure hilfe und Gruß Marco

                                    apollon77 AlCalzone 2 Replies Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @marco-mh last edited by

                                      @marco-mh Naja qnap ist halt leider kein echtes Linux sondern "custom" ... 😞 @AlCalzone

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        marco-mh last edited by

                                        Hab ich also keine Chance?
                                        schade, unter 16.04 gehts
                                        aber danke

                                        1 Reply Last reply Reply Quote 0
                                        • AlCalzone
                                          AlCalzone Developer @marco-mh last edited by

                                          @marco-mh Ich bräuchte etwas mehr Infos über den User mit dem du angemeldet bist. Wie heißt dessen Gruppe? Normalerweise heißt die Gruppe wie der User.

                                          Als "echter" root sollte es gehen, aber dann bekommt admin keinen Zugriff aufs ioBroker-Verzeichnis.

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            marco-mh last edited by

                                            Ich hab es hinbekommen. Allerdings habe ich nicht die Linux Station genommen sondern hab eine Linux VM auf der QNAP installiert.
                                            Danke für die Hilfe

                                            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

                                            871
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            installation
                                            64
                                            415
                                            94031
                                            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