OpenWetWare:Administration/Wikitex

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:
 * 1) useradd -M -s /sbin/nologin wikitex


 * To prevent legitimate files from exceeding the disk quota, set up a crontab to purge unused files.
 * 1) crontab -u  wikitex.cron


 * Remove any WikiTeX cruft from /etc/sudoers, and issue:
 * 1) cat wikitex.sudoers >> /etc/sudoers
 * and then:


 * 1) visudo -c
 * If there are parse errors, run `visudo' and correct any mistakes.

shell_escape = f openout_any = p openin_any = p
 * Edit /usr/share/texmf/web2c/texmf.cnf, modifying the following variables:


 * as root, run:
 * 1) ./wikitex-audit.sh
 * until you get rid of all errors


 * extensions/wikitex/wikitex-decruft.sh must be readable by  since this account is used to run the decruft script via the cron job (wikitex.cron)