Introduction: Cloud 9 IDE on Intel Edison

In this Instructable, we are going to install Cloud 9 IDE onto the Edison.

Using Cloud9 IDE will allow you to write (and debug javascript) applications right from your browser.

We will be setting up the Cloud 9 IDE server on the Edison.

What this would mean is, the software required to start developing with Intel Edison is minimal. All you need is serial emulator software to setup the environment and a browser to start developing.

Step 1: Preparing the Edison

The preparation process involves downloading and compiling many packages which can easily take up the allocated space for the root file system on eMMC of the Edison.

So you'll have to boot from the SD card to complete this process.

You can refer to this topic or this blog post on instructions for preparing the SD card.

I've used 8 GB SD card successfully in my tests.

Once you have booted up the Edison from the SD card, head over to next step.

Gain access to Linux console either through serial connection or SSH.

Step 2: Installing the Cloud 9 IDE

We need to update the repo list on the Edison (if you have already not done that).

Start 'vi' editor to edit the file /etc/opkg/base-feeds.conf

vi /etc/opkg/base-feeds.conf

and press key 'i'

Copy the following lines:

src/gz all
src/gz edison
src/gz core2-32

and paste it in the console with 'vi' still running and edit mode enabled via the 'i' command.

Press 'esc' key followed by ':wq' to save the changes and exit.

Install git using following set of commands:

opkg update 
opkg install git

Get the script for preparing the Edison for installation of the Cloud 9 IDE

git clone c9
cd c9

Start the installation process with the following command:

sh install

This process will take some time (about ~3-4 hrs)

During the installation you'll be prompted to answer if you wish to install a version of "ps" program that is required by the Cloud 9 IDE, enter 'Y' and proceed.

Once done with installation, you can start the Cloud 9 server using following command:


You can make this command run automatically using the cron program.

If you are interested in knowing the working of the above mentioned script, you can have a look at this post.

Step 3: Using the Cloud 9 IDE

Note down the IP address printed out when you executed the last command in the previous step and enter the entire string following "http://" including 8080 into the navigation bar of your browser.

You should see Cloud 9 banner in your browser and a after a few moments the application should be loaded.

Create a new file using "File->New File" and save the file with "File->save as" while saving the file you will have the opportunity to specify the programming language that you will be using to develop your application vis the extension.

If you were to write your application in c, the extension would be '.c' for Python, it would be '.py' for javascript, it would be '.js' and etc... This process would select the required runner.

You run the application using the "run" button in the tool bar. To stop a script, click on the "stop" with big red square button.

You can also use the "Terminal feature"(Alt-T for new terminal) to gain access to the Linux console on your Edison within the IDE.

If you are interested in developing applications for the javascript on Edison, you can debug your application in Cloud 9 IDE. Insert the break point by clicking on the left of the line number display and click on run to start debugging.

The script sets the workspace location as "/home/root/c9wks" as the default location. You will find all the scripts and applications that you have written in this folder.

You can configure the workspace path, the path where the file
created within the IDE (or outside) will be stored and this will be the root directory for the file list window on the left of IDE by modifying the variable "WKS". You can also set user name and password by specifying non empty string (within "") as values for USR_NAME and PASWD respectively. You will be prompted to enter these credentials when you access the cloud 9 server. You can find all these variables at the very top of the file "". You can use vi to edit these parameters.

If you are interested in learning more features of Cloud 9 IDE, you can refer to official documentation here.