02-08-2020, 10:35 AM
Connect Fedora to your Android phone with GSConnect
<div style="margin: 5px 5% 10px 5%;"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect.png" width="1024" height="576" title="" alt="" /></div><div><p>Both Apple and Microsoft offer varying levels of integration of their desktop offerings with your mobile devices. Fedora offers a similar if not greater degree of integration with <strong>GSConnect</strong>. It lets you pair your Android phone with your Fedora desktop and opens up a lot of possibilities. Keep reading to discover more about what it is and how it works.</p>
<p> <span id="more-29919"></span> </p>
<h3>What is GSConnect?</h3>
<p>GSConnect is an implementation of the KDE Connect project tailored for the GNOME desktop. KDE Connect makes it possible for your devices to communicate with each other. However, installing it on Fedora’s default GNOME desktop requires pulling in a large number of KDE dependencies. </p>
<p>GSConnect is a complete implementation of KDE Connect, but in the form of a GNOME shell extension. Once installed, GSConnect lets you do the following and a lot more: </p>
<ul>
<li>Receive phone notifications on your desktop and reply to messages</li>
<li>Use your phone as a remote control for your desktop</li>
<li>Share files and links between devices</li>
<li>Check your phone’s battery level from the desktop</li>
<li>Ring your phone to help find it</li>
</ul>
<h3>Setting up the GSConnect extension</h3>
<p>Setting up GSConnect requires installing two components: the GSConnect extension on your desktop and the KDE Connect app on your Android device. </p>
<p>First, install the GSConnect extension from the GNOME Shell extensions website: <a href="https://extensions.gnome.org/extension/1319/gsconnect/">GSConnect</a>. (Fedora Magazine has a handy article on <a href="https://fedoramagazine.org/install-gnome-shell-extension/">How to install a GNOME Shell extension</a> to help you with this step.) </p>
<p>The KDE Connect app is available on Google’s <a href="https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp">Play Store</a>. It’s also available on the FOSS Android apps repository, <a href="https://f-droid.org/en/packages/org.kde.kdeconnect_tp/">F-Droid</a>.</p>
<p>Once you have installed both these components, you can pair your two devices. Installing the extension makes it show up in your system menu as <em>Mobile Devices</em>. Clicking on it displays a drop down menu, from which you can access <em>Mobile Settings</em>. </p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect.png" alt="GSConnect menu within system menu" class="wp-image-30318" /></figure>
<p>Here’s where you can view your paired devices and manage the features offered by GSConnect. Once you are on this screen, launch the app on your Android device.</p>
<p>You can initiate pairing from either device, but here you’ll be connecting to your desktop from the Android device. Simply hit refresh on the app, and as long as both devices are on the same wireless network, your desktop shows up in your Android device. You can now send a pair request to the desktop. Accept the pair request on your desktop to complete the pairing.</p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect-1.png" alt="Pair request from Android app to desktop" class="wp-image-30319" /></figure>
<h3>Using GSConnect</h3>
<p>Once paired, you’ll need to grant permissions on your Android device to make use of the many features available on GSConnect. Click on the paired device in the list of devices to see all available functions and enable or disable them according to your preferences.</p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect-2.png" alt="GSConnect device preferences" class="wp-image-30320" /></figure>
<p>Remember that you’ll also need to grant corresponding permissions in the Android app to be able to use these functions. Depending upon the features you’ve enabled and the permissions you’ve granted, you can now access your mobile contacts on your desktop, get notified of messages and reply to them, and even sync the desktop and Android device clipboards.</p>
<h3>Integration with Files and your web browsers</h3>
<p>GSConnect allows you to directly send files to your Android device from your desktop file explorer’s context menu. </p>
<p>On Fedora’s default GNOME desktop, you will need to install the <em>nautilus-python</em> package in order to make your paired devices show up in the context menu. Installing this is as straightforward as running the following command from your preferred terminal:</p>
<pre class="wp-block-preformatted">$ sudo dnf install nautilus-python</pre>
<p>Once done, the <em>Send to Mobile Device</em> entry appears in the context menu of the Files app.</p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect-3.png" alt="Context menu entry to send file to mobile device" class="wp-image-30321" /></figure>
<p>Similarly, install the corresponding WebExtension for your browser, be it <a href="https://addons.mozilla.org/en-US/firefox/addon/gsconnect/">Firefox</a> or <a href="https://chrome.google.com/webstore/detail/gsconnect/jfnifeihccihocjbfcfhicmmgpjicaec">Chrome</a>, to send links to your Android device. You have the option to send the link to launch directly in your browser or to deliver it as SMS.</p>
<h3>Running Commands</h3>
<p>GSConnect lets you define commands which you can then run on your desktop, from your remote device. This allows you to do things such as take a screenshot of your desktop, or lock and unlock your desktop from your Android device, remotely.</p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect-4.png" alt="Define commands to be run from the mobile device, on the desktop" class="wp-image-30323" /></figure>
<p>To make use of this feature, you can use standard shell commands and the CLI exposed by GSConnect. Documentation on this is provided in the project’s GitHub repository: <em>CLI Scripting</em>. </p>
<p>The <a href="https://userbase.kde.org/KDE_Connect/Tutorials/Useful_commands">KDE UserBase Wiki </a>has a list of example commands. These examples cover controlling the brightness and volume on your desktop, locking the mouse and keyboard, and even changing the desktop theme. Some of the commands are specific for KDE Plasma, and modifications are necessary to make it run on the GNOME desktop.</p>
<h3>Explore and have fun</h3>
<p>GSConnect makes it possible to enjoy a great degree of convenience and comfort. Dive into the preferences to see all that you can do and get creative with the commands function. Feel free to share all the possibilities this utility unlocked in your workflow in the comments below.</p>
<hr class="wp-block-separator" />
<p><em>Photo by <a href="https://unsplash.com/@pathum_danthanarayana?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Pathum Danthanarayana</a> on <a href="https://unsplash.com/s/photos/android?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>.</em></p>
</div>
https://www.sickgaming.net/blog/2020/02/...gsconnect/
<div style="margin: 5px 5% 10px 5%;"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect.png" width="1024" height="576" title="" alt="" /></div><div><p>Both Apple and Microsoft offer varying levels of integration of their desktop offerings with your mobile devices. Fedora offers a similar if not greater degree of integration with <strong>GSConnect</strong>. It lets you pair your Android phone with your Fedora desktop and opens up a lot of possibilities. Keep reading to discover more about what it is and how it works.</p>
<p> <span id="more-29919"></span> </p>
<h3>What is GSConnect?</h3>
<p>GSConnect is an implementation of the KDE Connect project tailored for the GNOME desktop. KDE Connect makes it possible for your devices to communicate with each other. However, installing it on Fedora’s default GNOME desktop requires pulling in a large number of KDE dependencies. </p>
<p>GSConnect is a complete implementation of KDE Connect, but in the form of a GNOME shell extension. Once installed, GSConnect lets you do the following and a lot more: </p>
<ul>
<li>Receive phone notifications on your desktop and reply to messages</li>
<li>Use your phone as a remote control for your desktop</li>
<li>Share files and links between devices</li>
<li>Check your phone’s battery level from the desktop</li>
<li>Ring your phone to help find it</li>
</ul>
<h3>Setting up the GSConnect extension</h3>
<p>Setting up GSConnect requires installing two components: the GSConnect extension on your desktop and the KDE Connect app on your Android device. </p>
<p>First, install the GSConnect extension from the GNOME Shell extensions website: <a href="https://extensions.gnome.org/extension/1319/gsconnect/">GSConnect</a>. (Fedora Magazine has a handy article on <a href="https://fedoramagazine.org/install-gnome-shell-extension/">How to install a GNOME Shell extension</a> to help you with this step.) </p>
<p>The KDE Connect app is available on Google’s <a href="https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp">Play Store</a>. It’s also available on the FOSS Android apps repository, <a href="https://f-droid.org/en/packages/org.kde.kdeconnect_tp/">F-Droid</a>.</p>
<p>Once you have installed both these components, you can pair your two devices. Installing the extension makes it show up in your system menu as <em>Mobile Devices</em>. Clicking on it displays a drop down menu, from which you can access <em>Mobile Settings</em>. </p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect.png" alt="GSConnect menu within system menu" class="wp-image-30318" /></figure>
<p>Here’s where you can view your paired devices and manage the features offered by GSConnect. Once you are on this screen, launch the app on your Android device.</p>
<p>You can initiate pairing from either device, but here you’ll be connecting to your desktop from the Android device. Simply hit refresh on the app, and as long as both devices are on the same wireless network, your desktop shows up in your Android device. You can now send a pair request to the desktop. Accept the pair request on your desktop to complete the pairing.</p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect-1.png" alt="Pair request from Android app to desktop" class="wp-image-30319" /></figure>
<h3>Using GSConnect</h3>
<p>Once paired, you’ll need to grant permissions on your Android device to make use of the many features available on GSConnect. Click on the paired device in the list of devices to see all available functions and enable or disable them according to your preferences.</p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect-2.png" alt="GSConnect device preferences" class="wp-image-30320" /></figure>
<p>Remember that you’ll also need to grant corresponding permissions in the Android app to be able to use these functions. Depending upon the features you’ve enabled and the permissions you’ve granted, you can now access your mobile contacts on your desktop, get notified of messages and reply to them, and even sync the desktop and Android device clipboards.</p>
<h3>Integration with Files and your web browsers</h3>
<p>GSConnect allows you to directly send files to your Android device from your desktop file explorer’s context menu. </p>
<p>On Fedora’s default GNOME desktop, you will need to install the <em>nautilus-python</em> package in order to make your paired devices show up in the context menu. Installing this is as straightforward as running the following command from your preferred terminal:</p>
<pre class="wp-block-preformatted">$ sudo dnf install nautilus-python</pre>
<p>Once done, the <em>Send to Mobile Device</em> entry appears in the context menu of the Files app.</p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect-3.png" alt="Context menu entry to send file to mobile device" class="wp-image-30321" /></figure>
<p>Similarly, install the corresponding WebExtension for your browser, be it <a href="https://addons.mozilla.org/en-US/firefox/addon/gsconnect/">Firefox</a> or <a href="https://chrome.google.com/webstore/detail/gsconnect/jfnifeihccihocjbfcfhicmmgpjicaec">Chrome</a>, to send links to your Android device. You have the option to send the link to launch directly in your browser or to deliver it as SMS.</p>
<h3>Running Commands</h3>
<p>GSConnect lets you define commands which you can then run on your desktop, from your remote device. This allows you to do things such as take a screenshot of your desktop, or lock and unlock your desktop from your Android device, remotely.</p>
<figure class="wp-block-image size-large"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2020/02/connect-fedora-to-your-android-phone-with-gsconnect-4.png" alt="Define commands to be run from the mobile device, on the desktop" class="wp-image-30323" /></figure>
<p>To make use of this feature, you can use standard shell commands and the CLI exposed by GSConnect. Documentation on this is provided in the project’s GitHub repository: <em>CLI Scripting</em>. </p>
<p>The <a href="https://userbase.kde.org/KDE_Connect/Tutorials/Useful_commands">KDE UserBase Wiki </a>has a list of example commands. These examples cover controlling the brightness and volume on your desktop, locking the mouse and keyboard, and even changing the desktop theme. Some of the commands are specific for KDE Plasma, and modifications are necessary to make it run on the GNOME desktop.</p>
<h3>Explore and have fun</h3>
<p>GSConnect makes it possible to enjoy a great degree of convenience and comfort. Dive into the preferences to see all that you can do and get creative with the commands function. Feel free to share all the possibilities this utility unlocked in your workflow in the comments below.</p>
<hr class="wp-block-separator" />
<p><em>Photo by <a href="https://unsplash.com/@pathum_danthanarayana?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Pathum Danthanarayana</a> on <a href="https://unsplash.com/s/photos/android?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>.</em></p>
</div>
https://www.sickgaming.net/blog/2020/02/...gsconnect/