Here's a step-by-step guide to enable GeoGebra applets offline on MoodleBox.
Open your Moodle installation, go to Site administration > Plugins > Install plugins and choose plugin GeoGebra plugin (mod_geogebra
) from the Moodle plugin database.
As the plugin is not yet officially compatible with Moodle 4.x, you must download it and install it manually.
Note: Other GeoGebra plugins do NOT work, because they do not give the possibility to select an offline (local) GeoGebra codebase.
Download the GeoGebra codebase on the MoodleBox
This step requires to log into the MoodleBox via SSH to download fflate
and the GeoGebra codebase.
ssh moodlebox.home
wget -c https://unpkg.com/fflate -O fflate.js
wget -c https://download.geogebra.org/package/geogebra-math-apps-bundle -O geogebra-bundle.zip
unzip geogebra-bundle.zip
We now copy the GeoGebra codebase to an appropriate location on the MoodleBox and set the correct permissions.
mkdir -p /var/www/moodle/lib/GeoGebra/
mv fflate.js /var/www/moodle/lib/GeoGebra/
mv GeoGebra/* /var/www/moodle/lib/GeoGebra/
sudo chown -R www-data /var/www/moodle/lib/GeoGebra/
sudo chmod -R g+w /var/www/moodle/lib/GeoGebra/
Configure the settings of the GeoGebra plugin
Go to GeoGebra plugin settings in Moodle: http://moodlebox.home/admin/settings.php?section=modsettinggeogebra and set the 3 paths to
- URL for GeoGebra distribution (
deployggb
): /lib/GeoGebra/deployggb.js
- GeoGebra codebase location (
codebase
): /lib/GeoGebra/HTML5/5.0/web3d
- URL for fflate distribution (
fflate
): /lib/GeoGebra/fflate.js
Save, you're done 🥳