How to install Node.js in a remote Ubuntu machine -
as system admin, following in of ubuntu machines:-
- find out if node.js installed user in ubuntu machine.
- install version
- upgrade version.
i remote ubuntu machine within lan. software/tools should use want?
for class of problem write scripts using python fabric http://docs.fabfile.org/en/1.6/. wraps ssh, needs no special installation hosts.
using fabric means can execute same task on multiple hosts easily. while can use puppet or chef this, lot of less flexible use fabric, (as require setup , licenses).
once have setup fabric file able connect host, su particular user, , invoke node -v , take action accordingly.
a more robust solution , scaleable solution though host own package repository, build own node installation packages, , use whichever package manager (yum apt etc) linux hosts uses run , update.
happy node hacking.
Comments
Post a Comment