Peagle (Beagle Web-Interface)
Web
Score 74%
Description:

Peagle is a Stand-Alone Web-Frontend for the Beagle-Search-Engine with the look and feel from known web search engines.

It requires PHP 4.3 (with gd, sockets and posix-modules) or higher and Beagle 0.2 or higher to run.

Currently it supports linking the results directly or running them using KDE-Helpers (kfmclient), GNOME-Helpers, run-mailcap or user-defined handlers (custom).

To install, do the following:
- Install and configure php with gd, socket and posix extensions. In (K)Ubuntu you can install these packages: php5, php5-gd.
- Unpack the peagle-package, and run the peagle-daemon:
./peagle
(or ./peagle.php)

(Start the beagle-daemon, if it is not already running: beagled --bg --replace ... You usually don't have to do this if you already use other beagle-utils like kerry)

Ready! You can access peagle then via:
http://localhost:7324/

(Please see the "Settings"-Page for further configuration-options)

Have Fun!
Martin
Last changelog:

11 years ago

Changes in 0.2.1:
- Implemented Charset-Selection (Thanx to ak6783 @kde-apps for the hint)
- Changed Gnome-Execution (Thanx to schmidt @kde-apps for the solution)
- Web-History-Abstract for Firefox
- Peagle now Daemonizes itself
- Implementation of mailcap to execute applications
- Improved control and settings (now entirely over the web-interface)
- Custom execution application: Define your own run-directive

dkoster

8 years ago

I have the same problem as markmoore.
Even worse: the psiplus site is now a parked domain. Is Peagle still alive and supported?

Report

linuxunion

8 years ago

I got this result too.
I use ubuntu 9.04 server,beagle0.3.9
I don't know what's the problem?How too fix it?

Thanks

Tommy Lee

Report

markmoore

8 years ago

I have tried Peagle twice on different machines with the same results. When I search for anything at all, Peagle shows me "Unknown." Can someone lend a hand at understanding why this happens?

Peagle is implemented on Ubuntu Server 8.10.

Thank you,
Mark

Report

skatox

9 years ago

Does this work with beagle 0.3.x ??? it doesn't work for me and Webinterface don't give me access from other machine.

Report

agelospanagiotakis

9 years ago

how can i add authantication from the apache web server?
I tryed with an .htaccess file bu did not do the job.
Can i add an authantication of any type in this ?
Mark this as a Feature request!

Report

pavan84

10 years ago

i have installed and configured peagle and its..working fine..but when i try to run that peagle page from a remote machine....i was not able to access can any one help me regarding this issue.

Report

melchi

10 years ago

Hi,

Go edit your settings.php. by default it would have the host address as 127.0.0.1, change it to the address of its interface card. (say 192....)

Report

bugmenot

10 years ago

Me again... A good feature for Peagle would be advanced search. Like search audio based on tags (genre, album, year) i know it automatically searches them, but it would be cool if you could specifically search in those fields.
thanks,
Scruff

Report

bugmenot

10 years ago

Ok, i dont have an account on this site so i'm using bugmenot account. It took me a long time to figure out what the hell i was doing wrong, and it turns out i wasn't doing anything wrong. This is a real hack, but this is how i got network access of my files.

I really only needed LAN access, so thats what i set it up as. The fileserver was set for \\SambaServer\ through samba. I used beagle/peagle to do searching and then had it link to the files through samba sort of.

I had to edit two things. First, edit peagle or peagle.php (i still dont know the difference).
Change the function link_open to add a line similar to this: Quote:$url=str_replace("/home/","////SambaServer",$url);

so it should look like this:

Quote: function link_open($url)
{
global $set; $url=str_replace("/home/","////SambaServer/",$url);
switch($set["desktop"])
{
case "kde":case "gnome":case "mailcap":case "custom":return("/open?o=".rawurlencode($url));break;
case "link":return($url);break;
}
}

The four slashes are for the two slashes before a network link. Of course, i'm sure you could replace that ////SambaServer part with something like an IP address if you allowed web access, but for me, i didn't need web access.

The second part of this is to edit the mod_file.php file. I may not be covering everything, but all i wanted to do was to be able to open music files while browsing.

in there, edit the line that says Quote:<div class="headline"><a href="<?=htmlentities(link_open($a["Uri"]))?>"><?=highlight(htmlentities($a["beagle"]["ExactFilename"]))?></a></div>


to be

Quote:<div class="headline"><a href="<?=(link_open($a["Uri"]))?>"><?=highl.......etc
so you are just taking out the htmlentities part of it. I actually don't remember why i did that, you probably could leave it in. I just don't like all that %20 stuff. Whatever, i had never used php or html before today.

I wish this project was supported more. It really needs to be. If any of you make progress, figure something out, or write better code, email me at Scruff323 {{[at--}}] g------mail.com

Report

jonwatson

10 years ago

Hello,

I know this isn't the Beagle place, but I can't find any generic Beagle forums to ask questions in.

I'm trying to get Beagle/Peagle to work, but Beagle never finds anything.

I'm running Beagle of a server without X. Is that possible or is this why Beagle is failing?

Thanks

Report

Lupine925

10 years ago

Not sure why a PHP application is on a KDE-Apps site, however...is this a dead project? I've been trying to get this working, with no luck. The author's site has been down for a while now.

Anybody have an updated version of the peagle.php file?

Report

supercows

10 years ago

The script is working, but you must have the right software installed..

What errors do you have?

It's a nice script, I hope that someone takes it up. I put some small changes to the script because we use it on a novell network as a small google server :D It still need some fine tuning

Report

k3nz0o

10 years ago

[rama@RAMA peagle-0.2.1]$ ./peagle
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/pdf.so' - /usr/lib/php/extensions/pdf.so: undefined symbol: _zval_copy_ctor in Unknown on line 0
PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/rama/Download/BEAGLE/peagle-0.2.1/peagle.php on line 250

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/rama/Download/BEAGLE/peagle-0.2.1/peagle.php on line 250
PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/rama/Download/BEAGLE/peagle-0.2.1/peagle.php on line 423

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/rama/Download/BEAGLE/peagle-0.2.1/peagle.php on line 423
PHP Fatal error: Call to undefined function pcntl_fork() in /home/rama/Download/BEAGLE/peagle-0.2.1/peagle.php on line 506

Fatal error: Call to undefined function pcntl_fork() in /home/rama/Download/BEAGLE/peagle-0.2.1/peagle.php on line 506

Report

supercows

10 years ago

Try to install php-pcntl, this will probaly solve your problem

Report

supercows

10 years ago

And set allow_call_time_pass_reference to On in your php.ini.

Look at the errors, the give the solution :)

