Code Monkey home page Code Monkey logo

pi-node-image's Introduction

Raspbian plus NodeJS Image for Raspberry Pi Development

A disk image suitable for NodeJS development on Raspberry Pi. Download Link: https://dl.dropboxusercontent.com/u/1869833/pi-node.img.zip

Contains

  • Raspbian GNU/Linux 7
  • Raspberry Pi Firmware 3.12.24+
  • npm 1.4.3
  • NodeJS 0.10.26
  • Git 1.7.10.4

Instructions for Linux

Tested on a Samsung Chromebook.

Measure twice, cut once! The following can destroy your filesystem. Ensure you are targeting the removable device you intend to before hitting that [Enter] key!

  1. Download and unzip https://dl.dropboxusercontent.com/u/1869833/pi-node.img.zip to a suitable directory. This file is about 1Gb compressed and will require approximately 4Gb as an uncompressed image. It is also stored in my public DropBox since it is far larger than Githubs maximum limit of 100Mb.
  2. Determine the name of your removable disk. Try using dh -f to list all partitions. On my Samsung Chromebook my SD card shows up as /dev/mmcblk1.
  3. Unmount all partitions using sudo umount /dev/<device>pn where n is each partition number.
  4. Raw copy the image to the SD card with sudo dd if=<path-to-image>/imagename of=/dev/<device>. You are targeting the device and not any particular partition. It goes without saying that this command will destroy all data in all partitions on the device! The dd command does not provide any progress feedback and does take some time.
  5. Place the SD card in your Raspberry Pi SD card slot and power up with a keyboard and monitor attached.
  6. Login with default username and password of pi/raspberry
  7. sudu nano /etc/wpa_supplicant/wpa_supplicant.conf and change the ssid and psk values to your SSID and key respectively. The current setup assumes WPA2-Personal and AES or TKIP. If your network is configured otherwise you may need to edit other settings.
  8. Reboot your Pi and confirm it is picking up your wireless network
  9. Confirm the development stack is present with node -v, npm -v and git --version

Next Steps

This image uses the default pi/raspberry username and password. You should seriously consider changing the password as well as create a new non-root user. The .bashrc file in /etc/skel contains a path to the NodeJS bin folder so new users should inherit that by default.

This image was created in July 2014. Shit happens and it is now out of date. Run sudo apt-get update and sudo apt-get upgrade to get the latest system changes. Also consider upgrading the versions of NodeJS and Git if they have changed too.

Future Enhancements

I use MongoDB a lot so I will probably add that to the next version.

pi-node-image's People

Watchers

 avatar  avatar

pi-node-image's Issues

Size of Image

Thanks for this - Its a very handy.

Can I ask why your image is so large? I assume that there are many libs and packages that are not required for standard usage.

Have you seen this: http://www.tinycorelinux.net/arm.html

I am looking for a super small Linux Distro with nothing but a few libs and node + npm + mongo to do some headless prototyping for a device with limited resources.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.