Smartphones are an inseparable part of our technical life these days. The thing is that you'll spend part of your time on the smartphone and part of it on the computer.
And that also creates some inconvenience. When you keep on switching between the two devices, you'll feel the need to connect the two.
Transfer files between the devices, share clipboards, see some phone notifications on the phone etc.
Apple has an excellent ecosystem that connects an iPhone with Mac. Windows also provides features to connect your Android smartphone with the PC.
For Linux, KDE has developed a solution called KDE Connect. It works better in the KDE environment and hence we have the GSConnect extension for GNOME desktop users.
GSConnect is an implementation of KDE Connect itself. While KDE Connect may already work on GNOME, GSConnect gives a better experience for GNOME users in my opinion.
Setting Up GSConnect on your Linux system
As said earlier, GSConnect is a GNOME extension. So, you need to install this extension first.
Install GSConnect extension
To install, either use the GNOME Shell Extension Manager app or use the extensions' website.
Once you install the extension, you can see the extension active in the System tray quick buttons.
Allow KDE Connect over the firewall
Many distributions come with a firewall setup. But KDE Connect, on which GSConnect is based, needs to communicate with the other system over the firewall. This is because there are many features like remote input, notification sharing, etc., that need incoming and outgoing communication. The default policy for the Firewall in most system is to block incoming communications entirely.
So, you need to allow KDE Connect to communicate over Firewall.
The KDE Connect protocol uses ports 1714-1764 for UDP and TCP. We need to open these ports. The steps for UFW and Firewalld are mentioned here, since these are the most popular Firewall solution on desktop Linux systems.
Open necessary ports in UFW (Ubuntu)
On Ubuntu, the default Firewall provider is UFW. So, open a terminal and run the command below:
sudo ufw allow 1714:1764/udp
sudo ufw allow 1714:1764/tcp
sudo ufw reload
Open necessary ports in Firewalld (Fedora)
Fedora comes with Firewalld as the Firewall provider. In this case, use the command:
sudo firewall-cmd --permanent --zone=public --add-service=kdeconnect
sudo firewall-cmd --reload
That's it. You have configured the firewall settings needed for GSConnect.
Install KDE Connect on Android smartphone
Once you have Linux system ready, install KDE Connect on your Android phone. This app is available on Google Play.
After installation, open KDE Connect on your phone.
Identify the device name
If you are not sure about the name of the mobile device, you can click on the top-left hamburger menu and select settings.
Here, you can see the name of your device under “Device name” field.
Pair the devices
Once you set up GSConnect on Linux and KDE Connect on Android, let's connect them.
Click on the system tray button on your GNOME panel. From the dropdown menu adjacent to GSConnect, select the Mobile Settings option as shown in the screenshot below.
In the GSConnect settings window, you can see that the mobile is detected. Click on it.
Alternatively, you can see the Linux system detected in the KDE Connect mobile app. Click on the computer name to start connecting to it.
Here, I clicked the detected PC on mobile. Then click on “Request Pairing”. This will ask me to accept the pairing request on the GNOME desktop.
Click on Accept, and your devices will be paired.
To start a pairing request from Linux, you can click on the detected mobile device in GSConnect desktop app and click on the Pair button.
Now, you need to accept the request inside KDE Connect Mobile app to pair the devices.
That's it. The devices are now connected.
Most of the settings are available from the system tray.
Permission settings
Now that the devices are connected, you can do basic things like Send files, remote input, send clipboard, etc.
You can see the what you can do by going to the Advanced tab in the GSConnect window.
Here, you can enable and disable things.
On the phone, you can give more permissions like Notification Sync, Telephony Notification, contacts sync, etc. Do this from the KDE Connect home page and on your mobile device.
Using GSConnect
Now, let's see some use cases of GSConnect.
Send files between devices
To send a file from PC to your mobile device, expand the GSConnect button in the system tray and select Share.
This will open the File Chooser from where you can select the files.
Mount an Android folder
Sometimes, it would be better if you could mount a local Android folder in the system for better file transfer and sync.
To do that, first, give filesystem permission for the KDE Connect app on your phone.
Click on the Filesystem Expose button and then allow KDE Connect to access in system settings.
Depending on the Android version, you may need to give KDE Connect some permissions when asked. Just follow the onscreen instructions, and it will land you automatically on all needed settings pages.
Once the location is selected in Android device, you can click on the Mount option in GSConnect System Tray button.
When you go to the File Manager, you can see that the directory you selected has been mounted using the SFTP protocol.
Lock or shutdown the remote system
With the KDE Connect mobile app, you can lock the computer system or shutdown from the mobile. To do this, click on the Run Command option and then select the required action.
Use phone as a mouse
You can use your phone display as a trackpad instead of mouse. This helps in a few cases. For example, you have connected the computer to TV to play a movie and then you can use the phone to play/pause the movie.
Use the Remote Input option in KDE Connect.
It supports all the useful functions and some are mentioned in the table below.
Function | Action |
---|---|
Move the mouse | Swipe across the screen with one finger |
Scroll | Swipe with two fingers |
Left-click | Either tap the screen or use the left-click button |
Right-click | Either tap with two fingers or use the right-click button |
Middle-click | Either tap with three fingers or use the middle-click button |
Some other notable remote input functions are:
- Use the keyboard button on the topbar to use mobile keyboard with the system.
- Use the Compose Send button on the top bar to type a text and then send it to the system instead of live typing.
- On the settings, you can enable the gyroscope mouse
Conclusion
I would like to list a few more KDE Connect use cases that I didn't cover in detail:
- Notification Sync to get phone notification in PC.
- Telephony notification to get phone call notification in desktop.
- Get phone battery charge details from system tray.
I let you explore it and enjoy a seamless connection between your Linux computer and Android smartphone.
I also invite you to share your views and experience in the comment system.
With inputs from Abhishek Prakash.
from It's FOSS https://ift.tt/RUpcMjC
via IFTTT
Tidak ada komentar:
Posting Komentar