Editing Evopedia
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Evopedia is an offline Wikipedia viewer. It allows to search for articles based on their title or the geographic location on a map. If there is a connection to the internet, even images are displayed. | Evopedia is an offline Wikipedia viewer. It allows to search for articles based on their title or the geographic location on a map. If there is a connection to the internet, even images are displayed. | ||
- | + | Apart from the software you also need to download a specially prepared dump of the articles available here. | |
- | + | ||
== Dumps == | == Dumps == | ||
Line 30: | Line 29: | ||
== Tweaks == | == Tweaks == | ||
- | Evopedia creates a configuration file at | + | Evopedia creates a configuration file at /home/user/.evopediarc when it is first started. Most of the options are self-explanatory. |
By changing listen_address to 0.0.0.0 you (or anybody else, so be careful) can also access evopedia from a different computer using the url http://<ip adress of your device>:8080/ | By changing listen_address to 0.0.0.0 you (or anybody else, so be careful) can also access evopedia from a different computer using the url http://<ip adress of your device>:8080/ | ||
Line 50: | Line 49: | ||
==== 1. install needed software (please add packages if I forgot some): ==== | ==== 1. install needed software (please add packages if I forgot some): ==== | ||
- | + | apt-get install php5-cli php5-mysql python mysql-server mysql-client wget zip tidy git-core texlive texlive-math-extra | |
On some distributions, texlive must be replaced by tetex and texlive-math-extra by tetex-extra | On some distributions, texlive must be replaced by tetex and texlive-math-extra by tetex-extra | ||
==== 2. download evopedia source code ==== | ==== 2. download evopedia source code ==== | ||
- | + | ||
- | + | git clone git://github.com/crei/evopedia.git | |
- | + | ||
- | + | ||
==== 3. adjust settings ==== | ==== 3. adjust settings ==== | ||
- | Set php's memory_limit to some higher value (128 MB) in | + | Set php's memory_limit to some higher value (128 MB) in /etc/php5/cli/php.ini (or similar) |
Create empty mysql database and grant all rights to some user - | Create empty mysql database and grant all rights to some user - | ||
Line 70: | Line 67: | ||
mysql> grant all privileges on wikidb.* to thomas@localhost identified by 'x1lx'; | mysql> grant all privileges on wikidb.* to thomas@localhost identified by 'x1lx'; | ||
- | Edit paths and database settings in | + | Edit paths and database settings in dumpscripts/createdump.sh |
(especially: dbuser, password, REPODIR, DUMPDIR) - make sure DUMPDIR points to area with plenty of space | (especially: dbuser, password, REPODIR, DUMPDIR) - make sure DUMPDIR points to area with plenty of space | ||
Change the dump language ("de" in "for" statement at bottom of dumpscripts/createdump.sh) | Change the dump language ("de" in "for" statement at bottom of dumpscripts/createdump.sh) | ||
- | Make | + | Make ~/evopedia/evopedia/evopedia/*.py files executable (chmod a+x ...). |
==== 4. start the dump process ==== | ==== 4. start the dump process ==== | ||
- | call | + | call createdump.sh |
(Don't be too optimistic though. After part of the day the database is filled with several gigabytes of downloaded wikipedia content, but something is broken and the final dump gives no results.) | (Don't be too optimistic though. After part of the day the database is filled with several gigabytes of downloaded wikipedia content, but something is broken and the final dump gives no results.) | ||
[[Category:Software]] | [[Category:Software]] |
Learn more about Contributing to the wiki.