This is a conversation we had with @jamesk earlier this year @jeremy . You gave a script so that we could use the host device as both a server and a client. However when the module GCF is compiled there are duplicate videos in the /var/www/modules/en-GCF2015/content/ref_videos directory. I have attached a screenshot of what im seeing. It has almost doubled the size of what this directory is suppose to be.
Also @jamesk do you think there will be any issues with the python 2.7 being discontinued? When running the script python no longer works. I was able to run it with python3 package but still getting errors involving syntax and other packages downloading
Hi @david.gomez – that module in particular is maintained by the GCF Learn Free team directly. I will let them know and see how they want to handle it. Thank you!
Ok thanks @jeremy. Looking forward to hearing from them!
Are you installing en-GCF2015 through the admin interface or downloading it from oer2go.org?
I just checked the world possible server copy of en-GCF2015 by listing the files and there are only MP4 files. That’s what gets installed when you install modules through the RACHEL admin interface. The only way I can see FLV files being there is if the oer2go copy has them or some local utility installed is converting all of them. I always recommend using the install page because it gets the latest version.
I think the only python specific issue with the install script that needs to be changed is around the print function which prints out messages. It just needs parentheses so
I have changed that in recent RACHEL-Pi installation scripts. The main issue with installers is you can’t really predict what packages will be changed and what is removed on their end. Sometimes they add new settings or warnings that you have to automate a response to. When PHP gets updated the path for stem.so changes, sometimes php code has to be changed, etc. Even though it’s automated it’s still very specific to the date it’s run and I don’t think there’s a way around it. If you ever need an updated installer just let me know and I’ll look at it. I’ll update the installer today and let you know when a new one is up.
Im downloading en-GCF2015 from the oer2go.org. I am not able to use the admin feature. I think had to do with how we are using Rachel-pi with the script. In order to update the modules we have to run the script again, and it looks like it delete the directory and reinstalls all modules.
So you are correct, I just changed the print functions that were in the script however I was able to downgrade to 2.7 but I had to update /var/apt/sources.list when using 18.04.3. I think the issue (besides the parenthesis when running the script with python3) had to do more with the sources.list not letting me apt-get packages. If you do update using python3 I would love to use the script. Thanks again James!
The en-GCF2015 issue is likely with the oer2go.org module zip then. The FTP and probably oer2go zipped modules have some issues like doubled content and embedded duplicate folders but that looks like it might have been left in when transitioning from flv to mp4 or something.
Are you using some other process than just the Ubuntu install script to install RACHEL to these devices? I tailored the installer I posted specifically to the latest Ubuntu LTS at the time and made quite a few changes to support Ubuntu so there shouldn’t be anything involving the RACHEL-Pi. I still have the Ubuntu VM I tested with and just now tested installing a module and it installed properly. I think it would be best to figure out why that’s not working for you.
Okay so I’ve updated the Ubuntu local installer. There weren’t any changes required for it to install but I changed the print() function, updated to the download the latest Kiwix, and made a few minor changes. I tested with a fresh installation of Ubuntu 18.04.3 using ubuntu-18.04.3-desktop-amd64.iso.
- Install Ubuntu 18.04-3
- Open a terminal and run the following commands
- sudo apt-get update
- sudo apt-get upgrade
- sudo reboot now ( to reboot the system )
- Download ubuntu_local_10_08_2019.zip
- Unzip it and place the installer directory in the /var/tmp directory
- Open a terminal and run the following commands
- cd /var/tmp/installer
- sudo python3 installer.py
- When the installation completes run “sudo reboot now” to reboot the system
That should be it. When you reboot you should be able to access rachel at http://rachel or http://www.rachel.com. If you click the admin interface you should be able to log in and install modules if you’re connected to the internet.
Thanks a lot, @jamesk will try it out now and tell you how it goes. Also, should I be able to use the admin feature on the browser to manage the modules or will I have to run the script every time I want to update the modules?
You’re welcome. The script is meant as one time thing for the initial installation. It expects a fresh Ubuntu installation. It only installs 1 module, en-kolibri-index, for accessing Kolibri. When you navigate to RACHEL in your browser you press the admin button and then log in with “admin/Rachel+1”. Once logged in you can install modules from the Install tab. You can update those modules from the Version tab if they’re updated on the RACHEL servers. The supported modules is the same as listed in this readme PDF. en-file_share isn’t included because it’s a local installation. Let me know how it goes.
Yes this worked perfect. Now I can delete the installer after initializing Rachel. The admin button worked with this one!
Great. Glad it worked.