Translate

miércoles, 11 de noviembre de 2020

Instalación de MathJax 2.7.9 para Moodle en CentOS 6

 El MathJax sirve como sustituto de Tex, pero por omisión no viene correctamente configurado ( al menos en la versión 3.2.9 de Moodle ) ya que se agregaron y modificaron los paths en la versión 3 de MathJax, por lo que puede que no funcione la configuración por omisión.

 

Se recomienda bajar el MathJax y accederlo localmente.

1. Bajar como root el MathJax 2.7.9 de:

https://github.com/mathjax/MathJax/releases

https://github.com/mathjax/MathJax/releases/tag/2.7.9

Por ejemplo:

https://github.com/mathjax/MathJax/archive/2.7.9.tar.gz 


cd /var/www/html

mkdir ajax

wget https://github.com/mathjax/MathJax/archive/2.7.9.tar.gz

tar xvfz MathJax-2.7.9.tar.gz

 

2. En Moodle en:

 Administration->Site administration->Plugins->Filters->MathJax :

Poner en :

MathJax URL:     https://<hostname>/ajax/MathJax-2.7.9/MathJax.js

TeX filter compatibility:  (Check ) 


En : Administration->Site administration->Plugins->Manage Filters


Verificar que esté activado MathJax y que tenga precedencia sobre Tex.

Verificar también que esté activo el filtro enel curso en:


Administration->Course administration-> Filters



Instalación de STACK plugin para Moodle en Centos 6

 Instalación de STACK plugin para Moodle en Centos 6

 Nota: Solo ha funcionado con Maxima versión 5.36.1 . No se logró hacer funcionar ni con versiones previas, ni con versiones posteriores.

Verificado en :

$ distro
Name: CentOS release 6.10 (Final)
Version: 6.10 (Final)
Codename: Final

 $ rpm -qv maxima maxima-gui maxima-runtime-sbcl sbcl wxmaxima php httpd postgresql
maxima-5.36.1-2.el6.x86_64
maxima-gui-5.36.1-2.el6.x86_64
maxima-runtime-sbcl-5.36.1-2.el6.x86_64
sbcl-1.0.38-3.el6.x86_64
package wxmaxima is not installed
php-5.6.40-22.el6.remi.x86_64
httpd-2.2.15-69.el6.centos.x86_64
postgresql-8.4.20-8.el6_9.x86_64



Configuración de Moodle:

Moodle 3.2.9 (Build: 20180517)

Configuración de STACK:

STACK
qtype_stack
4.2 for Moodle 3.0+

 

Platform type:                     ( Linux optimized)

Maxima version:                 default

20

CAS result caching:            Cache in the database

Maxima command:            /home/ext-root-fs/var/www/moodle/data/stack/maxima_opt_auto  -eval '(cl-user::run)'           

Maths filter:                       Moodle Tex filter

 

Ejecución optimizada de Maxima.

Después de ejecutar STACK Healthcheck, es necesario generar el ejecutable optimizado de maxima con el botón: 'Create Maxima image'

 

Reporte de funcionamiento ( STACK Healthcheck):


unix-optimised
OKYou have chosen the "default" version of Maxima, so no Maxima version checking is being done. Your raw connection is actually using version "5.36.1" (36.1). CAS returned data as expected. You have a live connection to the CAS.
OKCorrect and expected STACK-Maxima library version being used (2018073000).

CAS results are being cached in the database.

 

 Creación de RPMs de maxima:

http://rpms.remirepo.net/rpmphp/zoom.php?rpm=maxima

wget http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/22/SRPMS/m/maxima-5.36.1-2.fc22.src.rpm

rpm -ivh  maxima-5.36.1-2.fc22.src.rpm

cd ~/rpmbuild/SPECS

rpmbuild -bb  maxima.spec

cd ../RPMS/x86_64/

sudo rpm -ivh maxima-5.36.1-2.el6.x86_64.rpm maxima-gui-5.36.1-2.el6.x86_64.rpm  maxima-runtime-sbcl-5.36.1-2.el6.x86_64.rpm


 

Referencias:

Instalación en CentOS

https://moodle.org/mod/forum/discuss.php?d=270956 

Instrucciones de instalación:

https://lab.anahuac.mx/moodle/question/type/stack/doc/doc.php/Installation/index.md

Optimización de ejecución de Maxima

https://lab.anahuac.mx/moodle/question/type/stack/doc/doc.php/CAS/Optimising_Maxima.md