# Raspian - Latest Jessie Light : https://downloads.raspberrypi.org/raspbian_lite_latest - default login/pass : pi/raspberry - Minibian : https://minibianpi.wordpress.com/features - expand filsystem : `sudo resize2fs /dev/mmcblk0p2` # JavaScript - clean nvm setup : https://www.losant.com/blog/how-to-install-nodejs-on-raspberry-pi - johnny-five : http://johnny-five.io/ - raspi-io pin infos : https://github.com/nebrius/raspi-io/wiki/Pin-Information - NodeJS home automation framework https://pimatic.org/ # Audio ```sh apt-get install alsa-utils modprobe snd_bcm2835 amixer cset numid=3 1 amixer sset PCM,0 90% ``` add dtparam=audio=on to /boot/config.txt add snd_bcm2835 to /etc/modules numid: 0=auto, 1=headphones, 2=hdmi. # Pinout ![](https://i.stack.imgur.com/RILry.png) # CLI Useful commands for OSX ## SD cards #### write image see disks : `diskutil list` :warning: careful with the DISK parameter, it wipes the disk ```sh IMAGE=/path/to/image.img DISK=/dev/rdisk3 sudo dd if=$IMAGE of=$DISK bs=8m ``` also : `unzip -p sdcard.img.zip | sudo dd bs=1m of=` or use `./prepare-disk.sh /path/to/image.img` - expand filsystem : `sudo resize2fs /dev/mmcblk0p2` #### backup image use `./backup-disk.sh ## network detect your rpi on the network : `sudo nmap -sS 192.168.0.1/24` ## GPIO ```sh apt-get install wiringpi gpio mode 7 out gpio write 7 1 gpio write 7 0 ``` ## create a WiFi access point https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/