个人工具

UbuntuHelp:Beagle

来自Ubuntu中文

跳转至: 导航, 搜索

Beagle is a desktop search application which allows you to quickly search your documents, e-mail headers, photos and other files. The advantage of Beagle over the default search feature in Ubuntu (Places -> Search for files...) is that results are returned much more quickly and more types of file/information are searched for (for example, your calendar). See the Beagle project website for more information.

Installing Beagle

In Ubuntu 6.06 the beagle package can be found in the Universe Repository while in Ubuntu 6.10 and 7.04 just install beagle using your favorite package manager. Once the installation process has completed, you can start the Search tool by clicking Applications -> Accessories -> Search.

Enabling Extended Attributes

Beagle makes extensive use of extended attributes in your filesystem. If you are using the default ext3 filesystem, you need to enable this, otherwise Beagle will fall back to using sqlite, which leads to decreased performance. This is done via the `/etc/fstab` file. You need to add the `user_xattr` option to the drive that Beagle will be using, here is an example: UUID=9709df23-8843-47e3-9522-40b25a3ffb2f / ext3 defaults,errors=remount-ro,user_xattr 0 1 For more information on extended attributes, see the relevant page on the Beagle wiki. While using Beagle without Extended Attributes does work, it is slow, so it is highly recommended that users enable `user_xattr`.

Using Beagle

There are several ways of performing a Beagle search.

Search tool

Beagle?action=AttachFile&do=get&target=beagle-search.png > The default Search Tool (Applications --> Accessories --> Search)

When you install Beagle, the Search tool is installed automatically. You can start the Search tool by clicking Applications -> Accessories -> Search. Simply type your search into the box provided and press the Find Now button. You can limit your search to a specific type of document by selecting the desired type from the Search menu of the Search tool.

Kerry search tool

Kerry is a Beagle search tool designed specifically for KDE, and so is recommended for use by Kubuntu users instead of Beagle's default tool. However, Ubuntu, Edubuntu and Xubuntu users can still install and use Kerry. To start using Kerry, install the kerry package from the Universe Repository. See InstallingSoftware for instructions on how to install packages.

Deskbar applet

Deskbar is a search box which is always available on one of your desktop panels. Deskbar can perform many different search types, including Beagle searches. To start using Deskbar, install the deskbar-applet package. Once installed, right-click the top or bottom panel and select Add to Panel... from the menu which appears. Then, simply drag the Deskbar item to a place on one of the panels. Deskbar allows you to have a Beagle search as well as a Beagle Live search. The difference between the two options is that Beagle Live will use Beagle to search as you type. On the other hand, the Beagle search will simply display the option to launch the Beagle Search program for the text you entered into Deskbar. To use Beagle Live with Deskbar you must install the python-beagle package from the Universe Repository. See InstallingSoftware for instructions on how to install packages.

Command-line tools

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

Web-Frontend Peagle

A web-based interface to Beagle is available. Called 'Peagle', it requires PHP and a web-server to be installed. Peagle is not currently available in any official Ubuntu software channel. For more information, see the Peagle project page.

Applications which use Beagle

Some applications are able to use Beagle to perform searches on certain types of file or information. Using Beagle instead of the application's own search function often has the advantage of returning results faster. Applications which can use Beagle searches often do so automatically (without your intervention) if the beagle package is installed. Below is a short list of applications which can use Beagle searches:

  • System Documentation (yelp) - found in System -> Help -> System Documentation.
  • File Browser (nautilus) - open a directory (e.g. from the Places menu) and click the Search button.

Configuring Beagle

You can change various settings for Beagle using the Search & Indexing preferences tool. To start the tool, click System -> Preferences -> Search & Indexing.

Debugging Beagle

For help debugging Beagle and for filing bug reports, see Beagle/Debugging.

Alternatives to Beagle

Beagle 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:

  • Tracker - A lighter, faster desktop indexing system written in C.
  • Strigi - [1]
  • Recoll - [2]. See also [3]