View controller files from your computer/en: различия между версиями

Материал из Wiren Board
(Новая страница: «== Easy way for Ubuntu ==»)
(Новая страница: «400px|thumb|File access via built-in Ubuntu File Manager Open the ''Nautilus file Manager'', press ''Ctrl+L'', and in the address bar tha…»)
Строка 50: Строка 50:
== Easy way for Ubuntu ==
== Easy way for Ubuntu ==


[[File:Sftp ubuntu.png|400px|thumb|Доступ к файлам через встроенный файловый менеджер Ubuntu]]
[[File:Sftp ubuntu.png|400px|thumb|File access via built-in Ubuntu File Manager]]
Откройте менеджер файлов ''Nautilus'', нажмите ''Ctrl+L'', в появившейся адресной строке введите
Open the ''Nautilus file Manager'', press ''Ctrl+L'', and in the address bar that appears, type
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
sftp://192.168.42.1    (подставьте ip-адрес-контроллера)
sftp://192.168.42.1    (substitute the ip address of the controller)
</syntaxhighlight>
</syntaxhighlight>
(смотрите статью [[Special:MyLanguage/Как узнать IP-адрес контроллера|Как узнать IP-адрес контроллера]])
(see [[Как узнать IP-адрес контроллера|Как узнать IP-адрес контроллера| How to find out the IP address of the controller]])


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

Версия 16:18, 24 мая 2019

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

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.


Easy way for Ubuntu

File access via built-in Ubuntu File Manager

Open the Nautilus file Manager, press Ctrl+L, and in the address bar that appears, type

sftp://192.168.42.1    (substitute the ip address of the controller)

(see Как узнать IP-адрес контроллера| How to find out the IP address of the controller)

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

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


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

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

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