ILIAS 9 for Ubuntu 22.04

Mathjax

Activate Mathjax in Browser

  • ILIAS->Administration->Third Party Software
    • Mathjax
      • Check: Activate MJ in Browser

Install Mathjax server

  • The following is deprecated. Please use the the Installation guide linkt in the Administration menu ilias/Services/MathJax/docs/Install-MathJax-Server.txt
useradd --home /opt/mathjax --shell /bin/nologin mathjax
install -d -m 755 -o mathjax -g mathjax /opt/mathjax
sudo -u mathjax touch /opt/mathjax/.bashrc
 
 
cd /opt/mathjax
sudo -u mathjax npm install https://github.com/mathjax/MathJax-node/archive/0.5.2.tar.gz
sudo -u mathjax npm install https://github.com/tiarno/mathjax-server/tarball/master
cd node_modules
ln -s mathjax-node MathJax-node
 
cd /opt/mathjax/node_modules/mathjax-node/batik
sudo -u mathjax wget https://downloads.apache.org/xmlgraphics/batik/source/batik-src-1.18.zip
sudo -u mathjax unzip batik-bin-1.8.zip
 
ln -s batik-1.8/batik-rasterizer-1.8.jar batik-rasterizer.jar
ln -s batik-1.8/lib lib
 
sudo -u mathjax touch /opt/mathjax/mathjax.js
echo "var server = require('./node_modules/mathjax-server/index.js'); server.start(8003);" >> mathjax.js
 
cd /opt/mathjax
 
cat mathjax.js
#Output must be: var server = require('./node_modules/mathjax-server/index.js'); server.start(8003);
 
sudo -u mathjax node mathjax.js
whereis node
node: /usr/bin/node
nano /etc/systemd/system/ilmathjax.service
 
#Maybe you have to adjust the node path
[Unit]
Description=ILIAS-Mathjaxserver nodebased
After=network.target
 
[Service]
ExecStart=/usr/bin/node /opt/mathjax/mathjax.js
User=mathjax
Restart=on-failure
WorkingDirectory=/opt/mathjax/
StandardOutput=null
StandardError=journal
SyslogIdentifier=ilmathjax2
 
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable ilmathjax
systemctl start ilmathjax
systemctl status ilmathjax
q
  • Activate Mathjax in ILIAS-Administration->Third party software->mathjax:

Open GWDG-Maxima-Server



No comment has been posted yet.