个人工具

Tracker

来自Ubuntu中文

跳转至: 导航, 搜索


"Tracker is a powerful desktop-neutral first class object database, tag/metadata database, search tool and indexer. Tracker is also extremely fast and super efficient with your systems memory when compared with some other competing frameworks. It consists of a common object database that allows entities to have an almost infinite number of properties, metadata, a comprehensive database of keywords/tags and links to other entities. It has the ability to index, store, harvest metadata. retrieve and search all types of files and other first class objects."

Tracker is a desktop search application which allows you to quickly search your documents, photos, music, and other files. The advantage of Tracker over the default search feature in Ubuntu (Nautilus -> Search for files...) is that results are returned much more quickly and all the metadata of the file is included in the search. Tracker also very small and efficient, consuming only 6 mb of ram when indexing, and ~3 mb when idle.

See the Tracker project website for more information.

Installing Tracker

Tracker is not included in Ubuntu, so you must install it manually from a 3rd party deb package.

  • Ubuntu 6.06 LTS (Dapper Drake)
  • Download the Tracker deb: tracker_0.0.4_i386.deb
  • Open with Gdebi and install the package. After the package is installed close gdebi.
  • Click "System" -> "Preferences" -> "Sessions"
  • Click the startup programs tab
  • Click the add button and type "trackerd" as the name of the program.
  • Press Alt+F2 and enter "trackerd" in order to start the tracker indexer

Tracker is now installed and indexing your home directory!

You can check on its progress by opening the file "~/.Tracker/tracker.log" Give it a bit of time after booting up to index your files. (The more files you have the longer you'll have to wait) To see if its done, open the "System Monitor" ("System" -> "Administration" -> "System Monitor") and look for the "trackerd" process on the "Processes" tab. When its status is "Sleeping" its probably done.

Using tracker

There are several ways of performing a tracker search.

Nautilus Integration

To properly use the Tracker search functionality you should install the tracker enabled Nautilus.

  • Download the Tracker enabled Nautilus deb: nautilus_2.14.1-0ubuntu9tracker1_i386.deb
    • ~-(WARNING this will remove the Beagle support from Nautilus. This is only an issue if you have Beagle installed and use is regularly)-~
  • Open with Gdebi and install the package. After the package is installed close gdebi.
  • Press Alt+F2 and enter "nautilus -q" in order to restart nautilus

Congratulations! The Tracker enabled Nautilus is now installed.

If Tracker has finished indexing your files, open Nautilus and click the "Search for files" button. Type in your search, click, and be surprised at how quick you get the results.

Deskbar Applet Handler

Deskbar is a search box which is always available on one of your desktop panels. Deskbar can perform many different search types, including Tracker searches.

  • Open a terminal ("Applications" -> "Accessories" -> "Terminal")
  • Type these commands:
wget http://www.madman2k.net/files/tracker.py 
mv tracker.py ~/.gnome2/deskbar-applet/handlers/tracker.py
  • If you had the deskbar applet running before installing the Tracker handler:
    • Restart Gnome. (log-out and log-in again)
  • If you didn't have the Deskbar applet running:
    • Right Click on one of the gnome panels and Click add to panel
    • Click the Deskbar icon, and the add button, and then close.

Congratulations! The Tracker handle is now installed for Deskbar. (You will have to enable it through the Deskbar preferences)

Command-line tools

Tracker can also be used from the command line. Click Applications -> Accessories -> Terminal to open a terminal. Type 'tracker' and then press the Tab key on the keyboard twice in rapid succession. This will display a list of Tracker command-line tools which you can use. For example, you can type tracker-search <search terms> (replace <search terms> with your own search terms) to perform searches from the command-line.

Configuring Tracker

You can change various settings for Tracker by editing the "~/.Tracker/tracker.cfg" file.

Alternatives to Tracker

Tracker is just one of many desktop search applications compatible with Ubuntu. Below is a short list of other search applications you may like to try:

  • Beagle - A more feature rich & integrated alternative to Tracker written in C# (mono)
  • Kat - [1]



文章来源:官方WIKI
翻译人员:
校对人员:
文章状态:等待翻译