top of page
Search

Day 2 - Install Canvas in Ubuntu

  • Writer: Suzie Ji
    Suzie Ji
  • Jan 20, 2021
  • 1 min read

Updated: Apr 14, 2021



The following are the steps to install Canvas on Ubuntu:

1. Installing Docker:


2. Install Ruby:


3.Getting rid of systemd-resolved consuming port 53


$ sudo systemctl stop systemd-resolved
$ sudo vim /etc/systemd/resolved.conf


$ sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf


4. Install Docker Compose on Ubuntu

Because I install docker-compose with apt-get on Ubuntu 18.04, apt will install docker-compose version 1.17: and command fails with this version.

To solve the issue I had to remove docker-compose, and install it from docker directly with curl. Now I am with version 1.26 and it works fine.


$ sudo rm /usr/local/bin/docker-compose
$ sudo apt remove docker-compose
$ sudo apt autoremove


Install Docker Compose on Ubuntu


$ sudo apt update
$ sudo apt upgrade
$ curl
$ sudo apt install curl
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/ bin/docker-compose
$ sudo chmod +x /usr/ bin/docker-compose
$ docker-compose –version

Now version 1.17 has been changed to 1.26.


5. on canvas folder.


$ git clone https://github.com/instructure/canvas-lms
$ ./script/docker_dev_setup.sh


In the future, the steps to log in canvas each time:


$ cd .ssh
$ ssh -i kiki.pem kiki@<public ip adress>
$ cd canvas/canvas-lms/
$ dory up
$ docker-compose up -d

Go to website. <public ip adress>





References

"How To Install Canvas LMS On Ubuntu 20.04|18.04 | Computingforgeeks". Computingforgeeks, 2021, https://computingforgeeks.com/install-canvas-lms-ubuntu/.

"Install Canvas LMS On Ubuntu". Github, 2021, https://github.com/instructure/canvas-lms/wiki/Quick-Start.

 
 
 

Comments


©2021 by Suzie Ji. Proudly created with Wix.

bottom of page