Welcome To EYouth Tutor Open edX


Requirements

curl https://pyenv.run | bash

# Export pyenv to your .bashrc/.zshrc
# open your rc file using 
vi ~/.bashrc

# append these lines at the end of the file
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

restart shell

exec "$SHELL" # Or just restart your terminal 

install pyenv to controll your python


Installtion

Docker

  1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
sudo apt-get update

sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
  1. Add Docker’s official GPG key:
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
  1. Use the following command to set up the repository:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Install Docker Engine
  • Update the apt package index, and install the latest version of Docker Engine, containerd, and Docker Compose, or go to the next step to install a specific version:
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
run docker without sudo

To create the docker group and add your user:

  1. Create the docker group.
sudo groupadd docker
  1. Add your user to the docker group.
sudo usermod -aG docker $USER
  1. Log out and log back in so that your group membership is re-evaluated.

If testing on a virtual machine, it may be necessary to restart the virtual machine for changes to take effect.

On a desktop Linux environment such as X Windows, log out of your session completely and then log back in.

On Linux, you can also run the following command to activate the changes to groups:

newgrp docker 

sudo reboot

Docker Compose

  1. Download docker-compose binary
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  1. Next, set the correct permissions so that the docker-compose command is executable:
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version

Tutor

Download Binary release

The latest binaries can be downloaded from https://github.com/overhangio/tutor/releases. From the command line:

sudo curl -L "https://github.com/overhangio/tutor/releases/download/v14.0.4/tutor-$(uname -s)_$(uname -m)" -o /usr/local/bin/tutor
sudo chmod 0755 /usr/local/bin/tutor

Starting Commands

tutor local quickstart # for local installations
tutor dev quickstart   # for local development installations
tutor k8s quickstart   # for Kubernetes installation

Deleting Docker Images

docker images -q | xargs docker image rm

Install and Run Tutor Open edX on AWS

pip install PyYAML==5.4.1
tutor local createuser --staff --superuser NAME EMAIL

New ECommerce User: 
tutor local run ecommerce ./manage.py createsuperuser

Then login with this new user at: http://ecommerce.[YOUR DOMAIN]/admin/

Re-Use an Existing LMS User, first go to http://ecommerce.[YOUR DOMAIN]/login. You should be redirected to the LMS login page, then to the dashboard. Then this user must be made a staff/superuser in E-Commerce: 

tutor local run ecommerce ./manage.py shell -c "from django.contrib.auth import get_user_model; get_user_model().objects.filter(email='USER@EMAIL.COM').update(is_staff=True, is_superuser=True)"
tutor local importdemocourse
To delete a course, run:

tutor local run cms ./manage.py cms delete_course <your_course_id>

EYouth Theme: https://gitlab.com/sameh-rm/eyouth-theme.git

tutor local settheme mythemename

tutor images build openedx