Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Русский
  3. ioBroker
  4. ioBroker установка и конфигурация
  5. Инсталляция под Linux

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.5k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.0k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.7k

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

Geplant Angeheftet Gesperrt Verschoben ioBroker установка и конфигурация
256 Beiträge 29 Kommentatoren 95.2k Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • BluefoxB Offline
    BluefoxB Offline
    Bluefox
    schrieb am zuletzt editiert von
    #95

    node.js не доступен по команде "node"

    Что происходит если в консоли написать?

    izum@izum-eM350:/opt$ node
    
    
    1 Antwort Letzte Antwort
    0
    • I Offline
      I Offline
      IZUM
      schrieb am zuletzt editiert von
      #96

      @Bluefox:

      node.js не доступен по команде "node"

      Что происходит если в консоли написать?

      izum@izum-eM350:/opt$ node
      
      ```` `  
      
      izum@izum-eM350:~$ izum@izum-eM350:/opt$ node
      bash: izum@izum-eM350:/opt$: Нет такого файла или каталога
      izum@izum-eM350:~$ /opt$ node
      bash: /opt$: Нет такого файла или каталога
      izum@izum-eM350:~$ 
      
      

      314_plt.jpg

      1 Antwort Letzte Antwort
      0
      • V Offline
        V Offline
        vtec
        schrieb am zuletzt editiert von
        #97

        Создай ссылку на "node" с помощью команды "sudo ln -s /usr/bin/nodejs /usr/bin/node"

        1 Antwort Letzte Antwort
        0
        • I Offline
          I Offline
          IZUM
          schrieb am zuletzt editiert von
          #98

          @vtec:

          Создай ссылку на "node" с помощью команды "sudo ln -s /usr/bin/nodejs /usr/bin/node" `

          izum@izum-eM350:/opt/iobroker$ sudo npm install iobroker.js-controller
          
          > ws@0.5.0 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws
          > (node-gyp rebuild 2> builderror.log) || (exit 0)
          
          make: вход в каталог «/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build»
            CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
            SOLINK_MODULE(target) Release/obj.target/bufferutil.node
            SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
            COPY Release/bufferutil.node
            CXX(target) Release/obj.target/validation/src/validation.o
            SOLINK_MODULE(target) Release/obj.target/validation.node
            SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
            COPY Release/validation.node
          make: выход из каталога «/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build»
          npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"})
          npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"})
          npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"})
          npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"})
          npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"})
          
          > ws@0.4.31 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
          > (node-gyp rebuild 2> builderror.log) || (exit 0)
          
          make: вход в каталог «/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build»
            CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
            SOLINK_MODULE(target) Release/obj.target/bufferutil.node
            SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
            COPY Release/bufferutil.node
            CXX(target) Release/obj.target/validation/src/validation.o
            SOLINK_MODULE(target) Release/obj.target/validation.node
            SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
            COPY Release/validation.node
          make: выход из каталога «/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build»
          
          > iobroker.js-controller@0.5.15 install /opt/iobroker/node_modules/iobroker.js-controller
          > node lib/setup.js setup first
          
          creating conf/iobroker.json
          object system.certificates created
          object system.repositories created
          object system.config created
          object enum.rooms created
          object system.group.user created
          object system.group.administrator created
          object _design/system created
          object system.user.admin created
          object system.meta.uuid created
          install adapter admin
          object system.adapter.admin created
          create instance admin
          object system.adapter.admin.0.uptime created
          object system.adapter.admin.0.memRss created
          object system.adapter.admin.0.memHeapTotal created
          object system.adapter.admin.0.memHeapUsed created
          object system.adapter.admin.0.connected created
          object system.adapter.admin.0.alive created
          object system.adapter.admin.0 created
          iobroker.js-controller@0.5.15 node_modules/iobroker.js-controller
          ├── daemonize2@0.4.2
          ├── mime@1.2.11
          ├── node-schedule@0.1.13
          ├── ncp@0.6.0
          ├── node.extend@1.0.10 (is@0.3.0)
          ├── adm-zip@0.4.7
          ├── yargs@1.2.6 (minimist@0.1.0)
          ├── request@2.38.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, oauth-sign@0.3.0, stringstream@0.0.4, tunnel-agent@0.4.0, node-uuid@1.4.3, mime-types@1.0.2, form-data@0.1.4, http-signature@0.10.1, tough-cookie@0.12.1, hawk@1.1.1)
          ├── tar.gz@0.1.1 (commander@1.1.1, tar@0.1.20, fstream@0.1.31)
          ├── socket.io@1.2.1 (debug@0.7.4, has-binary-data@0.1.3, socket.io-adapter@0.3.1, socket.io-parser@2.2.2, engine.io@1.4.3)
          ├── winston@0.7.3 (cycle@1.0.3, stack-trace@0.0.9, eyes@0.1.8, colors@0.6.2, async@0.2.10, pkginfo@0.3.0, request@2.16.6)
          ├── socket.io-client@1.2.1 (to-array@0.1.3, indexof@0.0.1, component-bind@1.0.0, debug@0.7.4, object-component@0.0.3, component-emitter@1.1.2, has-binary@0.1.5, parseuri@0.0.2, socket.io-parser@2.2.2, engine.io-client@1.4.3)
          └── npm@2.3.0
          izum@izum-eM350:/opt/iobroker$ 
          
          

          Вроде ошибок нет ,но http://localhost:8081/ не открывается.

          1 Antwort Letzte Antwort
          0
          • BluefoxB Offline
            BluefoxB Offline
            Bluefox
            schrieb am zuletzt editiert von
            #99
            node iobroker start
            
            1 Antwort Letzte Antwort
            0
            • I Offline
              I Offline
              IZUM
              schrieb am zuletzt editiert von
              #100

              @Bluefox:

              node iobroker start
              ```` `  
              
              izum@izum-eM350:/opt/iobroker$ node iobroker start
              
              /opt/iobroker/iobroker:1
              (function (exports, require, module, __filename, __dirname) { node node_module
                                                                                 ^^^^^^^^^^^^
              SyntaxError: Unexpected identifier
                  at Module._compile (module.js:439:25)
                  at Object.Module._extensions..js (module.js:474:10)
                  at Module.load (module.js:356:32)
                  at Function.Module._load (module.js:312:12)
                  at Function.Module.runMain (module.js:497:10)
                  at startup (node.js:119:16)
                  at node.js:902:3
              izum@izum-eM350:/opt/iobroker$ cd
              izum@izum-eM350:~$ node iobroker start
              
              /home/izum/iobroker:1
              (function (exports, require, module, __filename, __dirname) { node node_module
                                                                                 ^^^^^^^^^^^^
              SyntaxError: Unexpected identifier
                  at Module._compile (module.js:439:25)
                  at Object.Module._extensions..js (module.js:474:10)
                  at Module.load (module.js:356:32)
                  at Function.Module._load (module.js:312:12)
                  at Function.Module.runMain (module.js:497:10)
                  at startup (node.js:119:16)
                  at node.js:902:3
              izum@izum-eM350:~$ node --version
              v0.10.25
              
              
              1 Antwort Letzte Antwort
              0
              • BluefoxB Offline
                BluefoxB Offline
                Bluefox
                schrieb am zuletzt editiert von
                #101

                node /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js start

                1 Antwort Letzte Antwort
                0
                • I Offline
                  I Offline
                  IZUM
                  schrieb am zuletzt editiert von
                  #102

                  @Bluefox:

                  node /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js start `
                  Ура, все завелось! Спасибо вам за ваше терпение и отзывчивость))

                  1 Antwort Letzte Antwort
                  0
                  • V Offline
                    V Offline
                    vtec
                    schrieb am zuletzt editiert von
                    #103

                    Изюм установил js-controller

                    Дай еще команду

                    sudo nmp install iobroker

                    После успешной установки

                    sudo init 6
                    355_img_0820.png

                    1 Antwort Letzte Antwort
                    0
                    • I Offline
                      I Offline
                      IZUM
                      schrieb am zuletzt editiert von
                      #104

                      @vtec:

                      Изюм установил js-controller

                      Дай еще команду

                      sudo nmp install iobroker

                      После успешной установки

                      sudo init 6 `
                      Не получилось….

                      izum@izum-eM350:/opt/iobroker$ sudo npm install iobroker
                      npm ERR! not a package /tmp/npm-2695-nnDOKRW5/1426781950654-0.42539166775532067/tmp.tgz
                      -
                      > iobroker@0.5.1 install /opt/iobroker/node_modules/iobroker
                      > node lib/setup.js
                      
                      npm install iobroker.js-controller --production --silent --prefix "/opt/iobroker/node_modules/iobroker/lib/../../../"
                      npm install iobroker.admin --production --silent --prefix "/opt/iobroker/node_modules/iobroker/lib/../../../"
                      Write "./iobroker start" to start the ioBroker
                      Non-critical error: EACCES, permission denied '/usr/bin/iobroker'
                      iobroker@0.5.1 node_modules/iobroker
                      └── yargs@1.2.6 (minimist@0.1.0)
                      izum@izum-eM350:/opt/iobroker$ 
                      
                      
                      1 Antwort Letzte Antwort
                      0
                      • BluefoxB Offline
                        BluefoxB Offline
                        Bluefox
                        schrieb am zuletzt editiert von
                        #105

                        "npm install iobroker" выполнится только если не существует папка "/opt/iobroker/iobroker-data". То есть устанавливается только на чистую систему.

                        1 Antwort Letzte Antwort
                        0
                        • I Offline
                          I Offline
                          IZUM
                          schrieb am zuletzt editiert von
                          #106

                          @Bluefox:

                          "npm install iobroker" выполнится только если не существует папка "/opt/iobroker/iobroker-data". То есть устанавливается только на чистую систему. `
                          То есть у меня сейчас не до конца установленный iobroker??

                          1 Antwort Letzte Antwort
                          0
                          • BluefoxB Offline
                            BluefoxB Offline
                            Bluefox
                            schrieb am zuletzt editiert von
                            #107

                            @IZUM:

                            @Bluefox:

                            "npm install iobroker" выполнится только если не существует папка "/opt/iobroker/iobroker-data". То есть устанавливается только на чистую систему. То есть у меня сейчас не до конца установленный iobroker??
                            Он не запустится сам при перезагрузке.

                            1 Antwort Letzte Antwort
                            0
                            • A Offline
                              A Offline
                              Andrei34
                              schrieb am zuletzt editiert von
                              #108

                              Что-то у меня не ролучается установить ioBroker . Такое пишет

                              root@xbmc:/opt/iobroker# npm install iobroker

                              npm WARN cannot run in wd iobroker@0.5.5 node lib/setup.js (wd=/opt/iobroker/node_modules/iobroker)

                              iobroker@0.5.5 node_modules/iobroker

                              └── yargs@1.2.6 (minimist@0.1.0)

                              root@xbmc:/opt/iobroker# init 6

                              root@xbmc:/opt/iobroker#

                              1 Antwort Letzte Antwort
                              0
                              • V Offline
                                V Offline
                                vtec
                                schrieb am zuletzt editiert von
                                #109

                                А что такое WD? Название машины?
                                4733_dok_1_meta_ordner.docx
                                4733_daten_neq1512381.docx

                                1 Antwort Letzte Antwort
                                0
                                • A Offline
                                  A Offline
                                  Andrei34
                                  schrieb am zuletzt editiert von
                                  #110

                                  @vtec:

                                  А что такое WD? Название машины? `
                                  Да нет , это что-то от nodejs . Хотя когда делаю : root@xbmc:/opt/iobroker# npm install iobroker.js-controller

                                  устанавливается ,но в конце пишет ошибки :

                                  npm ERR! Linux 3.2.0-4-686-pae
                                  npm ERR! argv "node" "/usr/local/bin/npm" "install" "iobroker.js-controller"
                                  npm ERR! node v0.12.7
                                  npm ERR! npm  v2.14.0
                                  npm ERR! code ELIFECYCLE
                                  
                                  npm ERR! iobroker.js-controller@0.7.9 install: `node lib/setup.js setup first`
                                  npm ERR! Exit status 1
                                  npm ERR!
                                  npm ERR! Failed at the iobroker.js-controller@0.7.9 install script 'node lib/setup.js setup first'.
                                  npm ERR! This is most likely a problem with the iobroker.js-controller package,
                                  npm ERR! not with npm itself.
                                  npm ERR! Tell the author that this fails on your system:
                                  npm ERR!     node lib/setup.js setup first
                                  npm ERR! You can get their info via:
                                  npm ERR!     npm owner ls iobroker.js-controller
                                  npm ERR! There is likely additional logging output above.
                                  
                                  npm ERR! Please include the following file with any support request:
                                  npm ERR!     /opt/iobroker/npm-debug.log
                                  root@xbmc:/opt/iobroker#
                                  root@xbmc:/opt/iobroker#
                                  
                                  

                                  546_npm-debug.log

                                  1 Antwort Letzte Antwort
                                  0
                                  • E Offline
                                    E Offline
                                    electric69
                                    schrieb am zuletzt editiert von
                                    #111

                                    @Andrei34:

                                    устанавливается ,но в конце пишет ошибки `
                                    У меня тоже при установке ошибки:

                                    > iobroker@0.5.5 install /opt/iobroker/node_modules/iobroker
                                    > node lib/setup.js
                                    
                                    npm install iobroker.js-controller --production --prefix /opt/iobroker
                                    /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:121
                                                objects.getObject(obj._id, function (err, _obj) {
                                                       ^
                                    TypeError: Cannot read property 'getObject' of undefined
                                        at dbSetup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:121:20)
                                        at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:189:13
                                        at Object.States.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2095:82)
                                        at null._onTimeout (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemServer.js:179:26)
                                        at Timer.listOnTimeout (timers.js:119:15)
                                    npm ERR! Linux 3.4.108-bananapi
                                    npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller" "--production" "--prefix" "/opt/iobroker"
                                    npm ERR! node v0.12.7
                                    npm ERR! npm  v2.11.3
                                    npm ERR! code ELIFECYCLE
                                    
                                    npm ERR! iobroker.js-controller@0.7.9 install: `node lib/setup.js setup first`
                                    npm ERR! Exit status 1
                                    npm ERR!
                                    npm ERR! Failed at the iobroker.js-controller@0.7.9 install script 'node lib/setup.js setup first'.
                                    npm ERR! This is most likely a problem with the iobroker.js-controller package,
                                    npm ERR! not with npm itself.
                                    npm ERR! Tell the author that this fails on your system:
                                    npm ERR!     node lib/setup.js setup first
                                    npm ERR! You can get their info via:
                                    npm ERR!     npm owner ls iobroker.js-controller
                                    npm ERR! There is likely additional logging output above.
                                    
                                    npm ERR! Please include the following file with any support request:
                                    npm ERR!     /opt/iobroker/node_modules/iobroker/npm-debug.log
                                    Cannot install as normal user. Try sudo...
                                    sudo npm install iobroker.js-controller --production --prefix /opt/iobroker
                                    npm install iobroker.admin --production --prefix /opt/iobroker
                                    Write "./iobroker start" to start the ioBroker
                                    Auto-start was enabled. Write "update-rc.d -f iobroker.sh remove" to disable auto-start
                                    iobroker is started. Go to "http://ip-addr:8081" to open the admin UI.
                                    iobroker@0.5.5 node_modules/iobroker
                                    └── yargs@1.2.6 (minimist@0.1.0)
                                    root@bananapi:/opt/iobroker#
                                    
                                    

                                    Только файла /opt/iobroker/node_modules/iobroker/npm-debug.log не нашел…

                                    Видимо появление этой ошибки - нормально при установке на линукс...


                                    Все таки система "криво" устанавливается, не запускается админка, в логе ошибки:

                                    ! 2015-08-22 11:31:42.603 - info: host.bananapi ioBroker.js-controller version 0.7.9 js-controller starting 2015-08-22 11:31:42.632 - info: host.bananapi Copyright (c) 2014-2015 bluefox, hobbyquaker 2015-08-22 11:31:42.637 - info: host.bananapi hostname: bananapi 2015-08-22 11:31:42.638 - info: host.bananapi ip addresses: 192.168.69.20 fe80::17:5ff:fe01:d974 2015-08-22 11:31:42.722 - info: inMem-states listening on port 9000 2015-08-22 11:31:42.786 - info: inMem-objects listening on port 9001 2015-08-22 11:31:42.819 - info: host.bananapi InMemoryDB connected 2015-08-22 11:31:42.860 - error: host.bananapi _design/system missing - call node iobroker.js setup !
                                    Попытка запустить вручную, ругается на конфиг admin.0

                                    root@bananapi:~# nodejs /opt/iobroker/node_modules/iobroker.admin/admin.js
                                    2015-08-22 12:16:00.184  - error: admin.0 invalid config
                                    root@bananapi:~#
                                    
                                    

                                    Запустился только io.js-controller:
                                    50_pic_148.jpg

                                    1 Antwort Letzte Antwort
                                    0
                                    • F Offline
                                      F Offline
                                      ford7
                                      schrieb am zuletzt editiert von
                                      #112

                                      Подскажите, как починить?

                                      После пропадания питания вкладка "драйвера" пустая.

                                      upd:

                                      вкладка "сервера" тоже пустая.

                                      А в настройках все штатно:
                                      256___________001.jpg
                                      256_io_v1.jpg
                                      256_io_v2.jpg

                                      1 Antwort Letzte Antwort
                                      0
                                      • A Offline
                                        A Offline
                                        Andrei34
                                        schrieb am zuletzt editiert von
                                        #113

                                        Спасибо , вроде исправили :D , как то установил . Но теперь адаптеры почему-то ставятся не в папку /opt/iobroker/node_modules ,

                                        а в /opt/iobroker/node_modules/node_modules и ioBroker их не видит.

                                        1 Antwort Letzte Antwort
                                        0
                                        • BluefoxB Offline
                                          BluefoxB Offline
                                          Bluefox
                                          schrieb am zuletzt editiert von
                                          #114

                                          @Andrei34:

                                          @vtec:

                                          А что такое WD? Название машины? `
                                          Да нет , это что-то от nodejs . Хотя когда делаю : root@xbmc:/opt/iobroker# npm install iobroker.js-controller

                                          устанавливается ,но в конце пишет ошибки :

                                          npm ERR! Linux 3.2.0-4-686-pae
                                          npm ERR! argv "node" "/usr/local/bin/npm" "install" "iobroker.js-controller"
                                          npm ERR! node v0.12.7
                                          npm ERR! npm  v2.14.0
                                          npm ERR! code ELIFECYCLE
                                          
                                          npm ERR! iobroker.js-controller@0.7.9 install: `node lib/setup.js setup first`
                                          npm ERR! Exit status 1
                                          npm ERR!
                                          npm ERR! Failed at the iobroker.js-controller@0.7.9 install script 'node lib/setup.js setup first'.
                                          npm ERR! This is most likely a problem with the iobroker.js-controller package,
                                          npm ERR! not with npm itself.
                                          npm ERR! Tell the author that this fails on your system:
                                          npm ERR!     node lib/setup.js setup first
                                          npm ERR! You can get their info via:
                                          npm ERR!     npm owner ls iobroker.js-controller
                                          npm ERR! There is likely additional logging output above.
                                          
                                          npm ERR! Please include the following file with any support request:
                                          npm ERR!     /opt/iobroker/npm-debug.log
                                          root@xbmc:/opt/iobroker#
                                          root@xbmc:/opt/iobroker#
                                          
                                          ```` `  
                                          

                                          Была ошибка. Починил в 0.7.10

                                          wd = working directory

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          759

                                          Online

                                          32.4k

                                          Benutzer

                                          81.4k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe