ralfkrause A good place for this file is a folder on the start page of the MoodleBox ... to remember the usage of this file I added a subfolder geogebra and uploaded the file deployggb.js.

First: Thanks ! Bravo πŸ™‚
Second: what do you mean by this last sentence ? What is "the start page" ? Is the subfolder created using an ftp client ?
Thanks again.

    UlrichKraus
    The start page is the frontpage of the MoodleBox http://moodlebox.home. Switch Edit mode on. Add a Moodle folder resource and a subfolder geogebra. Upload both files deployggb.js and fflate into the subfolder and save. Everything you place on the start page can be used by every user ... and also without any login.

    UlrichKraus Here a little applet I made yesterday

    The geogebra plugin only allows to upload ggb files so I renamed material-puuxpzck.zip to material-puuxpzck.ggb.

      ralfkrause You're my hero !
      Two questions tough:

      1. Once uploaded, a right-click on the deploy file does not give me the absolute link. Is there something I am doing wrong ?
      2. Where do I find th fflate file you are talking about ?
        Thanks again.

        UlrichKraus

        1. When you uploaded the files and saved the folder then you should see the folder resource. Open it and open the subfolder. Now you can right click on both files. The browser shows its content menu.
        2. Get https://www.geogebra.org/apps/deployggb.js in your browser and save the content as deployggb.js. Get https://unpkg.com/fflate in your browser and save the content as fflate. I found both urls in the plugin admin settings as the standard for the plugin.

          ralfkrause I've already thought about this, but it's unfortunately not enough. πŸ˜₯ See here for more info.

          The problem is file deployggb.js looks for a online codebase, so it doesn't work totally offline. This will need a fix in the GeoGebra Moodle plugin. I'm working on a pull request.

            Well well well.
            It seems to work just fine, but I was not able to see it until I switch from Firefox to Safari ?!
            Also, it is not supported by the iOS Moodle app, which is not that important if you let students use their browsers.
            Again thanks a lot !
            This conversation should lead to a tutorial on the Moodle Box site πŸ™‚

              ralfkrause I know πŸ™‚ It is just a proof of concept, since I only began to make geogebra applets yesterday. I have much more ambitious ideas upcoming πŸ™‚)

              UlrichKraus Well well well. It seems to work just fine (…)

              Are you sure your browser has not a cached copy of the codebase? Try please after having flushed your cache.

                UlrichKraus
                No, geogebra is an additional plugin without any Moodle app support. You need to use the geogebra things in a iPad browser.

                UlrichKraus
                The geogebra plugin comes without any Moodle app support. So you must use the browser for all geogebra things.

                Nicolas I will the wait for this update.
                Till then, I will work on my courses hoping it'll work when I am done
                Thanks to both of you.

                Edit: the following procedure is not needed any more, since the current version of the plugin, released March 21, 2023, has the feature of setting a local codebase (my PR, was accepted πŸ˜ƒ ).

                See this HOWTO to enable offline GeoGebra on your MoodleBox.

                1. Install GeoGebra plugin
                2. Edit the plugin code following the diff here. Be very very precautious, this could brick your Moodle installation. You're on your own πŸ˜‰
                3. Download fflate and GeoGebra codebase to your MoodleBox and unzip the 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
                4. Create a folder where to put these files: mkdir -p /var/www/moodle/lib/GeoGebra/
                5. Move fflate.js there: mv fflate.js /var/www/moodle/lib/GeoGebra/
                6. Move GeoGebra codebase there too: mv GeoGebra/* /var/www/moodle/lib/GeoGebra/
                7. Fix ownership and permissions:
                  sudo chown -R www-data /var/www/moodle/lib/GeoGebra/
                  sudo chmod -R g+w /var/www/moodle/lib/GeoGebra/
                8. Go to GeoGebra plugin settings in Moodle: http://moodlebox.home/admin/settings.php?section=modsettinggeogebra
                9. Set the 3 paths to
                  • deployggb: /lib/GeoGebra/deployggb.js
                  • codebase: /lib/GeoGebra/HTML5/5.0/web3d
                  • fflate: /lib/GeoGebra/fflate.js
                10. Save, you're done πŸ₯³

                  Nicolas That's what I thought: way above my pay grade πŸ™‚
                  I think I'll keep this on my todo list for a while, until I understand everything you said.
                  Just a question though: if the moodlebox "bricks",, does it just mean that I have to flash a new SD card and upload my courses or does something worse happen ?
                  Thanks

                    Nicolas
                    Are you sure that the additional files must stay in the lib folder? When we install the geogebra plugin in a normal way then the plugin will be in the folder moodle/mod/geogebra. Could it be better to install the additional files inside this folder?