How to Install Beagle on Novell Linux Desktop
Novell Cool Solutions: Trench
By Matt Jones
Digg This -
Posted: 23 May 2005
- This is genuine bleeding edge stuff. I suggest you don't try this on your production machine unless you are prepared to mess it up, rebuild it, and throw it out an upstairs window.
- I'm doing this in Gnome, it might work in KDE but I don't use it so I don't know.
- You need a working Internet connection.
- All these notes assume you have a fresh copy of NLD9 with SP1
Step one is to install Mozilla -- you can do this through Install and Remove Software in Administrator Settings
You need the following programs installed to run Beagle
- mono >= 1.0 (>= 1.0.6 for beagle >= 0.0.8)
- gtk-sharp == 1.0.x (1.9.x is not yet supported)
- gecko-sharp (tarball) == 0.6 (newer versions require gtk-sharp 1.9.x, which is not yet supported)
- dbus (with mono support) == 0.23.4
- gmime >= 2.1.13
- sqlite (Note: Beagle uses the 2.X sqlite API)
- inotify enabled kernel
- libexif >= 0.5
Libexif and sqlite are part of the default NLD installation so you don't need to worry about these two.
Adding Software Update Channels
The first thing we need to do is add some new channels to Software Update - this will allow us to download the software we need.
From a terminal window, type su and enter your root password. This will make you the system administrator and allow you to add the programs.
Now add the channels by typing:
# rug sa http://go-mono.com/download # rug sub mono-1.1-official # rug sub gtk-sharp-official # rug sa http://segfault.cam.novell.com/ # rug sub mdes
Exit from the terminal; you should be at your desktop.
Click on the System menu and choose Software Update. Enter your administrator/root password when prompted; you will notice that you have updates available to you. Ignore these for the moment.
install mono and gtk-sharp
In Software Update click on the Search tab. In the text box type: mono-complete gtk-sharp.
You should get about six results. Select mono-complete and gtk-sharp and click the Mark for Installation button. From the toolbar click the Run Now button -- this will install mono-complete and gtk-sharp.
Once the transaction has finished you can close Software Update.
Install Gecko Sharp
Gecko Sharp needs to be downloaded from the web -- you can get a copy from here:
The file you need is gecko-sharp-0.6*. Download this file to your computer.
Double click the downloaded file -- this will open up Software Update -- and enter your administrator/root password when requested. Click Continue.
Gecko-sharp will now install.
After the Gecko-sharp installation has completed, keep Software Update open.
Click the Search tab and type dbus into the text box. You will get two entries -- select dbus and click Mark for Installation. From the toolbar click Run Now.
Dbus will now install.
After the dbus installation has completed, keep Software Update open.
Click the Search tab and type gmime in to the text box. You will get two entries select GMime and click Mark for Installation. From the toolbar click Run Now.
GMime will now install.
Install an Inotify-Enabled Kernel
The final thing we need to do is install a new kernel with inotify enabled. Hopefully you will be running the standard kernel that came with NLD,which will make the process easier.
Stay in Software Update, click the Search tab and type kernel into the text box. You will get about six entries -- the one you want will probably be the first one and should have 'newer' next to it. Select it and click Mark for Installation. From the toolbar click Run Now.
Ok, so you have rebooted right? Well, we are almost there -- let's go ahead and install Beagle. Again go into software update, entering your administrator/root password when required. In the Search tab, type beagle in the text box. You should get one result back -- select it and click Mark for Installation. From the toolbar click Run Now.
Beagle will now install
We have now completed the installation of the required software.
All we need to do now is configure it to run.
Now we need to create some symbolic links to some libraries that dbus installed for us. Go into a Terminal window and type su, entering your administrator/root password when required.
Now type the following commands:
ln -s /usr/lib/libdbus-glib-1.so.0.0.0 /usr/lib/libdbus-glib-1.so ln -s /usr/lib/libdbus-1.so.0.0.0 /usr/lib/libdbus-1.so
This will fix a problem where beagle is not able to connect to dbus.
Exit from the terminal window.
Now we need to create a file which will start dbus everytime we log in.
Start Text Editor. Insert the following into a new file
#!/bin/bash # add dbus-launch if found dbuslaunch="`which dbus-launch 2>/dev/null`" if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ]; then eval `$dbuslaunch --sh-syntax --exit-with-session` fi
Save the file to your home directory with the name .xim (the dot is important).
*Make Sure the file gets saved to your home directory and NOT to the desktop*
Exit the text editor and log out of NLD and back in -- this should start dbus running.
Before we start beagle we will check that dbus is running. Start a Terminal Window and type the following:
$ ps x | grep dbus
you should get a result similar to this:
1981 ? S 0:00 dbus-daemon-1 --fork --print-pid 8 --print-address 6 ?session
Finally we need to check that an environmental variable is in place, so in the Terminal Window type:
$ export | grep DBUS
You should get a result that looks like this:
declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-s8vuES65LU"
If you get that result, then dbus is running and you are ready to start Beagle
The first time we start beagle the best thing to do is to start it in debug mode so we can make sure that there aren't any errors. To do this, in your Terminal Window type:
/usr/bin/beagled ?fg ?debug This will start Beagle and you should be able to see it indexing your files. If this started OK then go to the next step.
Adding Beagle to your Startup Programs
The easiest way to start Beagle running is to add it to you startup programs. To do this click on the System menu and choose Personal Settings, then double click on Sessions.
In Sessions you will see a tab that says Startup Programs -- click on this. Click on the Add button and in the startup command text box type: /usr/bin/beagled You can leave the order at 50.
Click OK to add it to the startup list.
Click on the Add button again and in the startup command text box type /usr/bin/best. Change the order to 51.
Click OK to add it to the startup list
test beagle startup
All tha'ts left to do now is log out of NLD and back in. When you log back in you will notice you have a new icon on your top menu bar
That's your new Beagle search tool. If you click on it it will open the Beagle search screen.
Everytime you read a mail, chat or work on a file Beagle will index it and you will be able to search on it.