Loading...

Raspberry Pi and Node.js

68,636 views

Loading...

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Dec 24, 2012

Links:
http://www.raspberrypi.org/downloads
http://osxfuse.github.com/
http://nodejs.org/download/
http://expressjs.com/

Commands:
sudo dd if=YourRaspianImage of=/dev/diskXYZ
ssh pi@IPAddress
mkdir .ssh
ssh-keygen
scp id_rsa.pub pi@IPAddress:.ssh/authorized_keys
sshfs pi@IPAddress: SomeDirectory

wget http://nodejs.org/dist/v0.8.16/node-v...
tar -zxf node-v0.8.16.tar.gz
cd node-v0.8.16
./configure
make
sudo make install

sudo apt-get install screen
screen
screen -r

sudo sh install-node.sh
node --version
npm ---version
sudo node node-server.js

Node.js example server:
var http = require('http');
http.createServer(function(req, res) {
res.end('Hello, Raspberry Pi');
}).listen(80);

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...