Quick intro to Tracker

Tracker is the best Desktop Search Tools for Linux. You can search for file content and file title. It’s a really useful tool for everybody in everyday use.

1/ Download the RPM from:

http://rpmfind.net/linux/rpm2html/search.php?query=tracker-gui

2/ Choose

tracker-gui-0.16.2-2.2.2.i586.rpm

for OpenSuSE 13.1 for i586

It’s the Graphical User Interface for Tracker. However, before the running of GUI Tracker, you probably will be forced to install tracker for the command line from your repositories or from the Internet.

3/ After installing, you should restart your Operating System, because Tracker depends on your logging in

4/ To check if everything is running, just run the tracker-control command. You should see something like that:

Found 200 PIDs…
Odnaleziono identyfikator procesu 4728 dla “tracker-store”
Odnaleziono identyfikator procesu 4741 dla “tracker-miner-fs”

Przechowalnia:
04 gru 2013, 13:55:38:  ✓     Store                       – Bezczynny

Przeszukiwania:
04 gru 2013, 13:55:38:    0%  System plików              – Inicjowanie
04 gru 2013, 13:55:38:    1%  Programy                    – Crawling recursively directory ‘file:///home/poganin/.local/share/applications’

It’s in Polish, but it will looks in this way.

5/ Check the Tracker Preferences with the  tracker-preferences command. The GUI window pop up. You can set or unset what you want.

6/ To search something, just run the tracker-needle command. Another GUI window opo up. Write the word you are searching and see the results.

7/ Command line tools are more useful. You should know about the tracker-search command. Without options, you get the help information. I’d like to only say that use this pattern to search files and directories:

tracker-search           option            the word you are searching

option is a kind of the file you are searching, for example:

tracker-search -t red

This command will search all document files that contain the world “red”

Pliki:
  file:///home/poganin/Dokumenty/MyDocuments/MyBook/u%C5%BCyte/idamd.odt
  …gmatwanina A thick red carpet covered…

  file:///home/poganin/Dokumenty/MyDocuments/MyBook/u%C5%BCyte/Idiomy%20angielskie-%20alfabetycznie1.txt
  …gmatwanina  A thick red carpet covered…

  file:///home/poganin/Dokumenty/MyDocuments/MyBook/u%C5%BCyte/GRAMATYKAANGIELSKA.doc
  …rid) read- czytał (red) river- rzeka…

  file:///home/poganin/Dokumenty/MyDocuments/MyBook/u%C5%BCyte/idiomAng.doc
  …white. red tape    biurokracja     Because of all the red…

  file:///home/poganin/Dokumenty/MyDocuments/MyBook/u%C5%BCyte/Idiomy%20angielskie-%20alfabetycznie.doc
  …gmatwanina A thick red carpet covered…

  file:///home/poganin/Dokumenty/MyDocuments/MyBook/u%C5%BCyte/IDIOMYANGIELSKIE.txt
  …gmatwanina  A thick red carpet covered…

  file:///home/poganin/Dokumenty/MyDocuments/MyBook/u%C5%BCyte/Kopia%20GRAMATYKAANGIELSKA.doc
  …rid) read- czytał (red) river- rzeka…

  file:///home/poganin/Dokumenty/MyDocuments/MyBook/u%C5%BCyte/Kopia%20Idiomy%20angielskie-%20alfabetycznie.doc
  …gmatwanina A thick red carpet covered…

  file:///home/poganin/Dokumenty/MyDocuments/MojeDokumenty/yoyo/artyl.doc
  …roku 1795, pod red. J. Bardacha, Warszawa…

  file:///home/poganin/Dokumenty/MyDocuments/MojeDokumenty/yoyo/bibl.doc
  …wojskowa, pod red. O. Laskowskiego, t.1,2,4 i 5, War…

  …

UWAGA: osiągnięto ograniczenie, jest więcej elementów w bazie danych niż na tej liście

You see that tracker has found the files with the word “red”.

Now let’s search directories that have “java” in their titles:

tracker-search -s java

Output:

Pliki:
  file:///home/poganin/netbeans-7.4/java
  file:///home/poganin/NetBeansProjects/WebApplication1/src/java
  file:///home/poganin/NetBeansProjects/WebApplication2/src/java
  file:///home/poganin/NetBeansProjects/WebApplication3/src/java
  file:///home/poganin/NetBeansProjects/WebApplication4/src/java
  file:///home/poganin/Pobrane/docs/api/java
  file:///home/poganin/ProgramFiles/idea-IC-129.1359/plugins/java-i18n
  file:///home/poganin/ProgramFiles/eclipseEE/features/net.java.dev.jna_3.5.2
  file:///home/poganin/SmartBear/SoapUI-4.6.1/wsi-test-tools/java
  file:///home/poganin/workspace-sts-3.4.0.RELEASE/Morek/src/main/java
  file:///home/poganin/workspace-sts-3.4.0.RELEASE/Morek/src/test/java
  file:///home/poganin/workspace-sts-3.4.0.RELEASE/Faka/src/main/java
  file:///home/poganin/workspace-sts-3.4.0.RELEASE/Faka/src/test/java
  file:///home/poganin/workspace-sts-3.4.0.RELEASE/Cirka/src/main/java
  file:///home/poganin/workspace-sts-3.4.0.RELEASE/Cirka/src/test/java
  file:///home/poganin/worksSpring/Mirek/src/main/java
  file:///home/poganin/worksSpring/Mirek/src/test/java
  file:///home/poganin/Pobrane/docs/api/org/omg/stub/java
  file:///home/poganin/Pobrane/docs/jre/api/plugin/dom/com/sun/java

Now let’s search directories that have “java” in their titles:

tracker-search -f java

Output:

Pliki:
  file:///home/poganin/apache-tomcat-7.0.41/NOTICE
  file:///home/poganin/Dokumenty/MyDocuments/MojeDokumenty/yoyo/CV-komp-ang.pdf
  file:///home/poganin/apache-tomcat-7.0.41/RELEASE-NOTES
  file:///home/poganin/apache-tomcat-7.0.41/LICENSE
  file:///home/poganin/apache-tomcat-7.0.41/RUNNING.txt
  file:///home/poganin/Java/App8.java
  file:///home/poganin/Java/App7.java
  file:///home/poganin/Java/App15.java
  file:///home/poganin/Java/App4.java
  file:///home/poganin/Java/App6.java
  file:///home/poganin/Java/Gui4.java
  file:///home/poganin/Java/Gui3.java
  file:///home/poganin/Java/Gui2.java
  file:///home/poganin/Java/MyApp.java

It works! Just try it out.

Leave a comment