mkdir -p ~/tmp
cd ~/tmp
# Download and unzip the latest Node.js for ARM-Pi which was built and distributed by NodeJs.org
wget -N http://nodejs.org/dist/latest/`curl http://nodejs.org/dist/latest/ | grep arm-pi | grep -o -E 'href="([^"#]+)"' | cut -d'"' -f2`
tar -zxvf node-v*arm-pi*.tar.gz
# Remove any old node version. Create the dir again
sudo rm -r -f /opt/node
sudo mkdir /opt/node
# Move the expanded files
sudo mv node-v*arm-pi*/* /opt/node
# Symlink node and npm to somewhere already in the path. Debate where...
sudo ln -s -f /opt/node/bin/node /usr/bin/node
sudo ln -s -f /opt/node/bin/npm /usr/bin/npm
# test
which node && node --version
which npm && npm --version
# Cleanup [optional]
rm -r node-v*
#
# /etc/wpa_supplicant/wpa_supplicant.conf
# config will connect to either WPA1 or WPA2
#
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="__SSID__"
psk="__PSK__"
# Protocol type can be: RSN (for WP2) and WPA (for WPA1)
proto=WPA RSN
group=CCMP TKIP
# Pairwise can be CCMP or TKIP (for WPA2 or WPA1)
pairwise=CCMP TKIP
# Key management type can be: WPA-PSK or WPA-EAP (Pre-Shared or
# Enterprise)
key_mgmt=WPA-PSK
#Authorization option should be OPEN for both WPA1/WPA2 (in less
#commonly used are SHARED and LEAP)
auth_alg=OPEN
}
#
# /etc/network/interfaces
#
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa_roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Download Raspbian Raw image
From the OS X command line. Following these eLinux SD Card Setup. To summarize:
diskutil list
diskutil unmountDisk /dev/<disk# from diskutil>
diskutil unmountDisk /dev/disk3
sudo dd bs=1m if=<your image file>.img of=/dev/<disk# from diskutil>
sudo dd bs=1m if=2013-09-25-wheezy-raspbian.img of=/dev/disk4
Start-up the Raspberry Pi
Follow these Adafruit instructions for post boot setup using Raspi_Config. To summarize:
hostname_pi
Start with any linux (raspbian) updates
sudo apt-get update
sudo apt-get upgrade
I have a few old USB Belkin F5D8053.v4 WiFi which work even if not on the list
If Wifi, do WiFi management using WpaSupplicant.
sudo apt-get install wpasupplicant
wpa_passphrase "__SSID__"
etc/network/interfaces
file (shown below)./etc/wpa_supplicant/wpa_supplicant.conf
file (shown below).Avahi implements the Apple Zeroconf specification, (like bonjour) after this it is easy to ping hostname_pi.local
from OS X or other Zeroconf configured machine
sudo apt-get install avahi-daemon
Connect using SSH over wifi.
ssh pi@hostname_pi.local
[Optional] Follow the Adafruit instructions to setup and control with desktop UI using VNC.