July 13, 2019

Install Open edX Using Method Native Installation | Ubuntu 16.04

Linux, Unix, BSD, MacOS, Komunitas Pengguna Linux Indonesia, KPLI Klaten, KPLI Bulukumba, MikroTik, MikroTik Indonesia, FreeBSD, FreeBSD Indonesia, Cisco, Cisco Indonesia, BLC Telkom Klaten, Ansible, Nginx, Apache2, Caddy Server, Ayo Belajar Linux, Cloud Computing, e-Learning, Open edX, Proxmox, Sendy, Microsoft SQL Server, MySQL, PostgreSQL, Lets Encrypt, Case Study, Atlassian, Virtualization, Faizar Septiawan, Icar, siBunglonGanteng, siBunglonLabs, Orang Ganteng

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:

  1. Run the Ubuntu server and log in using a user who has sudo (root) access.

  2. 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
  1. Reload bash.
source ~/.bashrc
  1. 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
  1. Update the Ubuntu package before installing Open edX.
sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot
  1. 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.

  2. Download and execute Bootstrap the ansible installation.

wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/ansible-bootstrap.sh -O - | sudo bash
  1. Download and execute Randomize passwords.
wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/generate-passwords.sh -O - | bash
  1. Download and execute Open edX installation.
wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/native.sh -O - | bash
  1. 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:

  1. 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
  1. Change the permissions for the file that was just created to be executed.
chmod +x fileName.sh
  1. 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 &
  1. To see the development of the installation, it can be seen through the nohup.out file.
tail -f nohup.out

Referensi