Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd ~ && sudo apt-get update && sudo apt-get install build-essential && cd ~ && curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh && nano nodesource_setup.sh && sudo bash nodesource_setup.sh && sudo apt-get install nodejs && nodejs -v
- && sudo ufw allow 8080
- cd ~ && git clone https://github.com/c9/core.git c9sdk && cd ~/c9sdk && scripts/install-sdk.sh
- sudo apt-get remove nodejs npm
- sudo apt-get update
- sudo apt-get upgrade
- After this command run these :-
- curl -sL https://deb.nodesource.com/setup_8.x 596 | sudo -E bash -
- sudo apt-get install -y nodejs
- Now checkā¦
- node -v
- npm -v
- apt install npm
- npm cache clean
- npm install
- modul amd-loader
- sudo npm i -g [email protected]
- sudo scripts/install-sdk.sh
- git reset HEAD --hard
- sudo npm i -g npm
- $ node server.js -w /var/www --port 8080 --listen 0.0.0.0 --auth Gio:Gio@123
- Now open you browser and visit http://your.ip.address:8080
- enter username and password when prompted.
- Yey! your personal cloud IDE.
- ############ taking one step further if you want to run you IDE 24x7, install forevejs and use it instead
- $ cd ~/c9sdk
- $ forever server.js -w /var/www --port 8080 --listen 0.0.0.0 --auth Gio:Gio@123
- $ npm install forever -g
- and if you want to also choose the working directory everytime you start ide..
- ......................... create a file ~/bin/c9start.sh and paste c9start.sh file content in there
- NOTE You should change user:password, this is your basic auth password and login
- ........................................................................................
- now make the file executable
- $ sudo chmod +x ~/bin/c9start.sh
- thats it.
- Now everytime you want to swith directory or open a new project
- just do
- $ ~/bin/c9start.sh
- thats it.
- azure AUE NORT 2VCPU 16gb ram
Add Comment
Please, Sign In to add comment