mconnect - KDE Connect protocol implementation in Vala/C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.8 KiB

10 years ago
  1. # mconnect
  2. mconnect - KDE Connect protocol implementation in Vala/C
  3. GLib and Gio should be available even on trimmed down systems. Vala is
  4. really needed only at build time. OpenSSL does the packet
  5. encryption/decryption at the protocol level, while Json-glib does
  6. packet parsing. Libnotify is responsible for displaying shell popups.
  7. # Building
  8. Build dependencies (using package names as found in Fedora):
  9. - vala
  10. - glib2-devel
  11. - gobject-introspection-devel
  12. - libgee-devel
  13. - json-glib
  14. - openssl-devel
  15. - libnotify-devel
  16. - at-spi2-core-devel (and at-spi2-atk)
  17. or see `mconnect.spec` in source tree. Once build deps are in place, run:
  18. autoreconf -if
  19. ./configure --prefix=<your favorite prefix>
  20. make
  21. make install
  22. # or make DESTDIR=<somedir> install if you want to inspect what
  23. # gets installed
  24. # Configuration
  25. A sample configuration file is provided in source tree, see
  26. `mconnect.conf`. It will get installed to `${datadir}/mconnect/`
  27. (usually corresponding to `/usr/share/mconnect/`) by default. Once
  28. `mconnect` starts it will pick the default file and make a copy of it
  29. in user's config directory, specifically `~/.config/mconnect/`.
  30. A device described in it's own group and listed in `main.devices`, has
  31. to match exactly with incoming identity packets. However, since
  32. `deviceId` is not known beforehand, neither shown in KDE Connect
  33. Android application, only `name` and `type` are used for matching.
  34. # Usage
  35. Start it by running:
  36. mconnect -d
  37. # Operation
  38. The daemon starts listening on `0.0.0.0:1714` for incoming UDP
  39. packets. Once an identity packet (a sort of a handshake) is received,
  40. a connection at the sender's address will be made only if the device
  41. is listed as `allowed` in `mconnect.conf` (see the sample config).
  42. Should the device be whitelisted in configuration, pairing will happen
  43. automatically.