Skip to content

Installing Oppia (Linux)

Sean Lip edited this page Aug 20, 2015 · 45 revisions

Note: If you just want to create and share explorations, you may be able to use the hosted server at https://www.oppia.org (in which case you don't need to install anything).

These installation instructions were last tested on 25 Feb 2014 with Linux Ubuntu 12.04 LTS and Linux Fedora 19.

Prerequisites

Oppia relies on a number of programs and third-party libraries. Many of these libraries are downloaded automatically for you when you run the start.sh script provided with Oppia. However, there are some things that you will need to do beforehand:

  1. Ensure that you have Python 2.7 and Java installed. (Java is needed for the code interaction.) If in doubt, then in a terminal run:
  sudo apt-get install default-jre
  1. Make sure you have curl (used to download third-party libraries), setuptools (needed for installing coverage, which checks test coverage for the Python code) and git (which allows you to store the source in version control):
  sudo apt-get install curl python-setuptools git

Running Oppia on a development server

  1. Download Oppia by following the instructions in the README.

  2. In a terminal, navigate to oppia/ and run:

   bash scripts/start.sh

The first time you run this script, it will take a while (about 5 - 10 minutes when we last tested it in Feb 2014, though this depends on your Internet connection). Subsequent runs should be much faster. The start.sh script downloads and installs the required dependencies (such as Google App Engine) if they are not already present, and sets up a development server for you to play with. The development server logs are then output to this terminal, so you will not be able to enter further commands in it until you disconnect the server.

Note: The script will create two folders that are siblings of the oppia/ root directory: oppia_tools and node_modules. This is done so that these two folders will not be uploaded to App Engine when the application is deployed to the web.

Note: If you run into errors while installing Oppia, please try deleting the directories

  ../oppia_tools/
  third_party/
  core/templates/prod/

and running start.sh again.

Note: Oppia uses the npm tool to install some packages. This tool accesses both ~/tmp and ~/.npm, and has been known to occasionally encounter permissions issues with those directories. You may need to either delete these directories and all their contents (if they do not contain anything else that needs to be preserved), or change their permissions so that they are owned by you, which you can do by running

  sudo chown -R {{YOUR_USERNAME}} ~/tmp
  sudo chown -R {{YOUR_USERNAME}} ~/.npm

where {{YOUR_USERNAME}} should be replaced by your username.

  1. The start.sh script will start a development server at http://localhost:8181. It should look something like this:

Image showing the default splash page.

You can also view the App Engine admin console at http://localhost:8000.

  1. Loading the demo explorations. The default Oppia installation comes with a set of demo explorations. On startup, none of these are loaded. To load them, log in to your server as an admin, then click your username in the top-right corner and choose 'Admin Page'. This will open the admin page, from which you can load the demo explorations.

  2. Shutting down the development server. When you're done, you can shut down the development server by typing Ctrl+C into the terminal.

Troubleshooting

  • If you get an error that ends with:

      fancy_urllib.InvalidCertificateException?: Host appengine.google.com returned
      an invalid certificate (ssl.c:507: error:14090086:SSL
      routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed):
    

    try removing the cacerts.txt and urlfetch_cacerts.txt files as described here and here.

Core documentation


Developing Oppia


Developer Reference


Fun

Clone this wiki locally