natta25

DO C9

Oct 11th, 2020 (edited)
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. 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
  2.  
  3. && sudo ufw allow 8080
  4.  
  5.  
  6. cd ~ && git clone https://github.com/c9/core.git c9sdk && cd ~/c9sdk && scripts/install-sdk.sh
  7.  
  8. sudo apt-get remove nodejs npm
  9. sudo apt-get update
  10. sudo apt-get upgrade
  11. After this command run these :-
  12. curl -sL https://deb.nodesource.com/setup_8.x 596 | sudo -E bash -
  13. sudo apt-get install -y nodejs
  14.  
  15. Now check…
  16. node -v
  17. npm -v
  18.  
  19. apt install npm
  20. npm cache clean
  21. npm install
  22.  
  23. modul amd-loader
  24. sudo npm i -g [email protected]
  25. sudo scripts/install-sdk.sh
  26. git reset HEAD --hard
  27. sudo npm i -g npm
  28.  
  29.  
  30.  
  31. $ node server.js -w /var/www --port 8080 --listen 0.0.0.0 --auth Gio:Gio@123
  32. Now open you browser and visit http://your.ip.address:8080
  33. enter username and password when prompted.
  34. Yey! your personal cloud IDE.
  35.  
  36.  
  37. ############ taking one step further if you want to run you IDE 24x7, install forevejs and use it instead
  38. $ cd ~/c9sdk
  39. $ forever server.js -w /var/www --port 8080 --listen 0.0.0.0 --auth Gio:Gio@123
  40.  
  41. $ npm install forever -g
  42.  
  43.  
  44. and if you want to also choose the working directory everytime you start ide..
  45. ......................... create a file ~/bin/c9start.sh and paste c9start.sh file content in there
  46. NOTE You should change user:password, this is your basic auth password and login
  47. ........................................................................................
  48. now make the file executable
  49. $ sudo chmod +x ~/bin/c9start.sh
  50.  
  51. thats it.
  52. Now everytime you want to swith directory or open a new project
  53. just do
  54.  
  55. $ ~/bin/c9start.sh
  56. thats it.
  57.  
  58.  
  59.  
  60. azure AUE NORT 2VCPU 16gb ram
Add Comment
Please, Sign In to add comment