Installation on Raspberry Pi

Author Gravatar Image TYLER COOPER
Installation of the editor can be performed in two ways.  One is the more trusting, but much easier way, the second is a bit more manual.

Easy installation:

Log into your Raspberry Pi.  If you're on a Mac, you can open Terminal.app to log into the Raspberry Pi over SSH. Linux users can open the default terminal application. If you're using Windows, you'll want to download a good terminal application.  My favorite is PuTTY.  

Once you have the terminal application open, assuming you're using Occidentalis, type in the following:
Copy Code
$ ssh pi@raspberrypi.local
pi@raspberrypi.locals password: 
Once you type your password in, and get a prompt, you can copy and paste the following command, and hit enter.  This command will download an install.sh script from our github repository, and execute it automatically for you.
Copy Code
curl https://raw.github.com/adafruit/Adafruit-WebIDE/alpha/scripts/install.sh | sudo sh
The editor will be installed into /usr/share/adafruit/webide using the user webide.  The script will install node, npm, redis-server, git, restartd (watches over your editor server), avahi-daemon (bonjour!), i2c-tools, and libcap2-bin (so we can use port 80 without root).  If you'd like to review the script, it's located in our repository.
The installation may take from 3-5 minutes, so please be patient.
After the installation is complete, you'll see the following prompt:
Copy Code
**** Starting the server...(please wait) ****
**** The Adafruit WebIDE is installed and running! ****
**** Commands: sudo service adafruit-webide.sh {start,stop,restart} ****
**** Navigate to http://raspberrypi.local to use the WebIDE
The editor is now installed, and you can open a browser to access it from any computer in your network.  

Due to our very small development team, and limited resources, the only browsers that are supported are Google Chrome, and Mozilla Firefox at this time.  We hope to support more in the future!

Manual Installation:

You can manually install the editor by running the following set of commands:
Copy Code
sudo apt-get update && sudo apt-get -y install build-essential nodejs nodejs-legacy npm redis-server git
git clone git://github.com/adafruit/Adafruit-WebIDE.git
cd Adafruit-WebIDE
mkdir tmp
npm config set tmp tmp
npm install
editor config/config.js (change port 80 to your port of choice)
nodejs server.js

Uninstallation:

To uninstall the editor for versions 0.1.9 and older, you can run the following script:
Copy Code
curl https://raw.github.com/adafruit/Adafruit-WebIDE/release/scripts/uninstall.sh | sh
To uninstall the editor for versions 0.2.0 and newer, you can run the following script:
Copy Code
curl https://raw.github.com/adafruit/Adafruit-WebIDE/alpha/scripts/uninstall.sh | sudo sh
You can also manually uninstall by removing the following components:
  • Delete the folder the editor exists in.
  • Remove the bitbucket ssh keys in ~/.ssh
  • Edit the ssh config to remove the bitbucket reference that is appended.
  • Uninstall nodejs npm redis-server git restartd libcap2-bin avahi-daemon i2c-tools.
Last updated on 2014-04-22 at 07.09.27 PM Published on 2012-10-05 at 05.21.56 PM