# Linux Installation Guide

Note

You will need to make sure sudo is installed for both Debian and Ubuntu. These commands can then be used for both operating systems.

Note

Type the following commands in a terminal.

1. Check if Python is already installed with python -V.

2. If not already installed or outdated, install Python v2.6 (sudo apt-get install python2.6) or v2.7 (sudo apt-get install python2.7).
     - Or use your Distro’s Package Manager by searching for Python.
3. If not already installed or if outdated, install Git with sudo apt-get install git-core.
     - Or use your Distro’s Package Manager by searching for Git.
4. (Recommended; essential on slower platforms like Raspberry Pi) Install M2Crypto with sudo apt-get install python-m2crypto.
     - Or use your Distro’s Package Manager by searching for M2Crypto.

5. Switch to the directory in which you wish to install KA-Lite.

6. Enter git clone https://github.com/learningequality/ka-lite.git to download KA Lite.

7. Switch into the newly downloaded ka-lite directory with cd ka-lite

8. Run the install script with ./setup_unix.sh.

9. IF you want the server to start automatically in the background when your system boots:
     - Enter sudo ./runatboot.sh in the terminal from inside the ka-lite/scripts directory. Note that if this step does not succeed, you will not be able to start or stop the server using the two commands described below!
     - To start the server the for the first time, run sudo service kalite start. Subsequently the server should start automatically at boot.
     - Use sudo service kalite stop or sudo service kalite start to stop and start the server at any other time.

10. IF the automatic background option was not chosen or sudo ./runatboot.sh did not succeed, start and stop the server by running kalite start and kalite stop in the ka-lite/bin directory.

11. KA Lite should be accessible from http://127.0.0.1:8008/
      - Replace 127.0.0.1 with the computer’s external IP address or domain name to access it from another computer.