Linux: How to Install Node.js on Debian 6 (Squeeze)?

robert@localhost~$ sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev
robert@localhost~$ git clone https://github.com/joyent/node.git
robert@localhost~$ cd node
robert@localhost~$ git checkout v0.10.28 (check the current version on http://nodejs.org/download/)
robert@localhost~$ ./configure –openssl-libpath=/usr/lib/ssl
robert@localhost~$ make
robert@localhost~$ sudo make install
robert@localhost~$ node -v
robert@localhost~$ npm -v