Raspberry Pi Home Server – Install Cloud9 to host and share your code

Warning : This article has been automatically translated by Google Translate

Danger : This article has been automatically translated by Google Translate

Caveat : This article has been automatically translated by Google Translate

If you work a lot with web languages, you want to continue to work outside the home or work as a team, Cloud9 can be an excellent solution for you. Supporting HTML, CSS, PHP, Java, Ruby and 23 other languages, It is ideal for development with a Cloud.

The slogan : This is Google Docs, but for code. And it is exactly that (Yes always !). Colaboration, sharing, remote SSH or FTP connection, shortcuts in every sense, themes. Brief, It is the ideal IDE

  1. Update the system
    apt-get update && apt-get -y upgrade
  2. Create directory for Node.js
  3. Download Node.JS. I've tried versions 0.11.x, then 0.10.x and finally 0.9.x. No way. In the end thanks to my friend Google, This is the version 0.8.17 What to use …
    wget http://nodejs.org/dist/v0.8.17/node-v0.8.17-Linux-arm-PI.tar.gz
  4. Unzip, install
    tar zxvf node - v0.8.17 - linux-arm - pi.tar.gz mv node - v0.8.17 - linux-arm-pi node cd node
  5. Now we must add Node.JS in the Path. Edit the file/etc/profile by adding the lines in red
    if [ "`id -u`" -eq 0 ]; then   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    else   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games"
    export NODE_JS_HOME="/opt/node"
    export NODE_PATH="/opt/node/lib/node_modules"
    export PATH
  6. To immediately reflect the changes
  7. Install git
    apt-get install -y git
  8. Download Cloud9
    CD git clone https://github.com/ajaxorg/cloud9.git cloud9
  9. Install packages needed for installation of Cloud9
    apt - get-y install build-essential openssl libssl-dev pkg-config nodejs-dev libxml2-dev
  10. Updating the file rights
    chown - Rf root:root/opt/node
  11. Configure node-xml from the directory cloud9
    cd cloud9 mkdir node_modules cd node_modules git clone https://github.com/ajaxorg/node-libxml.git libxml cd libxml && git checkout v0.0.7 && git submodule init && git submodule update
  12. Edit the file wscript-o3-support by removing the option -msse2, red text
    conf.env.append_value('CCFLAGS', ['- O3', '- msse2', ' - ffast-math', ' - fno-strict-aliasing'])
    conf.env.append_value('CXXFLAGS', ['- O3', '- msse2', ' - ffast-math', ' - fno-strict-aliasing'])
  13. You can now install the module with the npm command (Node Package Manager). You should always be in the directory libxml-node_modules-cloud9
    NPM install - unsafe-perm

    When compiling, at the beginning, There are controls. All rows must be green. Il vous faudra patienter facilement 15 minutes.
    Raspberry Pi Home Server - Installer Cloud9 pour héberger et partager votre code

  14. Install additional modules
    cd ../..
    NPM install g

    Patience there too, must be good an hour. In case of crash, You may need to install “Traverse” manually before raising the npm command :

    NPM install traverse@0.5.2
  15. Install the missing packages if necessary (you will soon know if you start the server)
    NPM install g terrific v8debug gnu-tools xmldom
  16. Yet to start the server by pointing the workspace on your directory with your sources :
    bin/cloud9.sh-l -w/my/path /.
  17. You can now connect your Raspberry IP on port 3131.
    root_-_Cloud9Here you are in the interface. What is nice is for web development with the preview you may have in “almost” real time side without changing tab or browser.

Attention home I go on Chrome, Safari not letting me edit a file in a tab.

Appointment on this page for documentation on the interface.

Good development !

You may also like...