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

Материал из Wiren Board
м (FuzzyBot переименовал страницу Просмотр файлов контроллера с компьютера/en в View controller files from your computer/en без оставления перенаправления: Часть переводимой страницы Просмотр файлов контроллера с компьютера.)
 
(не показано 12 промежуточных версий 1 участника)
Строка 1: Строка 1:
<languages/>
<languages/>
To make changes to the configuration of the [[Wiren Board/en|Wiren Board]]  it is sometimes necessary to change the files on the controller. This can be done in several ways.
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 ==
== Easy way for Windows ==
Строка 25: Строка 25:
[[File:Cyberduck add connection.png|thumb|Setting up an SFTP connection for Mac OS X using Cyberduck]]
[[File:Cyberduck add connection.png|thumb|Setting up an SFTP connection for Mac OS X using Cyberduck]]


Для работы с файловой системой контроллера вам понадобится установить http://cyberduck.ch/. После завершения установки запустите "Cyberduck".
To work with the file system of the controller you need to install  http://cyberduck.ch/. After the installation is complete, run  "Cyberduck".
# Нажмите кнопку "Новое подключение"
# Click the "New connection" button
# Заполните поля:
# Fill in the fields:
## Выпадающее меню: SFTP (Защищенное подключение по SSH)
## Drop-down menu: SFTP (Secure SSH connection)
## "Сервер:" введите IP-адрес (смотрите статью [[Special:MyLanguage/Как узнать IP-адрес контроллера|Как узнать IP-адрес контроллера]])
## "Server:" enter the IP address (see [[Special:MyLanguage/Как узнать IP-адрес контроллера/en|How to find out the IP address of the controller]])
## "Порт:" оставьте 22
## "Port:" enter 22
## "Пользователь" введите root
## "User:" enter root
## "Пароль:" введите ваш пароль (по умолчанию "wirenboard")
## "Password:" enter your password ("wirenboard" as default)
# Нажмите кнопку "Подключиться".
# Click the "Connect" button.
# Добавьте SSH ключ в список ключей
# Add SSH key to key list
# В меню выбора папки перейти в корень
# Go to the root folder in the "Select folder" menu


Для повторного подключения к серверу, с которым уже было установлено соединение нужно:
To reconnect to a server that has already been connected, you should:
# Нажать на значок книжки
# Click the book icon
# Перейти в раздел "Журнал"
#Go to the "Journal" section
# Выбрать нужный адрес и кликнуть по нему 2 раза
# Select the desired address and click on it 2 times
# В меню выбора папки перейти в корень
# Go to the root folder in the "Select folder" menu


Для изменения файла без необходимости скачивания на локальной компьютер и повторной загрузки измененной версии на WirenBoard нажать правой кнопкой по файлу, который необходимо изменить и выбрать пункт "Открывать в". Файл будет автоматически загружен на локальный компьютер, а после закрытия автоматически выгружен на Wiren Board;
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 ==
== 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''.
The appearing window is to enter your username and password - enter root - wirenboard.


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




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


Файлы контроллера можно просматривать и редактировать через [[Special:MyLanguage/Консоль|консоль]] контроллера. Для этого:
Controller files can be viewed and edited through the controller[[Special:MyLanguage/Консоль| console]]. For this:
#Зайдите в консоль устройства по [[Special:MyLanguage/Консоль|инструкции]].
#Go to the device console according to the  [[Special:MyLanguage/Консоль|instructions]].
#<syntaxhighlight lang="bash">
#<syntaxhighlight lang="bash">
mcedit /etc/wb-homa-modbus.conf #открыть файл в псевдографическом редакторе; замените имя файла на нужное
mcedit /etc/wb-homa-modbus.conf #open the file in a pseudo-graphical editor; replace the file name with the desired one
</syntaxhighlight>
</syntaxhighlight>
#Чтобы сохранить изменения, нажмите ''F2'', чтобы выйти из редактора - ''F10''
#To save changes, press ''F2'' to exit the editor - ''F10''

Текущая версия на 21:56, 5 февраля 2021

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

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)

The appearing window is to enter your username and password - enter root - wirenboard.

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.


Reliable way

Controller files can be viewed and edited through the controller console. For this:

  1. Go to the device console according to the instructions.
  2. mcedit /etc/wb-homa-modbus.conf #open the file in a pseudo-graphical editor; replace the file name with the desired one
    
  3. To save changes, press F2 to exit the editor - F10