60
loading...
This website collects cookies to deliver better user experience
sudo apt-get install wget
sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot
export OPENEDX_RELEASE=open-release-lilac.master
wget https://raw.githubusercontent.com/edx/configuration/open-release/lilac.master/util/install/ansible-bootstrap.sh -O - | sudo bash
edx-configs
where all the ansible configurations goes, download the configuration variables there, and generate strong passwords for different services like different MySQL users and MongoDB.mkdir edx-configs && cd edx-configs
sudo wget https://raw.githubusercontent.com/edx/configuration/open-release/lilac.master/playbooks/sample_vars/passwords.yml
sudo wget https://raw.githubusercontent.com/cubiteDevops/do-edx-configs/main/vars.yml
while IFS= read line; do REPLACE=$(LC_ALL=C < /dev/urandom tr -dc 'A-Za-z0-9' | head -c35) && echo "$line" | sed "s/\!\!null/\'$REPLACE\'/"; done < ./passwords.yml | sudo tee ./my-passwords.yml
Be sure to save the generated passwords in a safe place
mkdir /edx-themes && sudo chmod -R 777 /edx-themes && cd /edx-themes
git clone https://github.com/cubitetech/theme -b lilac cubite-theme
This theme is responsive and made with one of the best frontend technologies, TailwindCSS.
These instructions will potentially destroy the server they are run on, you should only do them on a freshly installed virtual machine
cd /edx/app/edx_ansible/edx_ansible/playbooks/ && git checkout open-release/lilac.master
sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -c local ./openedx_native.yml -i 'localhost,' -e@/root/edx-configs/my-passwords.yml -e@/root/edx-configs/vars.yml
do-release-upgrade
to upgrade to that newer version. Don’t do it.pip install --upgrade pip
to install it. ** Don’t do it**.sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
python manage.py lms --settings=production createsuperuser
This user has full access to your platform, Make sure you save your username and password in a secure place.
It's highly recommended to install an SSL certification as soon as possible to keep users safe from any potential cyber-attacks.
mysite.com #LMS record
studio.mysite.com #Studio record
preview.mysite.com #Preview record
/edx/etc/lms.yml
file with your favorite editor. Change following variables to domain names you just assigned to your instancePREVIEW_LMS_BASE: preview.mysite.com
LMS_BASE: mysite.com
LMS_ROOT_URL: https://mysite.com
CMS_BASE: studio.mysite.com
CROSS_DOMAIN_CSRF_COOKIE_DOMAIN:
LOGIN_REDIRECT_WHITELIST:
- studio.mysite.com
/edx/etc/studio.yml
file with your favorite editor. Change following variables to domain names you just assigned to your instancePREVIEW_LMS_BASE: preview.mysite.com
LMS_BASE: mysite.com
LMS_ROOT_URL: https://mysite.com
CMS_BASE: studio.mysite.com
LMS_INTERNAL_ROOT_URL: https://mysite.com
CROSS_DOMAIN_CSRF_COOKIE_DOMAIN:
LOGIN_REDIRECT_WHITELIST:
- studio.mysite.com
/edx/app/nginx/sites-available/lms
file with our favorite editor and add the following after server {
sectionserver_name mysite.com preview.mysite.com
server {
server_name mysite.com preview.mysite.com
.
.
.
.
.
.
/edx/app/nginx/sites-available/cms
file with our favorite editor and add the following after server {
sectionserver_name studio.mysite.com
server {
server_name studio.mysite.com
.
.
.
.
.
.
sudo apt-get update
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot --nginx
sudo systemctl restart nginx
sudo systemctl status nginx
sudo certbot renew --dry-run
certbot renew
crontab -e
0 7 * * * sudo certbot renew
/edx/bin/supervisorctl restart lms
/edx/bin/supervisorctl restart cms
/admin/
./edx-themes
to customize it please follow Open edX instructions for comprehensive theming and changing theme