This guide explains how to access files and notifications from Android devices using KDE Connect on Linux desktops. KDE Connect is a community project from KDE to communicate across all your devices. KDE Connect helps you to receive your phone notifications on your Linux desktop, controls music playing on your phone from your desktop, or use your phone as a remote control for your desktop.
Using KDE Connect, we can do many cool things, such as:
- Clipboard sharing: Useful to transfer lengthy and complicated texts.
- File sharing: Access and share files to/from your Android devices.
- Notifications sharing: KDE Connect sends all your smartphone's notifications to your desktop computer.
- Send URLs to your Linux desktop from your Smartphone.
- Use your Phone as an input device (Like a mouse, touch pad, keyboard ) and/or a presenter.
- View your phone's battery level from your Linux desktop.
- Send and receive pings to/from devices.
- Find your lost phone by making it to play an alarm sound.
- Execute console commands remotely.
- Use your Phone as remote control to control the media players.
Install KDE Connect
You need to install KDE Connect in both your Linux desktop and your Android device.
Install KDE on your Linux desktop
KDE Connect can be found in the default repositories or installed by default if you use any KDE Plasma desktop-based Linux distributions. If you use a desktop environment other than KDE's Plasma, you can install it as described below depending upon the distribution you use.
Arch Linux and its derivatives:
$ sudo pacman -S kdeconnect
$ sudo dnf install kdeconnect
$ sudo zypper install kdeconnect
Debian, Ubuntu, Linux Mint:
$ sudo apt install kdeconnect
Install KDE Connect Indicator on Linux
If you desktop environments other than KDE Plasma, you might also need to install indicator-kdeconnect, that provides a system tray as a GUI for other desktops.
On Arch Linux and derivatives:
On Fedora 25 and later, run the following commands as root user:
$ dnf config-manager --add-repo http://download.opensuse.org/repositories/home:Bajoja/Fedora_25/home:Bajoja.repo
$ dnf install indicator-kdeconnect
On openSUSE Tumbleweed run the following commands as root user:
# zypper addrepo http://download.opensuse.org/repositories/home:Bajoja/openSUSE_Tumbleweed/home:Bajoja.repo # zypper refresh # zypper install indicator-kdeconnect
On openSUSE Leap 42.2 run the following commands as root user:
# zypper addrepo http://download.opensuse.org/repositories/home:Bajoja/openSUSE_Leap_42.2/home:Bajoja.repo # zypper refresh # zypper install indicator-kdeconnect
$ sudo add-apt-repository ppa:webupd8team/indicator-kdeconnect $ sudo apt update $ sudo apt install kdeconnect indicator-kdeconnect
Install KDE Connect on Android
Configure KDE Connect
After installing KDE Connect app, open it up from your smartphone. The below image shows how KDE Connect interface looks like in my Android device.
Now, you need to pair the Android device with your Linux desktop. Please note that your Android device should be connected with your Linux desktop either via a USB cable or WiFi. Also, both devices should be under same network. Once you paired your device, you can remove the cable. KDE Connect will work wirelessly.
If the Linux system shows up in the KDE connect dashboard, click on it to pair it up with the desktop. If it's not, tap on the three vertical dots on the top right corner and choose Add devices by IP option.
Enter your Linux desktop's IP address or Hostname in the next screen and tap Add HOST/IP button.
Then, go back to the main dashboard and you will there see your newly added device under Available devices. Tap on it to pair it with Linux desktop.
Then, tap "REQUEST PAIRING" option.
You will see a notification in your Linux desktop. Click Accept to pair it with your Android device.
Congratulations! Your Android device has been paired with your Linux desktop. You will confirm it from the KDE Connect indicator icon on your Task bar.
As you see in the above screenshot, I have paired my HP Tablet PC with my KDE Plasma desktop.
Also, you will see your Linux desktop in the dashboard of KDE Connect app in your Android device.
As you see in the above image, there is warning message that says "Plugins failed to load". To fix it, tap on the "Notification sync" and then tap "Open Settings".
In the next window, check the box "KDE Connect" and tap on "Ok" to grant permission to access the notifications.
That's it. We have paired our Android device with Linux desktop and enabled the notifications. Similarly, you can add as many as devices you want to manage them all using KDE connect. From now on, you will see all your smartphone's notifications in your Linux desktop.
To pair a new device, open KDE Connect app from your Android device, and tap on the three horizontal bars in the dashboard and choose "Pair new device" option.
Access Files And Notifications From Android Devices Using KDE Connect
Let me show you some practical use cases.
From the KDE Connect dashboard in your Android Device, tap on "Send files" and choose the files you wanted to send to your Linux desktop.
All files will be send to the default download location (i.e /home/user/Downloads directory) of your Linux desktop.
We can use your Android device as an input device like a mouse or touch pad or keyboard. To do so, tap on "Remote input" option. Move a finger on your Android device's screen to move the mouse cursor. Tap for a click, and use long press to drag and drop.
To enable right or middle buttons, use two/three fingers. Or, click on the three vertical dots on the top right and choose a option to send right click or middle click.
Another cool feature is we can use our Android device as a keyboard. To do so, tap on the Keyboard icon on the top and start typing from your Android device's keypad.
Control media players from Android
We can use our smartphone as a remote control to the videos and audios played in the Linux desktop. Launch SMPlayer or VLC and use the Android device to play, pause, change to previous or next tracks.
You can enable or disable all these features either from your KDE connect app or from the "KDE Connect Settings" from your desktop.
I find KDE Connect very useful. We don't need to constantly check our phone for notifications. KDE Connect will do that automatically whenever you receive a message or any notification in your smartphone. What are you waiting for? Install KDE Connect and have fun!