If the image you’re using has a desktop interface we can do this another way. If you only get a terminal ( black screen with text ) you can do it this way.
Boot up your pi with the USB flash drive attached to it. Log in with the username “pi” and the password “rachel”. Then do the following commands once you’re logged in by typing them out and then hitting enter.
- “sudo mkdir /media/usb”
- “sudo chown pi:pi /media/usb”
That created a directory called usb inside of the /media folder. Now you need to find your USB flash drive.
- Look for your USB flash drive in the list of devices. Next to it you should see something like “/dev/sda1”. This is the name we need.
- “sudo mount /dev/sda1 /media/usb -o uid=pi,gid=pi” where /dev/sda1 is the one that was next to your drive in the list.
If that worked properly the drive is now mounted so you can access it. Now you need to transfer the folder with these commands.
- “sudo cp -R /media/usb/en-kalite-ess /var/www/modules”
- “sudo chown www-data:www-data /var/www/modules/en-kalite-ess”
This will take a while to finish. If that worked the folder will now be in the right place and set up properly. If the module you’re transferring is ka-lite you’ll need to do this extra step to get it running.
- “sudo sh /var/www/modules/en-kalite-ess/install.sh”
That should be it. For any other modules just change the folder name. One thing to look out for is that the downloaded zip files sometimes have two folders in them and the content is doubled so make sure only one folder is there. Once you get the hang of it it’s a lot easier. You can always flash the image again if something goes wrong but there shouldn’t be anything that breaks it in any of these commands.