Report

thomsey

11 years ago

Hello,

great program!

I am trying to modify peagle.php so that it sends the result file to the client.
I have programed this procedure, but do not know if and where I can implement it.

function servefile ($url) {
// get filename and path
$file_name = basename($url);
$file_path = pathinfo($url, 1);

// send the necessary headers.
// i found that these work well.


header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=$file_name");

header("Content-transfer-encoding: binary\n");
header("Content-length: " . filesize($file_path.$file_name) . "\n");

// open the file for reading and start dumping it to the browser

$fp=fopen($file_path.$file_name, "r");
fpassthru($fp);


}

Markus, vielen Dank im Voraus fuer Deine Hilfe/thanks for your help. Anyone else have any ideas?

Sven

Report

stevelinton

11 years ago

Peagle seems great.

A few "wishlist" items:

* categorisation of results -- web pages, conversations, documents. I'd like to see the top few in each category, and be able to filter by category and so on.

* A firefox search plugin.

Report

emeyal

11 years ago

Hi,
I am trying to use Peagle on Fedora FC5.
I manage to open Peagle on localhost:7324, but it doesn't seem to do the indexing. On the comman-line screen I get the message:
# PHP Notice: Undefined index: query in /var/www/html/peagle-0.2.1/peagle.php on line 584

Any ideas?
Thanks, Eyal

Report

C

PSIplus

11 years ago

Hi!

Currently you have to start the beagled on your own, and configure it with the tools shipped with beagle... In future it will be possible to do this with peagle itself, but intil then you got to do it yourself

Martin

Report

Ded

11 years ago

Hi, peagle is beautiful, good job!

I want to use it on my intranet so I've install on a main server, it's working no problem.

The search is ok, and when I search a document whith a client, not on the main server, and I clic on the link to the document, the document will be opened on my main server.

For example the link is:
http://192.168.20.25/open?o=file:///home/admin/doc.odt
And for this example openoffice open on my server and not on my client.

My server is a debian unstable, I run beagle 0.2.6-1.

What can I do to redirect the output on my client or what didn't I do?

Report

C

PSIplus

11 years ago

Hi!

Yep, this is possible, but I haven't implemented this yet - The Process of sending a file is pretty easy, but the app is working right now with only one process, witch makes this feature quite uncomftable to use...

But I planned it for some time, maybe I'll take the evening and do it when I find the time ;-) (in fact it's not so hard to do, but I've a lot of stress at moment)

Martin

Report

Ded

11 years ago

Thanks for your response!

I didn't know this function was not implemented, I was thinking it'was an error of my installation.

It's all right so, it's not a probleme to wait ;)

It's just too bad i'm not a php coder...

Thanks a lot for your present job.

Report

pavan84

10 years ago

hi can any one say how to install peagle on intranet.....and one more thing i tried it on my desktop (ubuntu) installed php and configured and tried to run ./peagle its runnin the entire script ..... and the http://localhost:7324/ is saying unable to connect...plzz do reply

Report

ak6783

11 years ago

Hi,
Thanks you for respond.
When I run peagle.
It's have a follow error message:
Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /root/peagle-0.2.1/peagle.php on line 250
I has set call_time like a follow:
: - allow_call_time_pass_reference = TRUE [Code cleanliness]
This is setting is all right?
Thanks a lot.

Report

ak6783

11 years ago

Hi,
When I run peagle.php or peagle.
I found a follow error message:
[root@index peagle-0.2.1]# PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /root/peagle-0.2.1/peagle.php on line 250
PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /root/peagle-0.2.1/peagle.php on line 423
PHP Warning: socket_bind(): unable to bind address [98]: Address already in use in /root/peagle-0.2.1/peagle.php on line 517
Server ready.
Is it normal status?
Thanks you.

Report

11 years ago

Changes in 0.2.1:
- Implemented Charset-Selection (Thanx to ak6783 @kde-apps for the hint)
- Changed Gnome-Execution (Thanx to schmidt @kde-apps for the solution)
- Web-History-Abstract for Firefox
- Peagle now Daemonizes itself
- Implementation of mailcap to execute applications
- Improved control and settings (now entirely over the web-interface)
- Custom execution application: Define your own run-directive

product-maker 18 63

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.2.1
updated Apr 25 2006
added Apr 23 2006
downloads today
0
page views today 2