I'm having a problem where Raspberry Pi Imager aborts the copying of a MoodleBox image because my internet connection is too slow. I'm probably not the only one with this issue worldwide.
My solution to the interrupted download is to download the image using wget in the terminal. The -c parameter stands for "continue" and is only important for a second wget command. If the wget command is interrupted, it resumes the download from exactly where it left off when called again, ensuring the image file is downloaded to the computer even under adverse conditions.
wget -c https://github.com/moodlebox/moodlebox/releases/download/v4.12.0/moodlebox-4.12.0.img.xz
And this is where the next problem begins. With the current Raspberry Pi Imager 2.0.12, it's not possible to configure username, password, timezone, keyboard settings, or enable SSH when copying a locally stored image file. If I copy the image file without these settings, I get a working MoodleBox, but I have no access to the terminal or an SSH connection. Okay, many users enjoy using MoodleBox even without operating system access, but I'd like to have it. Furthermore, I want to upload files larger than 50 MB via SFTP... and SSH is required for that as well.
One solution could be to use an older version of Raspberry Pi Imager 1.9.6 for copying. With that version, the necessary settings can be configured even for a locally stored image file.
However, I was also able to achieve this with Raspberry Pi Imager 2.0.12. It's crucial to insert the microSD card back into the computer after copying. I need to create an empty file named ssh in the bootfs directory to activate the SSH connection. Then, I insert the microSD card into the Raspberry Pi and start it. As mentioned earlier, connecting to the MoodleBox Wi-Fi and accessing the Moodle homepage via http://moodlebox.home/ is straightforward. Logged into Moodle with the user account moodlebox, I have administrator privileges and can reset the password for the system user moodlebox in the MoodleBox dashboard. The system user moodlebox exists even if it's not configured in the Raspberry Pi Imager; only its password is unknown. Here, I can set it to Moodlebox4$ or choose any other password I prefer.
That's it! I can now connect to MoodleBox again via SSH and SFTP.