OpenWetWare:Administration/Wikitex
From OpenWetWare
(Redirected from User:Ilya/OpenWetWare/Wikitex)
References
Prerequisites
(for the beta from README in the wikitex distribution):
- PHP 5.1.0+
- MediaWiki 1.6alpha1+
- LaTeX
- ImageMagick
- dvipng
- sudo v1.6.8 with support for NOEXEC compiled in (verify by sudo -V), either:
- build from source, or
- RPM that worked for RHEL4
- GhostScript (part of RHEL4) - required by dvipng
- libgd (gd, part of RHEL4) - required by dvipng
- cd /usr/lib; ln -s ./libgd.so.2.0.0 ./libgd.so gd.h, etc (gd-devel, part of RHEL4)
- Gnuplot - plot
- Graphviz - graph
- xymtex - chemical structure diagrams
- gschem - electronic schematics
- Lilypond - music notation
Installation
- Create the user wikitex:
# useradd -M -s /sbin/nologin wikitex
- To prevent legitimate files from exceeding the disk quota, set up a crontab to purge unused files.
# crontab -u <apache-user> wikitex.cron
- Remove any WikiTeX cruft from /etc/sudoers, and issue:
# cat wikitex.sudoers >> /etc/sudoers
- and then:
# visudo -c
- If there are parse errors, run `visudo' and correct any mistakes.
- Edit /usr/share/texmf/web2c/texmf.cnf, modifying the following variables:
shell_escape = f openout_any = p openin_any = p
- as root, run:
# ./wikitex-audit.sh
- until you get rid of all errors
- extensions/wikitex/wikitex-decruft.sh must be readable by <apache-user> since this account is used to run the decruft script via the cron job (wikitex.cron)