Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • On NUC hardware, if there is a previous Windows install, use diskpart to clean the drive partitions.

  • Install Ubuntu Server 24.04 according to Ubuntu Server Installation.

Docker Engine

Reference: https://docsuwaterloo.dockeratlassian.comnet/enginewiki/installspaces/ubuntu/

Install Docker Engine

  • Setup Docker’s apt repository.

    Code Block
    # Add Docker's official GPG key:
    sudo apt-get update
    sudo apt-get install ca-certificates curl
    sudo install -m 0755 -d /etc/apt/keyrings
    sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
    sudo chmod a+r /etc/apt/keyrings/docker.asc
    
    # Add the repository to Apt sources:
    echo \
      "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
      $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
      sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    sudo apt-get update
  • Install the Docker packages.

    Code Block
    sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  • Verify Docker installation.

    Code Block
    sudo docker run hello-world

ECELI/pages/44319047848/Docker#Install-Docker-Engine

DNS

Update IPAM so that subdomains point to server.

...

Code Block
sudo apt install python3-pip python3.12-venv libyaml-dev

Python venv

  • Create the Python virtual environment.

    Code Block
    python3 -m venv openedx
  • Activate the Python virtual environment.

    Code Block
    source openedx/bin/activate

Tutor

  • Install Tutor:

    Code Block
    pip install "tutor[full]"
  • Add current user to docker group:

    Code Block
    sudo usermod -aG docker $USER
  • Logout and log back in.

  • Start tutor:

    Code Block
    source openedx/bin/activate
    tutor local launch
  • Enter parameters:

    Code Block
    Are you configuring a production platform? Type 'n' if you are just testing Tutor on your local computer [Y/n] 
    Your website domain name for students (LMS) [www.myopenedx.com] ece-openedx-01.eng.uwaterloo.ca
    Your website domain name for teachers (CMS) [studio.ece-openedx-01.eng.uwaterloo.ca] 
    Your platform name/title [My Open edX] ECE Open edX dev1 
    Your public contact email address [contact@ece-openedx-03.eng.uwaterloo.ca] d24lau@uwaterloo.ca
    The default language code for the platform [en] 
    Activate SSL/TLS certificates for HTTPS access? Important note: this will NOT work in a development environment. [y/N] 
  • Test the OpenEdX LMS site.

    • Open a browser to the server address (e.g., http://ece-openedx-01.eng.uwaterloo.ca).

    • The OpenEdX welcome page should be displayed.

...