How To Enable Nepomuk/Strigi Desktop Search in Kubuntu 9.10/KDE4.3

Advertisements

nepomukstrigi_logoNepomuk/Strigi is a very powerful desktop search in KDE. Strigi is the file indexer which allows for search not just by the file name but by the content of the file as well and Nepomuk is allows for the tagging and rating of the files and it is integrated along with the desktop search.

In Kubuntu 9.10/KDE 4.3, Nepomuk/Strigi is disabled by default. To enable it follow these steps:

  1. Press “Alt+F2″ to launch KRunner.
  2. Enter Strigi in KRunner and run Desktop Search.strigi1
  3. In the Desktop Search Control Module, under the Basic Settings tab, check both the check boxes next to Enable Nepomuk Semantic Desktop and Enable Strigi Desktop File Indexer.strigi2
  4. Click on Apply.

It is very possible that you get an error which says “Service failed to initialize, most likely due to an installation problem” with Strigi when you click on Apply. This is due to a problem with the Java Runtime and can be fixed by a simple symbolic link. Here is the fix for it:

Find out if you are using OpenJDK or Sun Java

If you do not know if you are using OpenJDK or Sun Java, open Konsole and run the command

java -version

Now you will get to know if you are running OpenJDK Runtime Environment or Sun Java Runtime Environment. As you can see from the screenshot below, I am running OpenJDK.strigi3

Open JDK Runtime Environment

If you have OpenJDK Runtime Environment, run the command given below

For 32-bit:

sudo ln -s /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server/libjvm.so /usr/lib/libjvm.so

For 64-bit:

sudo ln -s /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/libjvm.so /usr/lib/libjvm.so

Sun Java Runtime Environment

If you have Sun Java Runtime Environment, run the command given below:

For 32-bit:

sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/server/libjvm.so /usr/lib/libjvm.so

For 64-bit:

sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/amd64/server/libjvm.so /usr/lib/libjvm.so

After running running the command for either OpenJDK or Sun Java Runtime, click on Apply again and Strigi should be working now.


   Facebook 


 Leave a Comment




Browse the Archives


RSS feed | Trackback URI

12 Comments »

Comment by DavidPermalink to this comment
2009-10-14 13:49:51

Thanks for that. Works as well with PCLoS Kde4 so I presume it would work with all Kde4 systems.

Comment by RickyPermalink to this comment
2009-10-14 14:26:10

Yes it should work with all KDE 4.x systems

 
 
2009-11-01 00:21:26

Wow thanks for this. I’ve been wanting to try to utilize desktop search for a while and I always got this error and gave up. Not it’s indexing like a champ.

 
Comment by TsviPermalink to this comment
2009-11-05 14:26:49

Finally. Strigi is working again. I can’t start describing how much this has been bugging me.

 
Comment by SnowhogPermalink to this comment
2009-11-11 08:25:07

Thank you. Decided to try using Desktop Search. As I remember the issues with Strigi when it was first released, I Googled on: nepomuk jaunty 9.04 and noticed your link. I read it, followed it, and Desktop Search works. Yes, I had to create the symlink to my Sun Java Runtime Environment file, and stop/restart Strigi. But it then successfully index my /home/user partition. Cool.

This was a clearly presented, easy to follow guide. Good job.

 
2009-11-13 15:26:03

Hey, Ricky, thank you so much for this!

Before Koala, I used Ubuntu with KDE thrown on top of it, and I thought that the Strigi problem is some king of conflict between Gnome and KDE or something like that. But now I have pure KDE – Kubuntu, and to my surprise I got that annoying error message when I tried to start Strigi. I wonder why is this issue addressed somehow trought the packaging system… It’s not fun snooping around for hacks on how to run a program that’s included in the OS by default…

Anyway, thanks again. I really wanted to make this work because I use a Mac at work, so I want that fast file search :)

 
Comment by RickyPermalink to this comment
2009-11-13 15:37:21

welc. :) Glad to know that the article helped you. :)
if i remember correctly the problem with strigi/nepomuk has been there since Jaunty. wonder why it wasn’t fixed in karmic as its so simple to fix

 
Comment by dr.med.zoidbergPermalink to this comment
2009-12-08 19:14:12

Additionally to making a softlink for libjvm I (kubuntu/karmic) had to:

- install package soprano-backend-sesame (was not installed by default)
- edit ~/.kde/share/config/nepomukserverrc
search line
Used Soprano Backend=redland
change to
Used Soprano Backend=sesame2

After restart of services nepomuk and strigi everything worked as expected.

Credits go to http://www.yeap.de/blog2.0/archives/210-KDE-4.3-E...

 
Comment by vykPermalink to this comment
2010-01-06 21:25:19

Thanks a mil.

This has been troubling me forever.

I had installed the back-ends and all but didn’t have the link and when I installed the link and read “Strigi currently indexing files…” I was overjoyed.

Thanks again.

 
Comment by danielPermalink to this comment
2010-01-06 21:29:00

Hi

thanks a lot, works for me. But I do have a question: it’s the first time I use strigi/nepomuk, and I expected a desktop search like Google’s Desktop Search or KBeagle (which I have in OpenSuse 10.1). That is, I would like to type a word and get all documents containing that word, but I can’t figure it out in Kubuntu Karmic. I have tried both the KRunner, and the command nepomuksearch: in Dolphin. Any help?

Thanks!

Daniel

Comment by RickyPermalink to this comment
2010-01-06 22:13:18

To get make it work in KRunner, you need to install the necessary KRunner plugin. I am not sure if it is installed by default. However you can install it using
sudo apt-get install plasma-runners-addons

 
 
In case you have a problem to be solved or a trouble to be shot or you are looking for some help on this topic you might try the Digitizor Forums for better help and faster reply.

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post