Dubai - Raspberry Pi and Node.js
Gebäude | Informationen | Videos | Emirates | Aussicht
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-v0.8.16.tar.gz 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);
Bemerkungen
-
Great explanation! There are even some interesting trivial stuff like what a TAR file is and it's options, and how to use sshfs, etc.
These side explanations worked well in the video because I can always rewind back to those factoids. -
Advanced users or those who have already setup a connection to their own Raspberry Pi, can jump over to 7:50 and jump directly to the node.js installation.
-
Thanks ..!!
-
That´s cool, but how do i install a Mongo database?
-
You should consider making courses for a living. This was thoroughly explained. Give it a try.
-
looks like the node guys may have added official support for ARM after the code merge with IO, think you may be able to just do sudo apt-get to get the latest version. I know "sudo n stable" works for keeping it up to date.
-
wow , i learn a lot from this video ,i'm new in Rpi & node.js
thanks for the tutorial ^_^ -
very good tutorial
-
Cool
-
Dude, you are very good. Even though I thought I knew how to install node.js on RPI I was still hooked to your video till the end. It was very informative. Thank you.
-
I can haz passwords! :D Thank you for this great tutorial!
-
Boss, yours is the one of the top most (top 5%) explanations I have heard ever...
Thank you for such a brief, sharp and to the point tutorial. It was superb and yet covering so many things with such good explanation. -
You can speed up dd by specifying a block size. Think of dd as moving water from a well to to trough, one bucket at a time. If you use a bigger bucket, you make fewer trips (less overhead). dd if=foo of=bar bar=1m
-
Wow, wonderfull explanation. I am working with tar for a while. But didn't knew it was tape archive. haha, also the SSH is very clear and understandble, why u use screen is understandable. How to make a shell script. Even this is a small movie, u explained alot basic Unix stuff. And it's about NodeJS and Raspberry Pi.
Are u a teacher? because you got skills. I directly understood all. :) -
Thank you so much for sharing!! you save lot of my time
-
Thanks for sharing! Your video is really descriptive and easy to follow. It gets me start up fast.
-
Great explanation. I love how you fold in quick explanations as you go (like what tar stands for) Very helpful for people who are not used to Linux but still don't want to get too boggled down in details
-
####### PROBLEM FIXED ######
When I tried to install screen using apt-get I received a few perl errors which also resulted in the Node installation not running correctly, I guess a few of you may have tackled the same problem so I'll post my fix below:
SSH to your RBPi
type the following command: apt-get install locales
output should be like follows:
Reading package lists... Done
Building dependency tree
Reading state information... Done
locales is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
now input the following commands:
export LANGUAGE='en_GB'
export LC_ALL="en_GB.UTF-8"
sudo dpkg-reconfigure locales
after a few seconds you should be greeted with a blue GUI.
tap return key on 'All locales'
tap return key on en_GB.UTF-8
the apt-get installation should work just fine now.
IMPORTANT: if you already installed screen and then did the following steps above, be sure
to uninstall it using the following command: sudo apt-get --purge remove screen -
Thank you! This worked out great! However, for me, it took almost 4 hours to compile the nodejs source code. As another user suggests, use the precompiled Linux tar.gz's available on nodejs.org for a faster installation. :)
-
For puTTy Key Generator users trying to recreate the password-less login using public/private key encryption:
When you come to save the private key, make sure the key passphrase remains blank. The downside is that the private key file remains un-encrypted on your windows machine.
Have fun.
583Bewertung