1. install Node.js (use nvm)
sudo apt-get remove nodejs # remove legacy
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
nvm install 6.9.1
nvm use 6.9.1
nvm alias default 6.9.1
npm install -g npm
2. install Cloud9 ide
sudo apt-get install git build-essential python g++ curl libssl-dev apache2-utils git-core make automake autoconf # preinstall
git clone https://github.com/c9/core.git ~/c9sdk
cd ~/c9sdk
sudo ./scripts/install-sdk.sh
sudo npm install
3. run Cloud9
mkdir ~/workspace # create workspace
node ~/c9sdk/server.js -w ~/workspace/ -p 8181 -l 0.0.0.0 -a [user]:[pass] & disown
4. update Cloud9
cd ~/c9sdk
git pull origin master
sudo ./scripts/install-sdk.sh
5. EACCES problem
maybe need permission to access ".c9" and ".node-gyp" directory.
change owner and group same as the user that running Node.js.
6. references
http://blog.naver.com/sonmg/220481210845
http://coolkim.tistory.com/472
'Linux > Ubuntu' 카테고리의 다른 글
raspberry pi 2 kernel cross-compile (0) | 2016.08.27 |
---|---|
system_dbus_socket : Connection refused (0) | 2011.10.27 |
Ubuntu Panel Theme 문제 (0) | 2011.10.27 |