Wednesday, February 27, 2013

How to install Cloud 9 on raspberry pi

If node.js is not install start by install it.

$sudo apt-get update && sudo apt-get -y upgrade
$sudo apt-get -y install build-essential openssl libssl-dev pkg-config

$export NODE_PATH="/usr/local/lib/node_modules"

$cd ~
$git clone https://github.com/ajaxorg/node-libxml.git
$cd node-libxml
$git checkout v0.0.7
$git submodule init
$git submodule update
npm cache add ~/node-libxml/

$nano support/o3/wscript
remove -msse2

$sudo npm install -g sm
$sudo chown -Rf 1000:1000 /usr/local/lib/node_modules/sm

$cd ~
$git clone https://github.com/ajaxorg/cloud9.git cloud9
$cd cloud9
$cd ~/cloud9
$sm install

All steps took about 60-90 min.

To run
$bin/cloud9.sh -l 0.0.0.0

brows to http:ip.to.rpi//:3131/



Have fun hacking
Marcus


2 comments:

  1. Thank You. Trying to do this myself and having trouble.

    ReplyDelete
  2. Fails constantly at:
    npm http 200 https://registry.npmjs.org/traverse/-/traverse-0.5.2.tgz
    npm ERR! not ok code 0

    * File : false @ false
    * Stack:
    * Error: NPM error: npm http GET https://github.com/ajaxorg/jsDAV/tarball/209289355d69adde11dbcd0c83e6dd24a6d9184a
    * npm http GET https://registry.npmjs.org/nodeunit/0.7.4
    * npm http GET https://github.com/ajaxorg/ace/tarball/cc2a2c9e056c6d4049f8849ec3ad72974de37177
    * npm http GET https://github.com/ajaxorg/apf/tarball/145f65bd24ae83f041418dd01a9c51d278045f3f
    * npm http GET https://github.com/ajaxorg/async.js/tarball/0b4ed5608a32c280a7690b5f52883d8d1fc0de08
    * npm http GET https://github.com/ajaxorg/lib-v8debug/tarball/d2fac9b09724cb2e75e2807191eace9bc27d3b52
    * npm http GET https://github.com/ajaxorg/packager/tarball/bee2a82c6d5e2875024bfdc83937e98092ccf04f
    * npm http GET https://github.com/ajaxorg/treehugger/tarball/b22d7ad712f76a7e7b1070ab339d567dfbf059b1
    * npm http 304 https://registry.npmjs.org/nodeunit/0.7.4
    * npm http 200 https://github.com/ajaxorg/ace/tarball/cc2a2c9e056c6d4049f8849ec3ad72974de37177
    * npm http 200 https://github.com/ajaxorg/async.js/tarball/0b4ed5608a32c280a7690b5f52883d8d1fc0de08
    * npm http 200 https://github.com/ajaxorg/lib-v8debug/tarball/d2fac9b09724cb2e75e2807191eace9bc27d3b52
    * npm http 200 https://github.com/ajaxorg/jsDAV/tarball/209289355d69adde11dbcd0c83e6dd24a6d9184a
    * npm http 200 https://github.com/ajaxorg/apf/tarball/145f65bd24ae83f041418dd01a9c51d278045f3f
    * npm http 200 https://github.com/ajaxorg/packager/tarball/bee2a82c6d5e2875024bfdc83937e98092ccf04f
    * npm http 200 https://github.com/ajaxorg/treehugger/tarball/b22d7ad712f76a7e7b1070ab339d567dfbf059b1
    * npm WARN package.json packager@0.1.0 No readme data!
    * npm http GET https://github.com/c9/node-gnu-tools/tarball/568f40a73a4d2902b730c63a6cc04bee4be14e51
    * npm http GET https://registry.npmjs.org/asyncjs/0.0.8
    * npm http GET https://registry.npmjs.org/libxml/0.0.7
    * npm http GET https://registry.npmjs.org/formidable/1.0.9
    * npm http GET https://registry.npmjs.org/node-sftp/0.1.1
    * npm http GET h

    ReplyDelete