About Open edX
Open edX is the massively scalable learning software platform behind edX. edX is the online learning destination founded by Harvard and MIT in 2012.
edX offers high-quality courses from the world’s best universities and institutions to learners everywhere. It is the only leading MOOC provider that is both nonprofit and open source. The edX mission is to:
- Increase access to high-quality education for everyone, everywhere
- Enhance teaching and learning on campus and online
- Advance teaching and learning through research
Play with Open edX
How to use Open edX in my own environment? At this stage, we will play Open edX. Then why play instead of installing? The intention is to play here, you might find an error during the Open edX installation and that’s where you play in the command line to solve the problem.
Before doing the installation process, you need to pay attention to the system requirements needed to run Open edX:
- Ubuntu 16.04 amd64
- Minimum 8GB of memory
- At least one 2.00GHz CPU or EC2 compute unit
- Minimum 25GB of free disk, 50GB recommended for production servers
Notes: This is for the release of Ficus and newer.
If these conditions have been met, now is the time for you to play:
Run the Ubuntu server and log in using a user who has sudo (root) access.
Add some variables to Ubuntu, including variables that contain the tag Open edX release to be installed. Tag Open edX release can be seen here.
echo "export LC_ALL='en_US.UTF-8'" >> ~/.bashrc echo "export LANG='en_US.UTF-8'" >> ~/.bashrc echo "export LANGUAGE='en_US.UTF-8'" >> ~/.bashrc echo "export OPENEDX_RELEASE='the-tag/you-want-to-install'" >> ~/.bashrc
- Reload bash.
- Create a new file with the name config.yml in the desired directory and add the following script that contains LMS and open the edX Studio address. The following is an example file, please change according to the desired address:
EDXAPP_LMS_BASE: "online.myeducation.org" EDXAPP_CMS_BASE: "studio.online.myeducation.org"
Notes: But if you want to use a domain, please pay attention to the use of domains for Open edX. Don’t use “edx” or “openedx” in the domain to be used, here are some examples of unacceptable domain names:
- DON’T: openedx.yourdomain.org
- DON’T: edx.yourdomain.org
- DON’T: openedxyourdomain.org
- DON’T: yourdomain-edx.com
- Update the Ubuntu package before installing Open edX.
sudo apt-get update -y sudo apt-get upgrade -y sudo reboot
After Ubuntu has restarted, please log in again using the user you used before. After logging in, please go to the config.yml file directory located.
Download and execute Bootstrap the ansible installation.
wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/ansible-bootstrap.sh -O - | sudo bash
- Download and execute Randomize passwords.
wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/generate-passwords.sh -O - | bash
- Download and execute Open edX installation.
wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/native.sh -O - | bash
- Please wait until the Open edX installation process is successful. If you find an error, congratulations on playing with other avanger😉
From steps number 7 to 9, chances are you have to wait a few minutes to proceed to the next step. To save time, you can run it using nohup with the following steps:
- Create a bash file, the name is what you want and then add the script following:
wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/ansible-bootstrap.sh -O - | sudo bash wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/generate-passwords.sh -O - | bash wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/native.sh -O - | bash
- Change the permissions for the file that was just created to be executed.
chmod +x fileName.sh
- Run the Open edX installation using nohup. When using nohup, the output file (nohup.out) is automatically created in your directory using nohup.
nohup ./fileName.sh &
- To see the development of the installation, it can be seen through the nohup.out file.
tail -f nohup.out