Remote searching with Beagle - gHacks Tech News

Remote searching with Beagle

Searching your desktop for files can be a real pain without the right tools. Every desktop has one (ore more) search tools that can be used to search for that missing file. Linux is not an exception. One of my favorite search tools for the Linux desktop is Beagle. You can read about the basics of Beagle in my article "Enable Beagle searching in GNOME". Of course Beagle is not just for GNOME. Beagle can be used in just about any Linux desktop.

But one feature you might not know exists with Beagle is the ability to search across your internal LAN on other Beagle-enabled machines. This makes for an amazingly handy way to search for files across multiple machines without having to run around to every machine on your network. With one of the later releases of Beagle, you can enable remote searches. In this tutorial I will show you how to set this up and how to run a search across your network.

First and foremost, make sure you are running a recent release of Beagle. Do this by open up your package manager and see that Beagle is, in fact, the latest version. If you have any security measures on your network, you will need to open up port 4000 so that the Beagle machines can see one another. Once you have those tasks done you are ready to set up Beagle. I am going to make this simple by only setting up two machines for this feature: Desktop and Laptop. The information you need to know:

LAPTOP

  • IP address: 192.168.1.15
  • Hostname: jlwallen-laptop

DESKTOP

  • IP address: 192.168.1.100
  • Hostname: jlwallen-desktop

Let's set up the desktop first. Follow these steps:

  1. Open up Beagle on the desktop machine.
  2. Click on Search > Preferences.
  3. Click on the Data sources tab.
  4. Make sure NetworkServices is checked.
  5. Click on the Network options tab.
  6. Check "Enable web interface for local search services".
  7. Check "Allow external access to local search services"
  8. In the Index Name text area enter "Desktop" (no quotes).
  9. Click OK.

 

You will have to come back to this section in just a moment. But first go over to the laptop and run through the same steps as above, only insert "Laptop" (no quotes) where you see "Desktop". Once you have that done, come back to the desktop and follow these steps.

Figure 1
  1. Open up the Preferences window again.
  2. Click on the Network options.
  3. Click the Add button in the Networking section.
  4. From the list of currently available hosts, double click the host named "Laptop" (see Figure 1).
  5. Click OK on the Preferences window.

Now go back to the laptop and run through the same steps (above) to add the Desktop host. Once you have done this close Beagle on both the Desktop and the Laptop and restart both.

When Beagle has restarted you are almost ready to search. But before you do you have to tell Beagle to include the Neighborhood in its search. To do this click Search > Search Domains and check Neighborhood.

Figure 2

Now when you run your search it will include a search on the remote machine. Figure 2 shows a search for the string "beagle" as run on the laptop. For this test I created a file called "beagle_desktop" on the desktop machine and "beagle_laptop" on the laptop machine. Figure 2 shows both files.

Congrats! You now have remote searching set up in Beagle.

Final thoughts

Beagle is one of the more flexible search tools on any desktop. Give remote searching a try and Beagle will probably become your favorite search tool.

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

  1. mrdhana said on January 18, 2010 at 8:00 am
    Reply

    why not google desktop search… its also searches fine…

    1. attendr said on February 10, 2011 at 9:20 pm
      Reply

      umm ok how did you get desktop search to work on your network of (linux) hosts?

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.