Integrate Android with KDE using KDE Connect.

Hello, as a small collaboration I wanted to share how to integrate your Android with KDE in a rather interesting way with KDE Connect.

KDE Connect will allow us to do several interesting things such as transferring files via Wifi, answering calls, controlling the media player from the phone, copying to the clipboard, reading sms and more.

Items we will need:

  • GNU / Linux distribution (any)
  • KDE 4.11+
  • Android 4.x phone
  • Go
  • Gcc and headers for Qt compilation and various other libraries.
  • Compilation dog (or cat failing that)

First of all download the KDE Connect sources from the git repo

git clone git://anongit.kde.org/kdeconnect-kde

As root user install the necessary development libraries, in Fedora Linux are:

yum install kde-runtime-devel.x86_64 kde-workspace-devel.x86_64 kde-baseapps-devel.x86_64 qjson-devel.x86_64

Go to the KDE connect folder

cd kdeconnect-kde

Start compilation:

cmake -DCMAKE_INSTALL_PREFIX=/usr ./

(While waiting to play with the compilation dog (or cat))

Dog_Compilation

Once compiled install with:

make install

Load the module with qdbus (or restart):

qdbus org.kde.kded /kded loadModule kdeconnect

Restore the cache:

kbuildsycoca4 -noincremental

If they have Firewall allow the range of ports:

firewall-cmd --permanent --zone = public --add-port = 1714-1764 / tcp firewall-cmd --permanent --zone = public --add-port = 1714-1764 / udp

We add the plasmoid to the KDE panel like any other plasmoid.

Theoretically, the PC side is ready, now from our phone we download the KDE Connect app.

Cell Phone

Once installed, if everything went well, we will see both in KDE and in Android the option to "link" both devices, we click on either of the two to link it.

A message like this should appear:

Plasmoid

By accepting it, our devices would already be linked, we can configure what we want to integrate from the configuration of KDEConnect.

KDE_Connect

