Install open EdX in Ubuntu in Azure

Source: Internet
Author: User

Recently, due to work, an open EdX instance was installed in Ubuntu virtual machine on Azure, and the installation process encountered a lot of problems, and learned different knowledge in the process of finding the answer from the Internet.

Create an authentication certificate file for SSH

When connecting to an Ubuntu virtual machine using the Putty (http://www.putty.org/) tool, two options are available for authentication: username + password; Another option is to use an SSH certificate. We can create the certificate with the help of Openssl.exe, which is installed with the Git (http://git-scm.com/download/) installation package.

The steps are as follows:

Open the command-line console window.

Enter the following command, and return to:

Follow the prompts to enter your information.

After the command is completed, two files will be created: Myprivatekey.key and MYCERT.PEM

Converts an SSH-based private key to an RSA-based private key.

Enter the following command, and return to:

When the command finishes running, the file will be created: Myprivatersakey.rsakey.

Using the Puttygen (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) tool, generate a. ppk file, which will be the certificate file to be used by putty.

Run Puttygen.exe

Click Load.

Browse to the file Myprivatersakey.rsakey, perhaps you need to set the Browse window filter to *.

Click Open, OK.

Click Save Private Key and save the file as MYPRIVATEKEY.PPK.

Configuring Ubuntu virtual machines in International azure

In this step, it is important to note that:

1. Choose Ubuntu version for 12.04 LTS.

2. Select Use SSH key for authentication and select the Mycert.pem file.

3. Add two edx-used endpoints: lms-tcp:80; studio-tcp:18010.

Configuring Ubuntu virtual Machines

Run Putty.exe

In the session, in host name, paste the DNS name of the virtual machine in

Expand Connection, SSH, click Auth.

In private key file for authentication:, select the MYPRIVATEKEY.PPK.

Open the command terminal by clicking Open.

Log in using Azureuser.

Enter the following command to update the Ubuntu virtual machine:

sudo apt-get upgrade-y sudo apt

When you are done, restart:

sudo reboot

Installing Open EdX

Rerun Putty.exe and log on to the Ubuntu virtual machine.

Enter the following command, and press ENTER:

Run the one-click installation command

Wait for the installation process to complete, this process is long.

The installation result may be fail, do not worry, first verify that edx instance is available in the browser:

Open the browser and enter Http://<dns name>:18010/

Click Sign in, use [email protected], password edx login.

If the login succeeds, the open edx installation is complete.

If you are unable to log in, consider re-running open edx installation, which is recommended for manual installation.

The manual installation steps are as follows:

Delete a configuration file under/var/tmp

Cd/var/tmp

RM-RF Configuration

Then copy the Configuratoin code base back to the Local:

git clone-b master https://github.com/edx/configuration

-B You can try selecting a branch (https://github.com/edx/configuration) that you think is up to date.

Then run the command:

Cd/var/tmp/configuration

sudo pip install-r requirements.txt

Then run the command:

Cd/var/tmp/configuration/playbooks && sudo ansible-playbook-c local/edx_sandbox.yml-i "localhost,"

Install Desktop for Ubuntu

Run Putty.exe, log on to the Ubuntu virtual machine

In the command terminal, enter the following command:

sudo su-

sudo apt-get install Ubuntu-desktop

sudo apt-get install XRDP

Use sudo to set a password for a user

Run Putty.exe, log on to the Ubuntu virtual machine

In the command terminal, enter the following command:

sudo su sudo passwd azureuser

Then, enter the password for the user.

Common terminal commands in Ubuntu

PWD-Displays the current path

Clear-Clears the console display information

Cd.. -Return to previous level directory

LS-Displays all files/folders under the current path

MV-Moving files

mkdir-Create Folder

RmDir-Remove empty folders

RM-RF-Remove the folder and all of its files

Install open EdX in Ubuntu in Azure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.