Skip to content

Instantly share code, notes, and snippets.

@spara
Created May 28, 2011 10:51
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 spara/996781 to your computer and use it in GitHub Desktop.
Save spara/996781 to your computer and use it in GitHub Desktop.
Install locker from The Locker Project on Ubuntu
#!/bin/bash
#install node.js
sudo apt-get upgrade
sudo apt-get -y install git
sudo apt-get -y install gcc g++
git clone --depth 1 https://github.com/joyent/node.git
cd node/
export JOBS=2
mkdir ~/local
export PATH=$HOME/local/node/bin:$PATH
sudo apt-get -y install openssl libssl-dev
./configure --prefix=$HOME/local/node
make
make install
#install npm from source
git clone git://github.com/isaacs/npm.git ./npm
cd npm/
git checkout origin/1.0
sudo make install
cd ..
#install locker
git clone https://github.com/spara/Locker.git
cd Locker/
sudo apt-get -y install sqlite3 libsqlite3-dev
sudo apt-get -y install python-setuptools
npm install
# occasionally npm does not install all the modules so try it again
npm install
sudo python setupEnv.py
# there is an unresolved bug with node-http-proxy that requires
# editing a file, see: http://sproke.blogspot.com/2011/05/how-to-install-locker-project.html
#start the locker in the background
node lockerd.js &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment