Spotlight support

Ralph Böhme rb at sernet.de
Thu Apr 10 05:42:48 MDT 2014


Hi!

For all interested in Samba supporting Spotlight for OS X clients:

<https://github.com/slowfranklin/samba/commits/spotlight>

is already working as far as correctly replying to queries from
clients. \o/

Samba acts as a proxy fowarding search queries to Gnome Tracker after
mapping Apple's Spotlight query language to SPARQL.

IPC between Samba and the Tracker store is done via dbus in the
relevant tracker library (libtracker-sparql). As all but the very
latest Tracker version register services in DBUS user context, I have
to use a bit of a hack in order to

- run Tracker in root DBUS user context

- pair every call to tracker in Samba within
  become_root()/unbecome_root()

Latest Tracker 1.0 adds support for registering Tracker in DBUS system
context, which will allow for a cleaner integration in the future.

Usage:

- install tracker and libtracker-sparql-dev (or whatever it's called
  on your system)

- use a script like the following for starting Samba and a "private"
  dbus instance: <https://gist.github.com/slowfranklin/10371423>

- install a dbus-session.conf file in the location referenced in the
  start script and adust path in listen directive:
  <https://gist.github.com/slowfranklin/8a52c36be3b6579f62ab>
  
- configure samba with --enable-spotlight

Comments welcome :-)

-Ralph



-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de


More information about the samba-technical mailing list