Install OpenEdx on Ubuntu server 20.04 (Tutor installation)
Install docker
$sudo apt update -y && sudo apt upgrade -y
$sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release
$curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
$echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$sudo apt update -y && sudo apt upgrade -y
$sudo apt-get install docker-ce docker-ce-cli containerd.io
#Verify that docker is install properly
$sudo docker run hello-world
#Install docker-compose
$sudo curl -L "https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$sudo chmod +x /usr/local/bin/docker-compose
#Test docker compose
$docker-compose --version
$sudo nano /etc/hosts
add
127.0.0.1 mysql
#Install Tutor
$sudo curl -L "https://github.com/overhangio/tutor/releases/download/v17.0.0/tutor-$(uname -s)_$(uname -m)" -o /usr/local/bin/tutor
$sudo chmod 0755 /usr/local/bin/tutor
$sudo tutor local launch
Answer question
website for LMS: [URL]
website for CMS: [studio.URL]
Setup DNS for
apps.[your URL]
studio.[your URL]
Set up admin account
$tutor local do createuser --staff --superuser yourusername user@email.com
(enter your password)
$sudo apt install pip
Set up gmail SMTP
#turn off default openEdx SMTP
- tutor config save --set RUN_SMTP=false
#turn on less secure App for gmail account
- tutor config save --set SMTP_HOST=smtp.gmail.com --set SMTP_PORT=587 --set SMTP_USE_SSL=false --set SMTP_USE_TLS=true --set SMTP_USERNAME=YOURUSERNAME@gmail.com --set SMTP_PASSWORD=YOURPASSWORD