Instructions for installing MathTex on Ubuntu:


ITEMACTION
Download mathtex.zip
Install
  1. Unzip to:
    /usr/lib/cgi-bin
  2. Compile:
  3. cc mathtex.c -DPNG -DLATEX=\"$(which latex)\" -DDVIPNG=\"$(which dvipng)\" -o mathtex.cgi
Test http://localhost/cgi-bin/mathtex.cgi?x^2+y^2
Ref http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference