Search Machine for Ubuntu machine

Ted Hilts thilts at mcsnet.ca
Fri Aug 29 18:31:13 UTC 2008


Karl Larsen wrote:
> Ted Hilts - Thunderbird Acct. wrote:
>   
>>  I have Ubuntu 7.10 and would like to get an open source search engine 
>> which I can use on this machine.  I would like to tell it what hard 
>> drive and/or directory to search and tell it to search for a file and/or 
>> contents of a file.  It would also be nice if it was written in perl or 
>> java or java script or python or some other script or language but not 
>> compiled.  Even a bash shell with bash commands. Also, I would like it 
>> to be a server so clients from other machines (like XP) could access the 
>> search  domain.  I suppose I could use a browser as client which gives 
>> Apache a CGI script with the results back to the browser but I  am 
>> hoping not to develop  this application but rather (at least initially) 
>> to pick up a search application ready to go.
>>
>> Thanks -- Ted.
>>
>>
>>
>>   
>>     
>     Open a Terminal and type locate filename
>
>
> Karl
>
>
>   

Karl:

I did a "man filename locate" which returned...

slocate - Security Enhanced version of the GNU Locate

SYNOPSIS
       slocate [-qi] [-d <path>] [--database=<path>] <search string>
       slocate [-i] [-r <regexp>] [--regexp=<regexp>]
       slocate   [-qv]   [-o   <file>]  [--output=<file>]  slocate  [-e  
<dir1,dir2,...>]  [-f
       <fstype1,...>] <[-l <level>] [-c] <[-U <path>] [-u]>
       slocate [-Vh] [--version] [--help]

DESCRIPTION
       Secure Locate provides a secure way to index and quickly search 
for all files  on  your
       system  regardless  of  ownership. It uses incremental encoding 
just like GNU locate to
       compress its database to make searching faster, but it will also 
check file permissions
       and  ownership  before displaying matched entries so that users 
will not see files they
       do not have access to. Note that permissions  and  ownership  
are  not  stored  in  the
       database.

I think this will do the job but I will have to do some tests.  I will 
get back to you in a few days.  I might be able to implement a shell as 
a wrapper and then use the above command options in conjunction with 
other concerns.

Thanks Karl for the suggestion -- Ted





More information about the ubuntu-users mailing list