KDEConnect/ru: Difference between revisions

From KDE UserBase Wiki
(Created page with "Приложение для Android можно найти и в [https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp Google Play Store], и в бесплатном и свободном магазине приложений [https://f-droid.org/repository/browse/?fdid=org.kde.kdeconnect_tp F-Droid].")
(Updating to match new version of source page)
 
(9 intermediate revisions by one other user not shown)
Line 35: Line 35:
Приложение для Android можно найти и в [https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp Google Play Store], и в бесплатном и свободном магазине приложений [https://f-droid.org/repository/browse/?fdid=org.kde.kdeconnect_tp F-Droid].
Приложение для Android можно найти и в [https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp Google Play Store], и в бесплатном и свободном магазине приложений [https://f-droid.org/repository/browse/?fdid=org.kde.kdeconnect_tp F-Droid].


The app for iOS can be found in [https://apps.apple.com/app/kde-connect/id1580245991 Apple's proprietary App Store]. Additionally, a pre-release, testing version of KDE Connect can be downloaded from [https://testflight.apple.com/join/vxCluwBF TestFlight]. Please see the [https://invent.kde.org/network/kdeconnect-ios/-/blob/master/README.md iOS README] for important data disclosure information, known limitations, and bug reporting information.
Приложение для IOS может быть найдено в проприетарном [https://apps.apple.com/app/kde-connect/id1580245991 App Store от Apple]. Дополнительно, пре-релиз, тестовую сборку KDE Connect можно скачать с [https://testflight.apple.com/join/vxCluwBF TestFlight]. Ознакомьтесь с [https://invent.kde.org/network/kdeconnect-ios/-/blob/master/README.md iOS README] для понимания того, как будут использоваться Ваши данные, какие есть ограничения и как отправлять отчеты об ошибках.


'''KDE Connect''' is also available for SailfishOS via [https://openrepos.net/content/r1tschy/sailfish-connect sailfish-connect] and we are working on bringing it to other Linux-based phones (Plasma Mobile, PostmarketOS etc.)
'''KDE Connect''' также доступно для SailfishOS при помощи [https://openrepos.net/content/r1tschy/sailfish-connect sailfish-connect]. Мы работаем над тем, чтобы оно было доступно для других Linux-образных систем для телефонов, таких как Plasma Mobile, PostmarketOS и так далее.


[https://kdeconnect.kde.org/download.html See KDE Connect download page] for installation links for other platforms (including Windows and macOS).
[https://kdeconnect.kde.org/download.html Пройдите на страницу загрузки KDE Connect] для того, чтобы скачать его на другие системы, такие как например Windows или macOS.


==Pairing two devices together==
<span id="Pairing_two_devices_together"></span>
==Соединение двух устройств друг с другом==


First, you need to open '''KDE Connect''' on your computer ''and'' phone. You should now be able to see in each screen the name of the device you wish to pair with. If it's not working, make sure that the two devices are connected to the same network and that there isn't any firewall blocking the two devices from seeing each other. See the [[Special:myLanguage/KDEConnect#I_have_two_devices_running_KDE_Connect_on_the_same_network.2C_but_they_can.27t_see_each_other|troubleshooting section]].
Для начала, Вам нужно открыть '''KDE Connect''' на Вашем компьютере ''и'' телефоне. На каждом из экранов Вы должны увидеть название устройства, с которым Вы хотели бы соединиться. Если вы не видите названий своих устройств, убедитесь, что они подключены к одной сети и что в сети нет файервола, не дающего двум девайсам найти друг друга. Ознакомьтесь с [[Special:myLanguage/KDEConnect#I_have_two_devices_running_KDE_Connect_on_the_same_network.2C_but_they_can.27t_see_each_other|разделом устранения неполадок]] при их возникновении.


[[File:KDE_Connect_computer_sync.png|700px|center]]
[[File:KDE_Connect_computer_sync.png|700px|center]]
Line 49: Line 50:
[[File:KDE_Connect_android_sync.jpg|300px|center]]
[[File:KDE_Connect_android_sync.jpg|300px|center]]


You can now request pairing in one of the two devices. The other device will show a prompt asking to accept the pairing request. Confirm it and that's it! Your devices are now paired.
Теперь вы можете запросить подключение в одном из девайсов. На другом устройсте появится окно для принятия запроса на подключение. После того, как Вы подтвердите его, ваши устройства будут подключены друг к другу.


While a typical configuration might include one computer and one phone, it's also possible to pair two computers instead.
Хотя обычно соединяют компьютер с телефоном, соединить компьютер с компьютером тоже возможно.


== Browser Integration ==
<span id="Browser_Integration"></span>
== Браузерная интеграция ==


[https://community.kde.org/Plasma/Browser_Integration Plasma Browser Integration] makes '''KDE Connect''' even more powerful. It allows you to control content from e.g. Youtube or Netflix from your phone and send browser tabs to your phone. Despite the name, it can also be used on non-Plasma desktops.
[https://community.kde.org/Plasma/Browser_Integration Браузерная интеграция Plasma] делает ее еще более мощной. Например, она дает возможность контролировать контент на Youtube или Netflix с Вашего телефона или присылать браузерные вкладки на Ваш телефон. Несмотря на имя, оно тоже работает на других средах рабочего стола.


== Changing Device Names ==
<span id="Changing_Device_Names"></span>
== Изменение имен устройств ==


You can only change the name of your device on the device itself. So if you want to change the name of your computer then you must use the desktop program and if you want to change the name of your phone or tablet you must make the change in the '''KDE Connect''' app. Once a device is renamed, it will automatically sync with all other connected devices.
Вы можете поменять название устройства только на самом устройстве. Поэтому, если Вы хотите поменять название Вашего компьютера, Вы должны использвать приложение для десктопа. Если Вы хотите поменять название Вашего телефона, Вы должны поменять его в приложении '''KDE Connect'''. Когда вы поменяете имя устройства, оно автоматически синхронизируется с остальными подключенными устройствами.


[[File:KDEConnectRename.png|800px|center]]
[[File:KDEConnectRename.png|800px|center]]
Line 103: Line 106:
====Auto-sync on Android 10+====
====Auto-sync on Android 10+====
Android 10 prevents apps from accessing the clipboard to prevent malicious apps from accessing your data. This makes the clipboard plugin in KDE Connect uncomfortable to use.
Android 10 prevents apps from accessing the clipboard to prevent malicious apps from accessing your data. This makes the clipboard plugin in KDE Connect uncomfortable to use.
On Android 14, there's a tile in the pull-down menu called "Send clipboard", that can be moved to a convenient slot (e.g. in the partial pull-down section).


=====Magisk Module (root only)=====
=====Magisk Module (root only)=====

Latest revision as of 06:35, 3 September 2024

Обзор

Это страница документации для KDE Connect. Если вы разрабатываете, отлаживаете или подготавливаете выпуск KDE Connect, пожалуйста, перейдите на страницу сообщества.

KDE Connect состоит из двух частей: программа для ПК и мобильное приложение.

Что такое KDE Connect?

KDE Connect - это проект, позволяющий всем вашим устройствам связываться друг с другом. Вот несколько вещей, которые может делать KDE Connect:


  • Получать уведомления с вашего смартфона на ПК и отвечать на сообщения
  • Управлять музыкой на вашем ПК со смартфона
  • Использовать ваш смарфтон как устройство удалённого управления
  • Запускать определённые команды на вашем ПК с подключённых устройств
  • Проверять уровень заряда батареи смартфона с ПК
  • Позвонить на ваш сматрфон, чтобы помочь вам его найти
  • Делиться файлами и ссылками между устройствами
  • Просматривать ваш сматрфон с ПК
  • Регулировать уровень громкости на ПК с помощью вашего сматрфона
  • Отправлять SMS с вашего ПК

Установка

Скорее всего пакет KDE Connect есть в репозиториях вашего дистрибутива. Если нет, вы можете попросить их подготовить пакет для него.

Несмотря на распростаненное мнение, Вы можете использовать KDE Connect на любых средах рабочего стола. Но так как большинство разработчиков используют Plasma, может получиться так, что некоторый функционал может работать неправильно или не работать вовсе в других средах рабочего стола. В таком случае, пожалуйста, напишите отчет об ошибке.

Есть много способов улучшить опыт пользования KDE Connect на других средах рабочего стола. Если Вы пользуетесь GNOME, то Вы можете попробовать GSConnect, расширение оболочки для GNOME. Для сред рабочего стола с поддержкой AppIndicator (Budgie, Cinnamon, LXDE, Pantheon, Unity) в KDE Connect уже присутсвует программа kdeconnect-indicator, которая может быть добавлена в автозапуск в каждой из этих сред.

Приложение для Android можно найти и в Google Play Store, и в бесплатном и свободном магазине приложений F-Droid.

Приложение для IOS может быть найдено в проприетарном App Store от Apple. Дополнительно, пре-релиз, тестовую сборку KDE Connect можно скачать с TestFlight. Ознакомьтесь с iOS README для понимания того, как будут использоваться Ваши данные, какие есть ограничения и как отправлять отчеты об ошибках.

KDE Connect также доступно для SailfishOS при помощи sailfish-connect. Мы работаем над тем, чтобы оно было доступно для других Linux-образных систем для телефонов, таких как Plasma Mobile, PostmarketOS и так далее.

Пройдите на страницу загрузки KDE Connect для того, чтобы скачать его на другие системы, такие как например Windows или macOS.

Соединение двух устройств друг с другом

Для начала, Вам нужно открыть KDE Connect на Вашем компьютере и телефоне. На каждом из экранов Вы должны увидеть название устройства, с которым Вы хотели бы соединиться. Если вы не видите названий своих устройств, убедитесь, что они подключены к одной сети и что в сети нет файервола, не дающего двум девайсам найти друг друга. Ознакомьтесь с разделом устранения неполадок при их возникновении.

Теперь вы можете запросить подключение в одном из девайсов. На другом устройсте появится окно для принятия запроса на подключение. После того, как Вы подтвердите его, ваши устройства будут подключены друг к другу.

Хотя обычно соединяют компьютер с телефоном, соединить компьютер с компьютером тоже возможно.

Браузерная интеграция

Браузерная интеграция Plasma делает ее еще более мощной. Например, она дает возможность контролировать контент на Youtube или Netflix с Вашего телефона или присылать браузерные вкладки на Ваш телефон. Несмотря на имя, оно тоже работает на других средах рабочего стола.

Изменение имен устройств

Вы можете поменять название устройства только на самом устройстве. Поэтому, если Вы хотите поменять название Вашего компьютера, Вы должны использвать приложение для десктопа. Если Вы хотите поменять название Вашего телефона, Вы должны поменять его в приложении KDE Connect. Когда вы поменяете имя устройства, оно автоматически синхронизируется с остальными подключенными устройствами.

Running KDE Connect over OpenVPN

There may be a variety of reasons for using KDE Connect with a VPN. Maybe you have left home and want to run a command, or maybe you’re on a public wifi network where your devices aren’t allowed to communicate and you want to use the remote control to give a presentation.

Set up OpenVPN

If you have your own server with a public-facing IP address, you can set up OpenVPN yourself. It is not the easiest piece of software to set up, but by following a setup tutorial such as this one, you should be able to manage.

In order to allow UDP broadcast packets, which are what KDE Connect uses to automatically discover two devices, OpenVPN needs to be set up for bridging (TAP device). If you use a tun device, you can still manually connect by IP address.

If you want to rent a pre-configured OpenVPN service rather than set up your own, it should work, but the same considerations about the server settings need to be taken into account.

Once the server is running, you can use the official OpenVPN client to connect the desktop to the server. There is no official OpenVPN client for Android, but the OpenVPN for Android client works well: openvpn

Once both devices are connected, test that they are able to communicate over the VPN by trying to do a network ping between them.

Configure KDE Connect

If your OpenVPN instance is set up for bridging, KDE Connect should work just like on a local network.

If you are using OpenVPN with a tun device, you will have to manually add your devices by IP. Then, once you connect to the VPN, KDE Connect should automatically detect your device and either connect or be ready for pairing!

Available Plugins

Battery Monitor

"Show your phone battery next to your computer battery."

By enabling this, the KDE Connect widget on your panel tray will display your phone's battery.

Clipboard

"Share the clipboard between devices."

With this, you can simply copy text from your computer and it will be immediately available to paste on your phone, and vice-versa. This does not work with images though.

Auto-sync on Android 10+

Android 10 prevents apps from accessing the clipboard to prevent malicious apps from accessing your data. This makes the clipboard plugin in KDE Connect uncomfortable to use.

On Android 14, there's a tile in the pull-down menu called "Send clipboard", that can be moved to a convenient slot (e.g. in the partial pull-down section).

Magisk Module (root only)

If you are rooted, you can use a Magisk module to remove this restriction.

Log Reading

If you have a build containing commit edc655da5ac1eb5c3027c8556cc62037a1d4c5ac, you can enable the READ_LOGS permission in order to enable a workaround to clipboard sync.

Run these commands:

adb -d shell pm grant org.kde.kdeconnect_tp android.permission.READ_LOGS;
adb -d shell appops set org.kde.kdeconnect_tp SYSTEM_ALERT_WINDOW allow;
adb -d shell am force-stop org.kde.kdeconnect_tp;

How does it work?

With log reading enabled, KDE Connect watches its own log. If it sees a line indicating that it has been denied access to read the clipboard, it pops up an invisible window to the foreground, grabs the clipboard, and closes the window.

Contacts

"Synchronize contacts between devices"

This plugin silently synchronizes contacts, in vcard format, from your phone to your desktop.

As of this writing, the synchronization is one-way, with data being sent from the Android implementation to the desktop, to be consumed by any application which uses the KPeople library with the KPeopleVCard plugin, such as the KDE Connect SMS app.

VCard Location

On non-Windows platforms, contact cards are written to QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/kpeoplevcard". This might be configured differently by your system, but normally resolves to ~/.local/share/kpeoplevcard.

On Windows, the path resolves to %LocalAppData%.

Inhibit Screensaver

"Inhibit the screensaver when the device is connected."

This makes sure that your screensaver will not run while your device is connected.

Multimedia Control Receiver

"Remote control your music and videos."

With this feature, you can control your music and videos remotely, with pause/play, previous/next, 5 s before/later. You can also change which media player to control, in addition to application and system volume.

Multimedia control receiver with KDE Connect in Android
Multimedia control receiver with KDE Connect in Android

Pause Media During Calls

"Pause music/videos during a phone call."

Pause music/videos during a call. This feature can be powerful when combined with Plasma Browser Integration. For example, when you are listening to some music on Peertube or Youtube, the video will be paused whenever you receive a call.

You can configure this option to pause only when you pick up your phone or directly when your phone starts to ring. You can also decide if you want to only pause the media player or/and mute the system sound.

Ping

"Send and receive pings."

This serves to test your connection to a given device. Once selected, a "Ping!" will appear as a notification on your receiving device.

On your desktop, you can send a ping through the KDE Connect settings or through the widget on the tray.

On your phone, you can send a ping through the upper right hamburger menu on the KDE Connect app.

Send a ping to your computer with android
Send a ping to your computer with android

Receive Notifications

"Show your phone notifications on your computer and keep them in sync."

This keeps you in touch with what happens on your phone! Any notifications you receive on your phone will be shown in your computer. Some notifications, such as those of Instant Messengers (IM) like Telegram can be replied on the fly through the computer notification itself.

Remote File System Browser

"Browse the remote device filesystem using SFTP."

This allows you to access your phone storage! When enabled, a device will appear in Dolphin with which you can navigate your external storage.

Ring My Phone

"Find your lost phone by making it play an alarm sound."

This also serves to test your connection to a given device, and by ringing your phone remotely, you can quickly find its location!

Run Commands

"Execute console commands directly."

With KDE Connect, you can run predefined commands on your computer by pressing buttons on your phone! Instructions on how to add a command are shown in userbase. A set of useful commands can also be found here. Some sample commands, such as suspend and lock screen, are also available.

If your device supports Device Controls (Android 11+), KDE Connect will display configured commands there. You can then quickly control your remote device, such as locking the screen. See Google's documentation for more description of device controls: https://developer.android.com/develop/ui/views/device-control

Screenshot of the device controls pane on a Samsung device, showing two configured commands, "Suspend" and "Lock Screen". In each device control tool is the command it will execute, and a prompt which says "Tap to execute".
Screenshot of the device controls pane on a Samsung device

Send Notifications

"Broadcast this computer's notifications, so they can be shown on other devices."

This is pretty self-explanatory: notifications from your computer will show up on your phone.

You can configure if you want to send the notification description, the icons pertaining to the application and persistent or very important notifications. This keeps you in touch with what happens on your computer! Any notifications you receive on your computer will be shown in your phone.

Share and Receive

"Receive and send files, URLs or plain text easily."

This integrates your desktop and your browser so that you can right-click on files or links and send it immediately to your phone!

Files show the right-click option "Send to phone via KDEConnect" and will send the file directly, showing it among your notifications.

Links show the right-click option "Open on phone" and will automatically open your phone's default browser on the chosen website. Really handy!

When receiving files from your phone into your computer, they will go to your Downloads folder by default. If you wish, you can change that too.

Telephone Integration

"Show notifications for incoming calls."

Whenever you get a call on your phone, a notification telling you which number is calling appears. Paired with "Pause media during calls", you'll surely be able to answer readily and never lose a call!

Virtual Input

"Use your phone as a touchpad and keyboard."

With this enabled, by going to your phone app and selecting Remote input, a touch screen will immediately be available for you to control your computer mouse, similarly to a touchpad. One touch equals one click.

The keyboard icon in the upper right allows you to type on your phone and see the result on your computer too.

If you press the hamburger menu right by its side, you'll be able to send right and middle clicks.

Presentation control

It is possible to control presentations using the previous/next slide button. When the device is locked, you can use the volume up/down button to do that. You can also highlight something using the laserpointer. Just move your phone and the blue circle will follow! Using the hamburger menu, you can toggle fullscreen (F5) or quit the presentation (Esc).

Permissions Explanations and Tutorial Videos

From time to time, Google will require video submissions to prove that we use permissions in ways which are allowed by Play Store policies. Those videos are gathered here for future reference, but also because they provide nice tutorials of how to use certain features, and are also useful to demonstrate permissions usage to a wider audience.

Android Mouse Receiver (Accessibility Permission)

In order to be a fake input device, Android requires that we take the Accessibility permission. The mouse receiver plugin is demonstrated in the following video.

Other Permissions

This video demonstrates several KDE Connect features, in particular it demonstrates how KDE Connect uses certain privacy-impacting permissions, such as the SMS permissions.

Missing or limited features on some platforms

Some platforms are missing some features due to technical limitations or other reasons.

iOS

Missing

  • Notification sync
  • SMS
  • Keeping connection alive when app is not on-screen
  • Virtual Display

One way - only from iOS to desktop

  • Remote Input
  • Run Command
  • Slideshow Remote
  • Shared clipboard (limited, need to tap "push clipboard" on the app to push clipboard to the PC)

Android

Missing

  • Virtual Display

One way - only from Android to desktop

  • Run Command
  • Slideshow Remote
  • SMS (transfer messages to desktop and handle sending)
  • Contacts

One way - only from desktop to Android

  • SMS (retrieve from phone and dispatch send requests to phone)

Troubleshooting

I have two devices running KDE Connect on the same network, but they can't see each other

KDE Connect uses dynamic ports in the range 1714-1764 for UDP and TCP. So if you are behind a firewall, make sure to open this port range for both TCP and UDP. Otherwise, make sure your network is not blocking UDP broadcast packets.

Check that the process is listening on the network:

sudo netstat -tunelp | grep -i kdeconnect

Are the ports open/blocked?

netcat -z -v <your-phones-ip> 1714-1764

Example output:

Connection to <your -phones-ip> 1716 port [tcp/*] succeeded!

You also get lots of Connection refused, but you need 1 “succeeded”

If the network connection is not the problem, you might try starting from a clean configuration again:

killall kdeconnectd
mv ~/.config/kdeconnect ~/.config/kdeconnect.bak

ufw

If your firewall is ufw, you can open the necessary ports with:

sudo ufw allow 1714:1764/udp
sudo ufw allow 1714:1764/tcp
sudo ufw reload

firewalld

If your firewall is firewalld, you can open the necessary ports with:

sudo firewall-cmd --permanent --zone=public --add-service=kdeconnect
sudo firewall-cmd --reload

Firewall Configuration (firewall-config)

Open Firewall Configuration (firewall-config). In ZonesServices, check the kde-connect service.

Make sure you choose the "Permanent" Configuration: option in the drop-down menu at the top, otherwise rebooting will discard your settings changes.

iptables

If your firewall is iptables, you can open the necessary ports with:

sudo iptables -I INPUT -i <yourinterface> -p udp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -I INPUT -i <yourinterface> -p tcp --dport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT

sudo iptables -A OUTPUT -o <yourinterface> -p udp --sport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT
sudo iptables -A OUTPUT -o <yourinterface> -p tcp --sport 1714:1764 -m state --state NEW,ESTABLISHED -j ACCEPT

KDE Connect crashes or restarts when trying to pair with another device

Sometimes, a corrupt config file may cause KDE Connect to crash when trying to pair with a device. In that case, deleting the config ~/.config/kdeconnect might help.

KDE Connect Android app crashes

If the KDE Connect Android app crashes, you might be able to get more information about the crash by using adb logcat.

Set up ADB using the official instructions

The following command should list all information relevant to your crash. Run adb logcat *before* triggering the crash.

adb logcat --pid=$(adb shell pidof -s org.kde.kdeconnect_tp)

Can I run KDE Connect without a display server?

Yes, you can pass the command line argument -platform offscreen to the daemon (eg: killall -9 kdeconnectd; /usr/lib/libexec/kdeconnectd -platform offscreen)

GSConnect

GSConnect is an independent project which implements the KDE Connect protocol into GNOME and uses the same Android app. If you are running GSConnect, please visit that project's GitHub page first for support. If you and the GSConnect team determine the issue is the Android app or protocol, feel free to report those in the KDE Connect bug tracker.

My problem is not in this list :(

In case you find a bug and want to report it, you can do so in the KDE bug tracker.