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
- Update the system
apt-get update && apt-get -y upgrade
- Create directory for Node.js
- 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 …
- Unzip, install
tar zxvf node - v0.8.17 - linux-arm - pi.tar.gz mv node - v0.8.17 - linux-arm-pi node cd node
- 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" fi export NODE_JS_HOME="/opt/node" export NODE_PATH="/opt/node/lib/node_modules" PATH="$PATH:$NODE_JS_HOME/bin:$NODE_PATH" export PATH
- To immediately reflect the changes
- Install git
apt-get install -y git
- Download Cloud9
CD git clone https://github.com/ajaxorg/cloud9.git cloud9
- Install packages needed for installation of Cloud9
apt - get-y install build-essential openssl libssl-dev pkg-config nodejs-dev libxml2-dev
- Updating the file rights
chown - Rf root:root/opt/node
- 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
- 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'])
- 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
- 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 firstname.lastname@example.org
- Install the missing packages if necessary (you will soon know if you start the server)
NPM install g terrific v8debug gnu-tools xmldom
- Yet to start the server by pointing the workspace on your directory with your sources :
bin/cloud9.sh-l 0.0.0.0 -w/my/path /.
- You can now connect your Raspberry IP on port 3131.
Here 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 !