I am Starting My First Tutorial and Forgive me if I do any mistake.
Minimum System Requirement for Installing OpenEdx in production(Ubuntu 20.04 and 8 Gb Ram 2 CPU Core and 50 gb Storage)
For User I am Creating Parvin and I am recommending only use single username
-
First we have to create a user after logged into Root User
sudo adduser parvin
-
Now we have to add this user to Sudo Access
sudo usermod -aG sudo parvin
-
Switch to New User in my case Parvin
su - parvin
-
Now we have to run update command in ubuntu
sudo apt update -y
-
Now we have to install latest version of Docker and Docker Compose
sudo apt-get install docker docker-compose -y
-
After installing Docker and Docker Compose we have to add docker into sudo user
sudo usermod -aG docker parvin
-
Now we have to enable our docker at startup so if our server goes restart then it will start automatically
sudo systemctl enable docker
-
Now our system is ready for installing Tutor for installing Tutor we have to install Python and setuptools
sudo apt install python3 python3-pip libyaml-dev -y
-
Now we have to install Tutor in our System for installing latest version of Tutor use this command and it is recommended that always use latest version of Tutor
pip install "tutor[full]"
-
While installing Tutor we are getting error of Pyyml Error for that we have to install this Pyyml version
pip install PyYAML==5.4.1 -
Upgrade command of tutor to check Tutor error is resolved or not and is there any other setup error is there or not
pip install --upgrade "tutor[full]"
-
Our Tutor is installed but it will not run because we have not added python and Tutor path in our new user so we have to add our path in this file
sudo nano /etc/environment
-
In the end of the environment file add these values (Please change with your username mine is parvin)
:/home/parvin/.local/bin
-
after completing all above steps we have to reboot our server
sudo reboot
-
After restart login as Parvin user and run these commands
tutor local quickstart
# for local installations
tutor dev quickstart
# for local development installations
For Dev setup it will be suggest always use Ubuntu 20.04 as primary OS and always use SSD for this setup otherwise Hard Disk lifespan is reduced if you run multiple times quickstart or build images command
Minimum config we have to use for dev is 4 GB ram and minimum CPU is recommended is core i5
I will create basic platform use Tutorials for all People within this week
Note: Please do not use Hard Disk in any setup