Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Русский
    3. ioBroker
    4. ioBroker установка и конфигурация
    5. Инсталляция под Linux

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Инсталляция под Linux

    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fotya last edited by

      Захожу под "root"

      root@bananapi ~ # apt-get update
      root@bananapi ~ # apt-get upgrade
      
      

      устанавливаю "npm" и "nodejs"

      root@bananapi ~ # apt-get install curl
      root@bananapi ~ # curl -sL https://deb.nodesource.com/setup_5.x | bash -
      root@bananapi ~ # apt-get install  nodejs
      
      

      получается так -````
      root@pi ~ # nodejs -v
      v5.7.1
      root@pi ~ # npm -v
      3.6.0

      дальше -````
      $ cd /opt
      $ mkdir iobroker
      $ cd iobroker
      $ npm install iobroker
      
      

      получается вот-так -

      ! npm WARN lifecycle iobroker@0.6.0~install: cannot run in wd %s %s (wd=%s) iobrok er@0.6.0 node lib/setup.js /opt/iobroker/node_modules/iobroker
      ! /opt/iobroker
      ! └─┬ iobroker@0.6.0
      ! └─┬ yargs@4.2.0
      ! ├── camelcase@2.1.0
      ! ├─┬ cliui@3.1.0
      ! │ ├─┬ strip-ansi@3.0.1
      ! │ │ └── ansi-regex@2.0.0
      ! │ └── wrap-ansi@1.0.0
      ! ├── decamelize@1.2.0
      ! ├─┬ lodash.assign@4.0.6
      ! │ ├── lodash.keys@4.0.5
      ! │ └── lodash.rest@4.0.1
      ! ├─┬ os-locale@1.4.0
      ! │ └─┬ lcid@1.0.0
      ! │ └── invert-kv@1.0.0
      ! ├─┬ pkg-conf@1.1.1
      ! │ ├─┬ find-up@1.1.2
      ! │ │ ├── path-exists@2.1.0
      ! │ │ └─┬ pinkie-promise@2.0.0
      ! │ │ └── pinkie@2.0.4
      ! │ ├── object-assign@4.0.1
      ! │ ├─┬ read-pkg@1.1.0
      ! │ │ ├─┬ load-json-file@1.1.0
      ! │ │ │ ├── graceful-fs@4.1.3
      ! │ │ │ ├─┬ parse-json@2.2.0
      ! │ │ │ │ └─┬ error-ex@1.3.0
      ! │ │ │ │ └── is-arrayish@0.2.1
      ! │ │ │ ├── pify@2.3.0
      ! │ │ │ └─┬ strip-bom@2.0.0
      ! │ │ │ └── is-utf8@0.2.1
      ! │ │ ├─┬ normalize-package-data@2.3.5
      ! │ │ │ ├── hosted-git-info@2.1.4
      ! │ │ │ ├─┬ is-builtin-module@1.0.0
      ! │ │ │ │ └── builtin-modules@1.1.1
      ! │ │ │ ├── semver@5.1.0
      ! │ │ │ └─┬ validate-npm-package-license@3.0.1
      ! │ │ │ ├─┬ spdx-correct@1.0.2
      ! │ │ │ │ └── spdx-license-ids@1.2.0
      ! │ │ │ └─┬ spdx-expression-parse@1.0.2
      ! │ │ │ └── spdx-exceptions@1.0.4
      ! │ │ └── path-type@1.1.0
      ! │ └── symbol@0.2.1
      ! ├── read-pkg-up@1.0.1
      ! ├── require-main-filename@1.0.1
      ! ├─┬ string-width@1.0.1
      ! │ ├─┬ code-point-at@1.0.0
      ! │ │ └── number-is-nan@1.0.0
      ! │ └── is-fullwidth-code-point@1.0.0
      ! ├── window-size@0.2.0
      ! ├── y18n@3.2.0
      ! └── yargs-parser@2.1.1
      ! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.j son'
      ! npm WARN iobroker No description
      ! npm WARN iobroker No repository field.
      ! npm WARN iobroker No README data
      ! npm WARN iobroker No license field.
      ! npm install iobroker 30.53s user 2.83s system 82% cpu 40.216 total
      И не работает.

      1 Reply Last reply Reply Quote 0
      • K
        kontakter last edited by

        Методом перебора, за час выяснил : пользователь pi, пароль raspberry. Это для образа http://www.iobroker.net/?download=2895 . Для других не знаю.

        😞

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

          @fotya:

          Захожу под "root"

          root@bananapi ~ # apt-get update
          root@bananapi ~ # apt-get upgrade
          
          

          устанавливаю "npm" и "nodejs"

          root@bananapi ~ # apt-get install curl
          root@bananapi ~ # curl -sL https://deb.nodesource.com/setup_5.x | bash -
          root@bananapi ~ # apt-get install  nodejs
          
          

          получается так -````
          root@pi ~ # nodejs -v
          v5.7.1
          root@pi ~ # npm -v
          3.6.0

          дальше -````
          $ cd /opt
          $ mkdir iobroker
          $ cd iobroker
          $ npm install iobroker
          
          

          получается вот-так -

          ! npm WARN lifecycle iobroker@0.6.0~install: cannot run in wd %s %s (wd=%s) iobrok er@0.6.0 node lib/setup.js /opt/iobroker/node_modules/iobroker
          ! /opt/iobroker
          ! └─┬ iobroker@0.6.0
          ! └─┬ yargs@4.2.0
          ! ├── camelcase@2.1.0
          ! ├─┬ cliui@3.1.0
          ! │ ├─┬ strip-ansi@3.0.1
          ! │ │ └── ansi-regex@2.0.0
          ! │ └── wrap-ansi@1.0.0
          ! ├── decamelize@1.2.0
          ! ├─┬ lodash.assign@4.0.6
          ! │ ├── lodash.keys@4.0.5
          ! │ └── lodash.rest@4.0.1
          ! ├─┬ os-locale@1.4.0
          ! │ └─┬ lcid@1.0.0
          ! │ └── invert-kv@1.0.0
          ! ├─┬ pkg-conf@1.1.1
          ! │ ├─┬ find-up@1.1.2
          ! │ │ ├── path-exists@2.1.0
          ! │ │ └─┬ pinkie-promise@2.0.0
          ! │ │ └── pinkie@2.0.4
          ! │ ├── object-assign@4.0.1
          ! │ ├─┬ read-pkg@1.1.0
          ! │ │ ├─┬ load-json-file@1.1.0
          ! │ │ │ ├── graceful-fs@4.1.3
          ! │ │ │ ├─┬ parse-json@2.2.0
          ! │ │ │ │ └─┬ error-ex@1.3.0
          ! │ │ │ │ └── is-arrayish@0.2.1
          ! │ │ │ ├── pify@2.3.0
          ! │ │ │ └─┬ strip-bom@2.0.0
          ! │ │ │ └── is-utf8@0.2.1
          ! │ │ ├─┬ normalize-package-data@2.3.5
          ! │ │ │ ├── hosted-git-info@2.1.4
          ! │ │ │ ├─┬ is-builtin-module@1.0.0
          ! │ │ │ │ └── builtin-modules@1.1.1
          ! │ │ │ ├── semver@5.1.0
          ! │ │ │ └─┬ validate-npm-package-license@3.0.1
          ! │ │ │ ├─┬ spdx-correct@1.0.2
          ! │ │ │ │ └── spdx-license-ids@1.2.0
          ! │ │ │ └─┬ spdx-expression-parse@1.0.2
          ! │ │ │ └── spdx-exceptions@1.0.4
          ! │ │ └── path-type@1.1.0
          ! │ └── symbol@0.2.1
          ! ├── read-pkg-up@1.0.1
          ! ├── require-main-filename@1.0.1
          ! ├─┬ string-width@1.0.1
          ! │ ├─┬ code-point-at@1.0.0
          ! │ │ └── number-is-nan@1.0.0
          ! │ └── is-fullwidth-code-point@1.0.0
          ! ├── window-size@0.2.0
          ! ├── y18n@3.2.0
          ! └── yargs-parser@2.1.1
          ! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.j son'
          ! npm WARN iobroker No description
          ! npm WARN iobroker No repository field.
          ! npm WARN iobroker No README data
          ! npm WARN iobroker No license field.
          ! npm install iobroker 30.53s user 2.83s system 82% cpu 40.216 total
          И не работает. `
          node 5 не работает. Надо 4 ставить

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

            @fotya:

            Захожу под "root"

            root@bananapi ~ # apt-get update
            root@bananapi ~ # apt-get upgrade
            
            

            устанавливаю "npm" и "nodejs"

            root@bananapi ~ # apt-get install curl
            root@bananapi ~ # curl -sL https://deb.nodesource.com/setup_5.x | bash -
            root@bananapi ~ # apt-get install  nodejs
            
            

            получается так -````
            root@pi ~ # nodejs -v
            v5.7.1
            root@pi ~ # npm -v
            3.6.0

            дальше -````
            $ cd /opt
            $ mkdir iobroker
            $ cd iobroker
            $ npm install iobroker
            
            

            получается вот-так -

            ! npm WARN lifecycle iobroker@0.6.0~install: cannot run in wd %s %s (wd=%s) iobrok er@0.6.0 node lib/setup.js /opt/iobroker/node_modules/iobroker
            ! /opt/iobroker
            ! └─┬ iobroker@0.6.0
            ! └─┬ yargs@4.2.0
            ! ├── camelcase@2.1.0
            ! ├─┬ cliui@3.1.0
            ! │ ├─┬ strip-ansi@3.0.1
            ! │ │ └── ansi-regex@2.0.0
            ! │ └── wrap-ansi@1.0.0
            ! ├── decamelize@1.2.0
            ! ├─┬ lodash.assign@4.0.6
            ! │ ├── lodash.keys@4.0.5
            ! │ └── lodash.rest@4.0.1
            ! ├─┬ os-locale@1.4.0
            ! │ └─┬ lcid@1.0.0
            ! │ └── invert-kv@1.0.0
            ! ├─┬ pkg-conf@1.1.1
            ! │ ├─┬ find-up@1.1.2
            ! │ │ ├── path-exists@2.1.0
            ! │ │ └─┬ pinkie-promise@2.0.0
            ! │ │ └── pinkie@2.0.4
            ! │ ├── object-assign@4.0.1
            ! │ ├─┬ read-pkg@1.1.0
            ! │ │ ├─┬ load-json-file@1.1.0
            ! │ │ │ ├── graceful-fs@4.1.3
            ! │ │ │ ├─┬ parse-json@2.2.0
            ! │ │ │ │ └─┬ error-ex@1.3.0
            ! │ │ │ │ └── is-arrayish@0.2.1
            ! │ │ │ ├── pify@2.3.0
            ! │ │ │ └─┬ strip-bom@2.0.0
            ! │ │ │ └── is-utf8@0.2.1
            ! │ │ ├─┬ normalize-package-data@2.3.5
            ! │ │ │ ├── hosted-git-info@2.1.4
            ! │ │ │ ├─┬ is-builtin-module@1.0.0
            ! │ │ │ │ └── builtin-modules@1.1.1
            ! │ │ │ ├── semver@5.1.0
            ! │ │ │ └─┬ validate-npm-package-license@3.0.1
            ! │ │ │ ├─┬ spdx-correct@1.0.2
            ! │ │ │ │ └── spdx-license-ids@1.2.0
            ! │ │ │ └─┬ spdx-expression-parse@1.0.2
            ! │ │ │ └── spdx-exceptions@1.0.4
            ! │ │ └── path-type@1.1.0
            ! │ └── symbol@0.2.1
            ! ├── read-pkg-up@1.0.1
            ! ├── require-main-filename@1.0.1
            ! ├─┬ string-width@1.0.1
            ! │ ├─┬ code-point-at@1.0.0
            ! │ │ └── number-is-nan@1.0.0
            ! │ └── is-fullwidth-code-point@1.0.0
            ! ├── window-size@0.2.0
            ! ├── y18n@3.2.0
            ! └── yargs-parser@2.1.1
            ! npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.j son'
            ! npm WARN iobroker No description
            ! npm WARN iobroker No repository field.
            ! npm WARN iobroker No README data
            ! npm WARN iobroker No license field.
            ! npm install iobroker 30.53s user 2.83s system 82% cpu 40.216 total
            И не работает. `
            http://stackoverflow.com/questions/1813 … -run-in-wd

            If npm was invoked with root privileges, then it will change the uid to the user account or uid specified by the user config, which defaults to nobody. Set the unsafe-perm flag to run scripts with root privileges.

            [sudo] npm install --unsafe-perm
            
            1 Reply Last reply Reply Quote 0
            • F
              fotya last edited by

              Ура заработало!

              Изменил строку:

              curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
              ````на
              

              curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -

              и установка так :
              

              npm install iobroker --unsafe-perm

              и заработало ,но нет автозапуска. Только через - iobroker start
              1 Reply Last reply Reply Quote 0
              • H
                Haus last edited by

                @fotya:

                Ура заработало!

                Изменил строку:

                curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
                ````на
                

                curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -

                и установка так :
                

                npm install iobroker --unsafe-perm

                и заработало ,но нет автозапуска. Только через - iobroker start `  
                

                Сделай /etc/init.d/iobroker.sh start

                1 Reply Last reply Reply Quote 0
                • F
                  fotya last edited by

                  /etc/init.d/iobroker.sh start

                  zsh: Отказано в доступе: /etc/init.d/iobroker.sh

                  вот так.

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

                    @fotya:

                    /etc/init.d/iobroker.sh start

                    zsh: Отказано в доступе: /etc/init.d/iobroker.sh

                    вот так. `
                    sudo /etc/init.d/iobroker.sh start

                    1 Reply Last reply Reply Quote 0
                    • F
                      fotya last edited by

                      Теперь вот такое выдает.

                      root@pi ~ # sudo /etc/init.d/iobroker.sh start
                      sudo will not execute and completion _sudo exists.
                      
                      

                      Может куда принудительно строку добавить?

                      1 Reply Last reply Reply Quote 0
                      • H
                        Haus last edited by

                        @fotya:

                        Теперь вот такое выдает.

                        root@pi ~ # sudo /etc/init.d/iobroker.sh start
                        sudo will not execute and completion _sudo exists.
                        
                        

                        Может куда принудительно строку добавить? `
                        apt-get install sudo

                        1 Reply Last reply Reply Quote 0
                        • H
                          Haus last edited by

                          @Haus:

                          @fotya:

                          Теперь вот такое выдает.

                          root@pi ~ # sudo /etc/init.d/iobroker.sh start
                          sudo will not execute and completion _sudo exists.
                          
                          

                          Может куда принудительно строку добавить?
                          Папробуй

                          chmod 777 /opt/iobroker

                          /etc/init.d/iobroker.sh start

                          или

                          apt-get install sudo

                          sudo /etc/init.d/iobroker.sh start

                          1 Reply Last reply Reply Quote 0
                          • H
                            Haus last edited by

                            @Haus:

                            @Haus:

                            @fotya:

                            Теперь вот такое выдает.

                            root@pi ~ # sudo /etc/init.d/iobroker.sh start
                            sudo will not execute and completion _sudo exists.
                            
                            

                            Может куда принудительно строку добавить?
                            Попробуй

                            chmod 777 /opt/iobroker

                            /etc/init.d/iobroker.sh start

                            или

                            apt-get install sudo

                            sudo /etc/init.d/iobroker.sh start `

                            1 Reply Last reply Reply Quote 0
                            • F
                              fotya last edited by

                              Тоже нет, ну не хочет .

                              root@pi ~ # chmod 777 /opt/iobroker
                              root@pi ~ # /etc/init.d/iobroker.sh start
                              zsh: Отказано в доступе: /etc/init.d/iobroker.sh
                              126 root@pi ~ # sudo /etc/init.d/iobroker.sh start                           :(
                              sudo: /etc/init.d/iobroker.sh: command not found
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • Bluefox
                                Bluefox last edited by

                                @fotya:

                                Тоже нет, ну не хочет .

                                root@pi ~ # chmod 777 /opt/iobroker
                                root@pi ~ # /etc/init.d/iobroker.sh start
                                zsh: Отказано в доступе: /etc/init.d/iobroker.sh
                                126 root@pi ~ # sudo /etc/init.d/iobroker.sh start                           :(
                                sudo: /etc/init.d/iobroker.sh: command not found
                                
                                ```` `  
                                

                                Ты не выполнил apt-get

                                1 Reply Last reply Reply Quote 0
                                • F
                                  fotya last edited by

                                  Выполнил и перезагрузил, на всякий случай.

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

                                    @fotya:

                                    Сделал и перезагрузил, на всякий. `
                                    Кажется я понял. Ты устанавливал не iobroker, а js-controller?````
                                    cd /etc/init.d
                                    sudo wget https://raw.githubusercontent.com/ioBroker/ioBroker/master/install/linux/iobroker.sh
                                    sudo wget https://raw.githubusercontent.com/ioBroker/ioBroker/master/install/linux/install.sh
                                    sudo bash ./install.sh
                                    sudo rm install.sh

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      fotya last edited by

                                      Снова нет, не хочет.

                                      root@pi ~ # sudo bash ./install.sh
                                      Use user root for install.
                                      Set permissions...
                                      Start iobroker...
                                      ./install.sh: line 65: cd: @@PATH@@: Нет такого файла или каталога
                                      ./install.sh: line 67: ./iobroker: Нет такого файла или каталога
                                      call http://ip_address:8081/ in browser to get the AdminUI of ioBroker
                                      root@pi ~ #
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • Bluefox
                                        Bluefox last edited by

                                        @fotya:

                                        Снова нет, не хочет.

                                        root@pi ~ # sudo bash ./install.sh
                                        Use user root for install.
                                        Set permissions...
                                        Start iobroker...
                                        ./install.sh: line 65: cd: @@PATH@@: Нет такого файла или каталога
                                        ./install.sh: line 67: ./iobroker: Нет такого файла или каталога
                                        call http://ip_address:8081/ in browser to get the AdminUI of ioBroker
                                        root@pi ~ #
                                        
                                        ```` `  
                                        

                                        Можешь просто написать:

                                        cd /opt/iobroker
                                        iobroker stop
                                        npm install iobroker
                                        iobroker start
                                        

                                        После этого у тебя должна появится папка /opt/iobroker/node_modules/iobroker

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          fotya last edited by

                                          Кажется проблема в самом начале ,при установке nodejs и npm.

                                          Есть пошаговая инструкция по установке?

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

                                            @fotya:

                                            Кажется проблема в самом начале ,при установке nodejs и npm.

                                            Есть пошаговая инструкция по установке? `
                                            http://www.iobroker.net/docu/?page_id=2630&lang=ru

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            689
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            29
                                            256
                                            78418
                                            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