Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tforster/pi-node-image

Raspbian plus NodeJS Image for Raspberry Pi Development
https://github.com/tforster/pi-node-image

Last synced: 19 days ago
JSON representation

Raspbian plus NodeJS Image for Raspberry Pi Development

Awesome Lists containing this project

README

        

# 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](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](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.
1. 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.
1. Unmount all partitions using `sudo umount /dev/pn` where n is each partition number.
1. Raw copy the image to the SD card with `sudo dd if=/imagename of=/dev/`. 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.
1. Place the SD card in your Raspberry Pi SD card slot and power up with a keyboard and monitor attached.
1. Login with default username and password of pi/raspberry
1. `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.
1. Reboot your Pi and confirm it is picking up your wireless network
2. 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.