Skip to content

Ubuntu 10.04 & 10.10 Install

temas edited this page Apr 19, 2011 · 3 revisions

This is the annotated history file of my clean Ubuntu 10.04 session. Also known as how to setup locker in only 58 easy steps, or a ton less if you read this all and don't try and follow it exactly.

    1  id

I'm alive! Who the heck am I?!

    2  sudo apt-get install node

Doh, super old version of node, was 0.3.2 I think. We need 0.4.0+ so...

    3  apt-get remoev node
    4  apt-get remove node
    5  sudo apt-get remove node

Few fails in there! Got it finally.

    6  ls
    7  mkdir Projects
    8  cd Projects/

Let's isolate this test here

    9  links
   10  sudo apt-get install links
   11  links http://nodejs.org

I didn't setup cut and paste support for the virtual machine so I didn't have the link handy. I want a browser.

   12  ls
   13  tar -zxvf node-v0.4.6.tar.gz 
   14  ls
   15  cd node-v0.4.6/
   16  ls
   17  ./configure --help

Ok the download is sane...

   18  gcc

Gcc was already on the system but...

   19  g++

G++ was not. Let's get it.

   20  sudo apt-get install g++

All set now.

   21  ls

I type ls way way too much. I've gotta know where I am.

   22  sudo apt-get install openssl-dev

We'll need this to build the system, but guess what? That's the wrong name.

   23  sudo apt-get install libssl-dev

Ok, that's the right one.

   24  ./configure --help

Checking our options and if we need any other libraries.

   25  ./configure

Nope, let's do this.

   26  make
   27  sudo make install

All good, moving on to npm

   28  cd ..
   29  curl http://npmjs.org/install.sh | sh

That's so easy! Oh wait, we didn't have curl by default.

   30  sudo apt-get install curl
   31  curl http://npmjs.org/install.sh | sh

That's so easy! Nope, failed for all kind of permission errors and I'd rather not run it this way anyway. Curling shell scripts is such a terrible idea.

   32  ls

Crap I did it again, where am I?!

   33  sudo apt-get install git

Why oh why is this not the package name?!

   34  sudo aptitude

Had to get in the visuals and find the right name.

   35  sudo apt-get install gitcore
   36  sudo apt-get install git-core

Fail once, shame on me. I rarely install stuff via aptitude because I prefer the explicitness of the command line.

   37  git clone git://github.com/isaacs/npm.git ./npm

Snagging the src.

   38  cd npm
   39  git checkout origin/1.0

Make sure we're on the 1.0 branch.

   40  make dev
   41  sudo make dev

Accidentally followed the old instructions, so I follow the new ones too.

   42  sudo make install

That's what we were supposed to do. It ran the same things.

   43  cd ..
   44  git clone ssh://[email protected]:quartzjer/Locker.git

Fails typing, let's do this a bit easier.

   45  git clone git://github.com/quartzjer/Locker.git

Ok we got the source now.

   46  cd Locker
   47  npm install

So close... We need sqlite though.

   48  sudo apt-get install sqlite3 sqlite3-ev
   49  sudo apt-get install sqlite3 sqlite3-dev

Fail.... I want to be able to guess this stuff, but we can't have logical package names.

   50  sudo apt-get install sqlite3 
   51  sudo apt-get install libsqlite3-dev

Ok now we have our dependencies.

   52  npm install

That got all our node modules setup.

   53  python setupEnv.py 

Doh, we don't have setuptools by default. Let's go find it.

   54  sudo aptitude
   55  sudo apt-get install python-setuptools

Hey! That one was logical, I should have tried it.

   56  python setupEnv.py 
   57  sudo python setupEnv.py 

Gotta remember those permissions!

   58  node locker.js

It ran! Rejoice!

Clone this wiki locally