View controller files from your computer

Материал из Wiren Board
Версия от 16:16, 24 мая 2019; RomanKulibaba (обсуждение | вклад) (Новая страница: «Now you can work with the file system of the controller as with a normal disk, including opening and editing files. Be careful - damage to some files may damage t…»)

Другие языки:

To make changes to the configuration of the Wiren Board it is sometimes necessary to change the files on the controller. This can be done in several ways.

Easy way for Windows

The file system of the controller can be connected to Windows as a separate disk

To work with the file system of the controller you will need to install https://code.google.com/p/win-sshfs/. After the installation is complete, run Sshfs Manager.

  1. Press Add button
  2. Fill in the lines:
    1. Host: enter the IP address (seeHow to find out the controller IP address)
    2. Port: set 22
    3. Username: enter root
    4. Authentification method: set Password
    5. Password: enter wirenboard
    6. Directory: select / (root folder)
    7. Drive Letter: leave it - this will be the letter of the drive, which will display the file system of the controller
  3. Press Save
  4. PressMount

Now you can work with the file system of the controller as with a normal disk, including opening and editing files. Be careful - damage to some files may damage the controller.


Easy way for Mac OS X

Setting up an SFTP connection for Mac OS X using Cyberduck

To work with the file system of the controller you need to install http://cyberduck.ch/. After the installation is complete, run "Cyberduck".

  1. Click the "New connection" button
  2. Fill in the fields:
    1. Drop-down menu: SFTP (Secure SSH connection)
    2. "Server:" enter the IP address (see How to find out the IP address of the controller)
    3. "Port:" enter 22
    4. "User:" enter root
    5. "Password:" enter your password ("wirenboard" as default)
  3. Click the "Connect" button.
  4. Add SSH key to key list
  5. Go to the root folder in the "Select folder" menu

To reconnect to a server that has already been connected, you should:

  1. Click the book icon
  2. Go to the "Journal" section
  3. Select the desired address and click on it 2 times
  4. Go to the root folder in the "Select folder" menu

To change the file without having to download it to your local computer and re-download the modified version on the WirenBoard, right-click on the file you want to change and select "Open in". The file will be automatically downloaded to your local computer and after closing it will be automatically uploaded to the Wiren Board;

Now you can work with the file system of the controller as with a normal disk, including opening and editing files. Be careful - damage to some files may damage the controller.


Удобный способ для Ubuntu

Доступ к файлам через встроенный файловый менеджер Ubuntu

Откройте менеджер файлов Nautilus, нажмите Ctrl+L, в появившейся адресной строке введите

sftp://192.168.42.1    (подставьте ip-адрес-контроллера)

(смотрите статью Как узнать IP-адрес контроллера)

Появится окно для ввода имени пользователя и пароля - введите root - wirenboard.

Теперь вы можете работать с файловой системой контроллера как с обычной папкой, в том числе открывать и редактировать файлы. Будьте осторожны - повреждение некоторых файлов может нарушить работу контроллера.


Надёжный способ

Файлы контроллера можно просматривать и редактировать через консоль контроллера. Для этого:

  1. Зайдите в консоль устройства по инструкции.
  2. mcedit /etc/wb-homa-modbus.conf #открыть файл в псевдографическом редакторе; замените имя файла на нужное
    
  3. Чтобы сохранить изменения, нажмите F2, чтобы выйти из редактора - F10