{"id":46912,"date":"2024-07-19T15:18:24","date_gmt":"2024-07-19T15:18:24","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=46912"},"modified":"2024-07-19T15:18:24","modified_gmt":"2024-07-19T15:18:24","slug":"android-iphone-remote-control-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/07\/android-iphone-remote-control-ubuntu\/","title":{"rendered":"Use Android \/ iPhone to Remote Control Ubuntu Desktop"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-46913\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-logo-700x700.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This simple tutorial shows how to use your Android or iOS Phone as remote input (e.g, touchpad, send command) for Ubuntu and other Linux Desktop.<\/p>\n<p>KDE community has an popular free open-source software project called KDE Connect. It enables ability to communicate between your computer (Linux, macOS, and Windows) and mobile devices (Android and iOS) in local network.<\/p>\n<p>With it, you can send photos, videos, and files between paired devices, share clipboard, and do remote actions such as:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><b>Send remote commands<\/b>, such as log out, power-off, restart, and custom commands.<\/li>\n<li><b>Use your phone as touchpad for PC<\/b>.<\/li>\n<li><b>Slideshow remote<\/b><\/li>\n<li><b>Remote Multimedia control<\/b><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>There are as well features to send SMS from PC, &#8220;Ring&#8221; your phone to help find it, and browser your files on Mobile Phone. However, the features may NOT work due to either permission issues or requirement of running mobile app in foreground.<\/p>\n<p><!--more--><\/p>\n<p><b>NOTE: This tutorial is tested and works in Ubuntu 24.04. It should also works in Ubuntu 20.04, Ubuntu 22.04, and other Linux.<\/b><\/p>\n<h3>Step 1-a: Install GSConnect (for default GNOME Desktop)<\/h3>\n<p>For the default GNOME Desktop, GSConnect extension is an implementation with better integration, and less Qt\/KDE dependencies.<\/p>\n<p>GSConnect\u00a0<b>DOES NOT<\/b> depend on the KDE Connect desktop app and\u00a0<strong>WILL NOT WORK<\/strong> with it installed. Ubuntu users can directly search for &amp; install it from either Ubuntu Software or App Center (filtered by Debian package).<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-appcenter.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46914\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-appcenter-700x486.webp\" alt=\"\" width=\"610\" height=\"424\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-appcenter-700x486.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-appcenter-300x208.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-appcenter-768x533.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-appcenter.webp 940w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Or, press <code>Ctrl+Alt+T<\/code> on keyboard to open terminal, and run the command below instead to install the package:<\/p>\n<pre>sudo apt install gnome-shell-extension-gsconnect<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/apt-gsconnect.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46915\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/apt-gsconnect-700x505.webp\" alt=\"\" width=\"610\" height=\"440\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/apt-gsconnect-700x505.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/apt-gsconnect-300x216.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/apt-gsconnect.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>For Ubuntu 20.04<\/b>, the package in Ubuntu Software is a bit old. User may go to the web page below and use the ON\/OFF switch to install:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/extensions.gnome.org\/extension\/1319\/gsconnect\/\" target=\"_blank\" rel=\"noreferrer noopener\">GSConnect in EGO<\/a><\/div>\n<\/div>\n<p>Run <code>sudo apt install chrome-gnome-shell<\/code> command to install the agent package if you don&#8217;t have it. And, install browser extension (if it prompts) in the link page and refresh if you don&#8217;t see the toggle switch.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-webp.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46916\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-webp-700x437.webp\" alt=\"\" width=\"610\" height=\"381\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-webp-700x437.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-webp-300x187.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-webp-768x480.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-webp.webp 1145w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>After installed GSConnect<\/b>, launch either &#8220;GNOME Extensions&#8221; or &#8220;Extension Manager&#8221; (both are available to install in Ubuntu Software, App Center). Then, turn ON the new extension.<\/p>\n<p>NOTE: You may <b>Log out and back in<\/b> to make the extension visible in the manager app.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/enable-gsconnect.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46917\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/enable-gsconnect-700x511.webp\" alt=\"\" width=\"610\" height=\"445\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/enable-gsconnect-700x511.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/enable-gsconnect-300x219.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/enable-gsconnect-768x561.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/enable-gsconnect.webp 849w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Once enabled, you&#8217;ll see new option in the top right corner system status menu. For Ubuntu 22.04, it&#8217;s marked as &#8220;Mobile Devices&#8221; menu option.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-quicksettings.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46918\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-quicksettings-700x502.webp\" alt=\"\" width=\"610\" height=\"437\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-quicksettings-700x502.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-quicksettings-300x215.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-quicksettings-768x551.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/gsconnect-quicksettings.webp 1233w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>Step 1-b: Install KDE Connect (for other Desktops)<\/h3>\n<p>For non-GNOME Desktops, user needs to install the KDE Connect app instead.<\/p>\n<p>To do so, either search for &amp; install it from Ubuntu Software (or App Center).<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-appcenter.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46919\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-appcenter-700x441.webp\" alt=\"\" width=\"610\" height=\"384\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-appcenter-700x441.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-appcenter-300x189.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-appcenter-768x483.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-appcenter.webp 1044w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Or, open terminal (Ctrl+Alt+T) and run the command below instead:<\/p>\n<pre>sudo apt install kdeconnect<\/pre>\n<p>After installation, you&#8217;ll see the &#8220;KDE Connect&#8221; app, as well as its indicator, preferences, SMS entries in start menu.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-startmenu.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-46920\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-startmenu.webp\" alt=\"\" width=\"573\" height=\"456\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-startmenu.webp 573w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-startmenu-300x239.webp 300w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/a><\/p>\n<h3>Step 2: Install KDE Connect App in your Smart Phone<\/h3>\n<p>After installed the desktop app, now install the mobile app on your phone.<\/p>\n<p>For Android, either search &amp; install from Google Play, or use the links below:<\/p>\n<p style=\"text-align: center;\">KDE Connect in <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=org.kde.kdeconnect_tp\" target=\"_blank\" rel=\"noopener\">Google Play<\/a> | <a href=\"https:\/\/f-droid.org\/packages\/org.kde.kdeconnect_tp\/\" target=\"_blank\" rel=\"noopener\">F-Droid<\/a><\/p>\n<p>Also iOS user can either search and install from App Store or via the link below:<\/p>\n<p style=\"text-align: center;\">KDE Connect in iOS <a href=\"https:\/\/apps.apple.com\/app\/kde-connect\/id1580245991\" target=\"_blank\" rel=\"noopener\">App Store<\/a><\/p>\n<p>After installed the mobile app, go to &#8220;Settings&#8221; and <b>grant Local Network and WLAN access permissions<\/b>, so that it can find your PC devices in same network and communicate with them!<\/p>\n<h3>Step 3: Pair your devices<\/h3>\n<p>After installed the apps in both Desktop and Mobile devices, then do:<\/p>\n<ul>\n<li>open KDE Connect or toggle ON GSConnect in top-right system menu and open the Preference dialog (Mobile Settings) on PC.<\/li>\n<li>open KDE Connect app on mobile.<\/li>\n<\/ul>\n<p>If everything goes well, you&#8217;ll see each other in the app windows. For Android, go top-left hamburger menu (&#8220;\u2261&#8221;) -&gt; &#8220;Pair new device&#8221; for available devices.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-apps.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46922\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-apps-700x410.webp\" alt=\"\" width=\"610\" height=\"357\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-apps-700x410.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-apps-300x176.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-apps-768x449.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-apps-1536x899.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-apps-1320x772.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-apps.webp 1788w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Then just click on the available device on either side to start pairing, and accept in another side.<\/p>\n<p>Once connected, click the device and you&#8217;ll see the options to do send files, remote input, run command, slideshow remote, etc, actions.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-iphone.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46923\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-iphone-700x367.webp\" alt=\"\" width=\"610\" height=\"320\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-iphone-700x367.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-iphone-300x157.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-iphone-768x403.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-iphone-1536x806.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-iphone-1320x692.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-iphone.webp 2040w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>To send custom command action from your smart phone, you need to configure in PC side.<\/p>\n<p>Depends on which app you installed, launch either &#8220;KDE Connect Settings&#8221; tool or GSConnect <i>Preferences<\/i> dialog. Then, choose the connected mobile device, navigate to either &#8220;Commands&#8221; or &#8220;Run commands&#8221;, and finally add custom commands as you want.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-addremotecommands.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46924\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-addremotecommands-700x330.webp\" alt=\"\" width=\"610\" height=\"288\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-addremotecommands-700x330.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-addremotecommands-300x141.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-addremotecommands-768x362.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-addremotecommands-1536x724.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-addremotecommands-1320x622.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/07\/kde-connect-addremotecommands.webp 1840w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>For more, see <a href=\"https:\/\/github.com\/GSConnect\/gnome-shell-extension-gsconnect\/wiki\/Help\" target=\"_blank\" rel=\"noopener\">GSConnect Wiki<\/a> or <a href=\"https:\/\/community.kde.org\/KDEConnect#Troubleshooting\" target=\"_blank\" rel=\"noopener\">KDE Connect troubleshooting<\/a>.<\/p>\n<h3>Uninstall:<\/h3>\n<p>For either KDE Connect or GSConnect, use either Ubuntu Software (App Center) to uninstall, or run command below in terminal:<\/p>\n<pre>sudo apt remove --autoremove kdeconnect gnome-shell-extension-gsconnect<\/pre>\n<p>For GSConnect installed from extensions.gnome.org, either go to that web page again and turn off the toggle switch, or use Extension Manager to uninstall.<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows how to use your Android or iOS Phone as remote input (e.g, touchpad, send command) for Ubuntu and other Linux Desktop. KDE community has an popular free open-source software project called KDE Connect. It enables ability to communicate between your computer (Linux, macOS, and Windows) and mobile devices (Android and iOS) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":46913,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2173,1371],"class_list":["post-46912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-gsconnect","tag-kde-connect"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/46912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=46912"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/46912\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/46913"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=46912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=46912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=46912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}