Your own local search engine.

There are times when you would want to have a local search engine capable of indexing even pdf and doc files. So here is a solution.

You can use “Omega” and here are the instructions.

download omega from http:// xapian.org/download

yum install xapian libuuid-devel

And then make and install omega and for this you can follow the instructions.

Federated Search Engine Diagram
Federated Search Engine Diagram (Photo credit: Wikipedia)

Create index using command omindex
and then you can use quest or search.py to search or you can setup the cgi way so that you can use local browser to search.

You can setup cron with following to update the index regularly:

omindex -p --db /var/lib/omega/data/default --url /URL /path/to/index
Enhanced by Zemanta

uptimed – keep track of your system uptime.

Uptimed is an up time record daemon keeping track of the highest
up times the system ever had.

Uptimed has the ability to inform you of records and milestones
though syslog and e-mail, and comes with a console front end to
parse the records, which can also easily be used to show your
records on your Web page

Installation :

sudo yum install uptimed

Once installed, you will have to first create the boot id with this command:

uptimed -b

After you have done that, you can see the boot records with the following commands:

uprecords
# Uptime | System Boot up
—————————-+—————————————————
-> 1 0 days, 00:37:05 | Linux 3.3.0-4.fc16.i686 Sun Apr 1 12:30:32 2012
—————————-+—————————————————
NewRec 0 days, 00:37:04 | since Sun Apr 1 12:30:32 2012
up 0 days, 00:37:05 | since Sun Apr 1 12:30:32 2012
down 0 days, 00:00:00 | since Sun Apr 1 12:30:32 2012
%up 100.000 | since Sun Apr 1 12:30:32 2012

And if you want to see the same on you web-server then just copy the uprecords binary to your cgi-bin direcotry and you are done.

Enhanced by Zemanta