updated July 2013
version 0.99 alpha
author Marcin Magnus (mag_dex@o2.pl)
license GPLv3
https://github.com/m4rx9/mmfinder
See http://www.youtube.com/watch?v=-oQ998IWwTc
See mmfinder at PyPi https://pypi.python.org/pypi/mmfinder
-
DESCRIPTION
-
INSTALLATION
-
CONFIGURATION
-
HOW TO USE IT
-
BUGS
-
TODO
-
COPYRIGHT AND LICENSE
-
AUTHOR INFORMATION
-
DESCRIPTION =======================================
mmfinder is a wrapper to *nix commands like locate, updatedb, grep, find to help you with searching files across several machines (computers).
First, updatedb is used by mmfinder-deamon to create databases. You can define as many "databases" as you want in the ~/.mmfinder-config.py file.
The syntax is as follows:
name_of_computer (you can name it as you want!) = {
'name_of_database' : 'path_to_folder_for_database'
}
.. a real-world working example ..
computer1 = {
'dropbox' : '/home/magnus/Dropbox',
'debian' : '/home/magnus/',
'StoreJet': '/media/StoreJet',
}
.. which means if I have the StoreJet connected to my computer and I run mmfinder-deamon, a database StoreJet will be created that includes data from /media/StoreJet directory.
Next, imagine that at work, you will never mount StoreJet, but you want to create a database for your /home directory at work. You define another computer (for example, computer02 ) as follows..
computer2 = {
'dropbox' : '/home/magnus/Dropbox',
'maximus' : '/home/magnus/',
'truecrypt': '/media/truecrypt1/',
}
I hope know you get to know how to use it.
For a working example (and advance options) see config_example/mmfinder_config.py.
My recommendation is to use Dropbox (https://www.dropbox.com/home) to put your config file there and make a link (ln -s) to your home directory and set the path to your databases like ~/Dropbox/opt/mmfinder/db. You can share your settings and databases among many computer!
You can also use anything else (http://alternativeto.net/software/dropbox/) but then you need slightly change configuration file.
What is realy cool about mmfinder is that you can have pretty nice functionality related to hits of your searches.
You can:
- g(o) to a directory of hit of search,
- r(un) it,
- e(emacs it = open in emacs),
- o(pen it)
See bash-plugin.sh.
See 3 .CONFIGURATION for more!
-
INSTALLATION ======================================= To install run:
sudo pip install mmfinder
or use the source code:
git clone git://github.com/m4rx9/mmfinder.git # git is required
cd mmfinder
sudo python setup.py install
- CONFIGURATION ======================================= Main configuration
Edit ~/.mmfinder-config.py to configure the program.
Bash plugin
To use bash plugin (bash-plugin.sh) add ..
case $- in *i*)
source /home/magnus/Dropbox/workspace/mmfinder/bash_plugin/bash-plugin.sh
esac
.. to your .bashrc.
Put deamon under cron
For mmfinder-deamon you might want to use cron as following ..
00 * * * * /usr/local/bin/mmfinder-deamon
-
HOW TO USE IT ======================================= Start with the configuration, then
mmfinder -uormmfinder_deamonand search ..mmfinder -g .bashrc # search for .bashrc across all defined machines
etc..
- BUGS =======================================
Report bugs to the author.
BUGS
- [X] problem with config loading when you use version from github - [ ] problem with filenames with spaces - [ ] if a folder is found if you hit 'g' you will not get to the folder but to one folder up
- TODO =======================================
- [X] make a deb pkg - [ ] get old TODO from git repo with some TODOs :-) - [ ] check if all options works - [ ] write test script - [ ] how to promote the tool - [ ] add `tracker-search` - [ ] find similar tools and compare
-
COPYRIGHT AND LICENCE =======================================
mmfinder is Copyright (C) 2013 Marcin Magnus. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as GLP
-
AUTHOR INFORMATION =======================================
Marcin Magnus, mag_dex@o2.pl

