Created
May 28, 2011 10:51
-
-
Save spara/996781 to your computer and use it in GitHub Desktop.
Install locker from The Locker Project on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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