July 13, 2019

Install Open edX Using Method Native Installation | Ubuntu 16.04

Activities, Android Developer, Ansible, Apache2, Atlassian, Ayo Belajar Linux, Bestpath Network, BLC Telkom Klaten, BSD, Caddy Server, Case Study, Cisco, Cisco Indonesia, Cloud Computing, Cockpit, Custom Weapons, Docker, E-Learning, Engenius, Error, FreeBSD, FreeBSD Indonesia, Komunitas Pengguna Linux Indonesia, KPLI Bulukumba, KPLI Klaten, Lets Encrypt, Linux, MacOS, Microsoft Azure, Microsoft SQL Server, MikroTik, MikroTik Indonesia, MySQL, Nginx, Open edX, OpenSID, Others, PHP, phpMyAdmin, PostgreSQL, Proxmox, Python, Redash, Sendy, SSH, Stories, Subnetting, TP-Link, Ubiquiti, Unix, Virtualization, Windows, X-Mosque, Faizar Septiawan, Icar, siBunglonGanteng, Orang Ganteng, siBunglonLabs, Programmer, SysAdmin, Site Reliability Engineer, Developer, Palugada, Makassar, Ganteng, Gila, Cyclist, Panglima, Setan, Panglima Setan, sibunglon, 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