This article has been written in our forum by johnfgsI just bring it here with some small edits in the text.

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   ivanbarram said

    Very good, I installed it when it was beta and it cannot handle the music player (OpenSUSE 12.3 x64), but the rest of the functionalities worked perfectly.

    I'll give it a second chance.

    Greetings.

  2.   eliotime3000 said

    Let's see if I use the KDE 4.11 backport to test if it is possible to do KDE Connect with Android 2.3.7 (I already tried using Android 4.2.2 on my galaxy mini and it ended up worse than Pentium IV with Windows Vista).

  3.   FreeBSDDICK. said

    funny the photo of the dog xD

  4.   Tesla said

    LOL. And how is that famous compilation dog installed? It's in the repositories of all the distros I guess, right?

    Very good tutorial! A good reason to recommend KDE to people new to Linux.

    1.    ivanlinux said

      Fedora -> #yum install compilation-dog-f19
      Debian —-> # apt-get install compilationdog-src
      Greetings =)

  5.   Ry said

    Well, I get this error when trying to compile an idea?

    Install the project…
    - Install configuration: "RelWithDebInfo"
    - Installing: /usr/share/dbus-1/interfaces/org.kde.kdeconnect.daemon.xml
    CMake Error at kded / cmake_install.cmake: 44 (FILE):
    file INSTALL cannot copy file
    "/Home/rayleigh/kdeconnect-kde/kded/org.kde.kdeconnect.daemon.xml" to
    "/Usr/share/dbus-1/interfaces/org.kde.kdeconnect.daemon.xml".
    Call Stack (most recent call first):
    cmake_install.cmake: 37 (INCLUDE)

    Makefile: 65: recipe for target 'install' failed
    make: *** [install] Error 1

    1.    Tesla said

      I believe, and someone correct me if I'm not right. What is trying to copy something from your / home to / usr as this line says:

      cannot copy file
      "/Home/rayleigh/kdeconnect-kde/kded/org.kde.kdeconnect.daemon.xml" to
      "/Usr/share/dbus-1/interfaces/org.kde.kdeconnect.daemon.xml".

      The truth is I don't know if it is advisable to do it under sudo. I've always hated that unless you installed over a system directory you NEVER had to use sudo for the make install command.

  6.   truko22 said

    😀 in Chakra is in the CCR
    $ccr -S kdeconnect-git

  7.   Authorless said

    Also with Jdownloader, we can download videos in any resolution (YouTube videos come in various resolutions), select the format or if we prefer we select only the audio in the format we choose, jdownloader allows you to choose which one to download or download all of them.

    http://www.taringa.net/posts/linux/14784926/Instalar-JDownloader-en-Ubuntu-12-04.html

    This comment was about downloading videos from youtube but the same captcha 7 - x equal to 2 always appears ... It never changes and never accepts 5 as an answer.

  8.   chinoloco said

    Hi. I get this error
    Reading package list ... Done
    Creating dependency tree
    Reading the status information ... Done
    E: The kde-runtime-devel.x86_64 package could not be located
    E: Could not find any packages with regular expression "kde-runtime-devel.x86_64"
    E: The kde-workspace-devel.x86_64 package could not be located
    E: No package could be found with the regular expression "kde-workspace-devel.x86_64"
    E: The kde-baseapps-devel.x86_64 package could not be located
    E: Could not find any packages with regular expression "kde-baseapps-devel.x86_64"
    E: The qjson-devel.x86_64 package could not be located
    E: No package could be found with regular expression "qjson-devel.x86_64"

    1.    Isaac patranas said

      Try sudo apt-get install cmake kdebase-workspace-dev libqjson-dev git
      By the way I had to do the make install with sudo ... I don't know why

  9.   Claudio said

    Hey, it looks great !!, I'm going to try it to see if it works for me, thanks for the contribution!

  10.   dog006 said

    Hi, sorry but I get an error, I don't know why I did it with my root account the first 4 steps, that is, I got to the compilation and I get the following error:

    [root @ think kdeconnect-kde] # cmake -DCMAKE_INSTALL_PREFIX = / usr ./
    - The C compiler identification is GNU 4.8.3
    - The CXX compiler identification is unknown
    - Check for working C compiler: / usr / bin / cc
    - Check for working C compiler: / usr / bin / cc - works
    - Detecting C compiler ABI info
    - Detecting C compiler ABI info - done
    CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
    - Looking for Q_WS_X11
    - Looking for Q_WS_X11 - found
    - Looking for Q_WS_WIN
    - Looking for Q_WS_WIN - not found
    - Looking for Q_WS_QWS
    - Looking for Q_WS_QWS - not found
    - Looking for Q_WS_MAC
    - Looking for Q_WS_MAC - not found
    - Found Qt-Version 4.8.6 (using / usr / bin / qmake-qt4)
    - Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXpm.so
    - Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXpm.so - found
    - Looking for gethostbyname
    - Looking for gethostbyname - found
    - Looking for connect
    - Looking for connect - found
    - Looking for remove
    - Looking for remove - found
    - Looking for shmat
    - Looking for shmat - found
    - Looking for IceConnectionNumber in ICE
    - Looking for IceConnectionNumber in ICE - found
    - Found X11: /usr/lib64/libX11.so
    - Looking for include file pthread.h
    - Looking for include file pthread.h - found
    - Looking for pthread_create
    - Looking for pthread_create - not found
    - Looking for pthread_create in pthreads
    - Looking for pthread_create in pthreads - not found
    - Looking for pthread_create in pthread
    - Looking for pthread_create in pthread - found
    - Found Threads: TRUE
    - Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.1e")
    - Looking for _POSIX_TIMERS
    - Looking for _POSIX_TIMERS - found
    - Found Automoc4: / usr / bin / automoc4
    - Found Perl: / usr / bin / perl (found version "5.18.2")
    - Found Phonon: / usr / include (Required is at least version "4.3.80")
    - Performing Test _OFFT_IS_64BIT
    CMake Error at /usr/share/cmake/Modules/CMakeCXXInformation.cmake:37 (get_filename_component):
    get_filename_component called with incorrect number of arguments
    Call Stack (most recent call first):
    CMakeLists.txt: 3 (PROJECT)

    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
    CMake Error: Internal CMake error, TryCompile configure of cmake failed
    - Performing Test _OFFT_IS_64BIT - Failed
    - Found KDE 4.12 include dir: / usr / include / kde4
    - Found KDE 4.12 library dir: / usr / lib64 / kde4 / devel
    - Found the KDE4 kconfig_compiler4 preprocessor: / usr / bin / kconfig_compiler4
    - Found automoc4: / usr / bin / automoc4
    - Found PkgConfig: / usr / bin / pkg-config (found version "0.28")
    CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
    Could NOT find QCA2 (missing: QCA2_LIBRARIES QCA2_INCLUDE_DIR)
    Call Stack (most recent call first):
    /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
    /usr/share/kde4/apps/cmake/modules/FindQCA2.cmake:44 (find_package_handle_standard_args)
    CMakeLists.txt: 9 (find_package)

    - Configuring incomplete, errors occurred!
    See also "/home/ivan/kdeconnect-kde/CMakeFiles/CMakeOutput.log".
    See also "/home/ivan/kdeconnect-kde/CMakeFiles/CMakeError.log".
    [root @ think kdeconnect-kde] #

    I hope you can guide me, I forgot I had installed fedora 20, if you need more information tell me, thanks

    1.    ikakaotsu said

      sudo apt-get install libqca2 libqca2-dev libqca2-plugin-ossl libqca2-plugin-gnupg

  11.   serfravirs said

    If you use Arch Linux and installed kdeconnect with pacman, you must modify the following line:

    $ qdbus org.kde.kded / kded loadModule kdeconnect

    by the following:

    $ qdbus-qt4 org.kde.kded / kded loadModule kdeconnect

    Because if not only a blinking cursor will appear and it will never go from there; Besides that if they are old gnomers and impatient like me, they will curse the time they decided to switch to KDE 🙂

  12.   e2dev said

    Is there anything similar there that I can use in GNOME? Another question, does anyone know if the gnome hotspot should do this ???

  13.   claudio sepulveda said

    Hello,

    I am installing KDE Connect, so far I have a problem starting the build:

    CMake Error at CMakeLists.txt: 10 (find_package):
    Could not find a package configuration file provided by "ECM" (requested
    version 0.0.9) with any of the following names:

    ECMConfig.cmake
    ecm-config.cmake

    Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
    to a directory containing one of the above files. If «ECM» provides a
    separate development package or SDK, be sure it has been installed.

    - Configuring incomplete, errors occurred!
    See also "/home/mref/kdeconnect-kde/CMakeFiles/CMakeOutput.log".

    I do not understand why or what the error is about, any help is welcome.