On Tue, 2007-07-10 at 15:08 +0200, tracker-list wrote: > On Mon, 09 Jul 2007 15:52:18 +0100, jamie <[EMAIL PROTECTED]> > wrote: > > On Mon, 2007-07-09 at 11:20 +0200, tracker-list wrote: > >> Hi > >> > >> I am trying to use Meta tracker in a non graphical environment. The host > >> I'm referring to is a fileserver where all users store their files. The > >> System administrator must be able to run a file statistics tool on the > > file > >> server so he can detect un-wished downloads. For that task I have build > > a > >> SOAP server that exposes the statisical methods. Until now I have used > > the > >> "find" command for filesearching but it has become too slow. Therfore I > >> need a file indexing daemon to help me in search: > >> > >> I thought about using Beagle, but it can't be run as root, therefor > > "Meta > >> Tracker" seems like the tool to use. I have done some testing on my > > desktop > >> PC (running Ubuntu like the fileserver) and it works like a dream in the > >> graphical environment - but if I startup in console mode the trouble > >> begins. > >> > >> 1. First I start trackerd -> $ trackerd & > >> 2. Then I do a search -> $ tracker-search something > >> > >> Following error is presented: > >> tracker-search: No connection to tracker daemon > >> Ensure "trackerd" is running before launch this command > >> > >> Also if trackerd has been started from console and I go into the > > graphical > >> environment to do a tracker-search i get the following error: > >> tracker-search: internal tracker error: Process /usr/bin/trackerd > >> exited with status 0 > >> > >> Can Meta tracker run without X? > >> > >> P.S. My SOAP server will be running as a daemon itself and there is no > >> Graphical Environment present. > > > > I would recommend running tracker as a non-root user along with your > > SOAP server (both must be same user in order to communicate via dbus > > session bus) > > > > trackerd does not use the dbus system bus and there is no activation on > > the system bus either > > > > I dont know if you can run a root session bus or not? (it should run > > along side the system bus I would have thought) > > > > jamie > > This just works like a wonder! Thanks guys > > All I had to do in the end was put "dbus-launch" in front of my soap daemon > command and then start "trackerd" from the daemon process. > > I have a few more questions: > > 1. I will most certainly be needing the tracker-query command since I need > to be able to specify search criterias. I have found the examples in the > tarball but I was wondering if there is a complete list of rdfq:Properties > - especially I need a group-match property and a owner-match property.
the query uses the metadata names that can be found in data/services/*.metadata query syntax is likely to be deprecated in favour of xesam query in the near future (and so will metadata names) > > 2. Is tracker-handler.py up-to-date so and ready to use in my python based > soap service. AFAIK yes _______________________________________________ tracker-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/tracker-list
