Skip to content

Instantly share code, notes, and snippets.

@stolsma
Created June 23, 2011 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stolsma/1042374 to your computer and use it in GitHub Desktop.
Save stolsma/1042374 to your computer and use it in GitHub Desktop.
Install NodeJS:master, NPM:master from Github and node-inspector from NPM on clean system. Install Haibu with standard config on system.
#
# Install paths to Nodejs, NPM, node-inspector and haibu in user system.
#
# this gist can be run using: curl https://raw.github.com/gist/1042374/client.sh | sh
# location of node and supporting scripts
NODE="/home/node/local/bin"
HAIBU="/home/haibu/haibu"
# put node, npm and other global node programs in path if needed
grep "export PATH=$NODE:\$PATH" ~/.bashrc
if [ $? -ne 0 ] ; then echo "export PATH=$NODE:\$PATH" >> ~/.bashrc ; fi
# put haibu program in path if needed
grep "export PATH=$HAIBU:\$PATH" ~/.bashrc
if [ $? -ne 0 ] ; then echo "export PATH=$HAIBU:\$PATH" >> ~/.bashrc ; fi
#
# Install Haibu:master from Github in user system.
#
# this gist can be run using: curl https://raw.github.com/gist/1042374/haibu.sh | sh
# location of node and supporting scripts
NODE="/home/node/local/bin"
# put node, npm and other global node programs in path if needed
grep export ~/.bashrc | grep '\<PATH' | grep $NODE
if [ $? -ne 0 ] ; then echo "export PATH=$NODE:\$PATH" >> ~/.bashrc ; fi
. ~/.bashrc
# remove old dirs
rm -r ./.forever
rm -r ./.npm
rm -r ./haibu
# Use master !!!!
git clone https://github.com/nodejitsu/haibu.git
cd haibu
npm install
# install standard startup script
curl https://raw.github.com/gist/1042374/start-haibu >> ./start-haibu
chmod 755 ./start-haibu
#
# Install NodeJS:master, NPM:master from Github and node-inspector from NPM in user system.
#
# this gist can be run using: curl https://raw.github.com/gist/1042374/install.sh | bash
# location of node and supporting scripts
NODE="\$HOME/local/bin"
# put node, npm and other global node programs in path if needed
grep "export PATH=$NODE:\$PATH" ~/.bashrc
if [ $? -ne 0 ] ; then echo "export PATH=$NODE:\$PATH" >> ~/.bashrc ; fi
. ~/.bashrc
# remove all previous install dirs
rm -r ~/local
rm -r ./node
rm -r ./npm
rm -r ./.npm
# create empty local dir
mkdir ~/local
# install nodejs from Github using master branch!!!!
git clone git://github.com/joyent/node.git
cd node
git checkout v0.4
./configure --prefix=~/local
make install
cd ..
# install NPM from Github using master branch
git clone git://github.com/isaacs/npm.git
cd npm
git checkout v1.0.30
make install
# install node-inspector from NPM repository
npm install node-inspector -g
#
# Install NodeJS:0.6.5/NPM from Github and node-inspector from NPM in user system.
#
# this gist can be run using: curl https://raw.github.com/gist/1042374/install0.6.5.sh | bash
# location of node and supporting scripts
NODE="\$HOME/local/node"
# put node, npm and other global node programs in path if needed
grep "export PATH=$NODE:\$PATH" ~/.bashrc
if [ $? -ne 0 ] ; then echo "export PATH=$NODE:\$PATH" >> ~/.bashrc ; fi
. ~/.bashrc
# remove all previous install dirs
# rm -r ~/local
rm -r ./node
#rm -r ./.npm
# create empty local dir
mkdir ~/local
# install nodejs from Github using master branch!!!!
git clone git://github.com/joyent/node.git
cd node
git checkout v0.6.5
./configure --prefix=~/local/node
make install
cd ..
# install node-inspector from NPM repository
npm install node-inspector -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment