Cloud9

From EWIKI
Jump to navigation Jump to search

It all started with an iPad -- I want to use it to code on my server :-(

After a little research, I found Cloud9 -- also available onsite via GitHub :-)

Ubuntu

I tested it on my netbook on Ubuntu, so it is easy

sudo apt-get install nodejs
sudo apt-get install npm
(cd /usr/bin; ln -s nodejs node)   # required for script
sudo apt-get install libxml2-dev
git clone https://github.com/ajaxorg/cloud9.git
cd cloud9
npm install
bin/cloud9.sh

Fedora old

But my server is an old Fedora Core 17: So all manual step by step:

NodeJS

mkdir nodejs
cd nodejs
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure
make
make install

works!

npm is included in nodejs :-)

libxml2-dev

Easy:

sudo yum install libxml2-devel

Apache

/etc/httpd/conf/httpd.conf

ProxyPass /xyz http://localhost:3131
ProxyPassReverse /xyz http://localhost:3131

... where /xyz is the path where Cloud9 is the path on the server, e.g. http://myhost/xyz